excel-formula

Reference next or previous sheet in a formula if the sheet number/name is a varible/variant

北城余情 提交于 2019-12-31 04:56:12
问题 How do I reference next or previous sheet in a formula if the sheet number/name is a varible/variant. I have seen ways to do this with vba, is there a way to do this with a formula or function 回答1: In Excel. Enter an equals sign "=" in any cell. This will put you into interactive mode. Navigate to your other sheet and click the cell you want to reference. Then hit enter. Go back to the previous sheet and edit the cell you started in and you should see the formula to use. To reference the next

Count all fields in an column, except for n specified range

◇◆丶佛笑我妖孽 提交于 2019-12-31 04:14:11
问题 I am trying to count all the field in an entire column except for n specified range. I need to select the entire column to cater for future expansion currently i am trying: =COUNTIF(B:B,"<>ASY999 OR <>ASY002 OR <>CIB001 OR <>""") But the formula still counts the blank cell at the bottom of the column I get a return value of 65536 which is not correct 回答1: Which version of Excel? In Excel 2007 or later try COUNTIFS (with an "S"), i.e. =COUNTIFS(B:B,"<>ASY999",B:B, "<>ASY002",B:B,"<>CIB001",B:B

How to filter unique values in a column using excel formula

六月ゝ 毕业季﹏ 提交于 2019-12-31 03:51:14
问题 I'm in need of a solution for my excel workbook. I have a column with duplicate values in sheet1 and want to display the unique values of that column in sheet2. May be it looks simple but whenever there is a change in values in sheet1 those values should reflect in sheet2. I need an excel formula but not the VBA. I tried few different options like array and stuff but could not able to get the proper solution. Appreciate your timely help. Many Thanks. 回答1: Say the Sheet1 table is from A1 thru

Referencing in Excel

↘锁芯ラ 提交于 2019-12-31 02:46:07
问题 I want to reference this cell in another worksheet for my current worksheet, which is calculated by =[2015_RunRate.xlsx]January!$C$66 However, I want to replace the word "January" in that reference with the value from cell C19 in my current worksheet. I tried something along the lines of: =([2015_RunRate.xlsx])([Current_Worksheet.xlsx]!$C$19)!$C$66 That clearly didn't work. Any ideas? Thanks. 回答1: You can use the INDIRECT function to convert a string you've stitched together into a valid cell

Excel Indirect with Count

耗尽温柔 提交于 2019-12-31 01:54:09
问题 I have a workbook with different sheets for each month. I made another sheet where I put the months in A1 down. I wanted to use Counta (for A:A in the months' sheets) and indirect together but I am getting the result "1" with my formula. Please help: =COUNTA(INDIRECT(SheetNames!A1&"!A:A")) I would also eventually like to do the same for countif. If you can please explain what I missed that will help me. Thanks! 回答1: Trying out your formula it works perfectly unless you've got a space in the

TextJoin UDF For Excel 2013

南笙酒味 提交于 2019-12-30 13:26:53
问题 I am trying to utilize a UDF version of TextJoin since I am using Excel 2013 - but this function is not properly returning the accurate data. My data-set in Excel looks like this saleID Item 5 PRE2323 6 Pre2323223 6 OX12321 6 RI132 9 TN23 9 LSR12 And my desired output is saleID Items 5 Pre2323 6 Pre2323223, OX12321, RI132 9 TN23, LSR12 And this is the UDF I Have that is not functioning as it should Option Explicit Function TEXTJOIN(delimiter As String, ignore_empty As String, ParamArray textn

Excel - finding values that “look like”

点点圈 提交于 2019-12-30 12:52:10
问题 I have an excel workbook with a ton of sheets. In the first sheet "users" i have userdata, firstname, lastname, email, etc. all neatly split from a CSV file. In the other sheets, i have some of the names and need the emails from the "users" sheet. The problem is, that the names on all the other sheets are all in one cell with both first- and lastname like, and in the users-sheet it's split. Also, in the other sheets it might be written as "Mike Anderson", "Mike, Anderson" or even "Anderson,

Extract a Word from String Containing a Specific Character within Substring

浪子不回头ぞ 提交于 2019-12-30 11:55:10
问题 In MS Excel I would like to use a formula to extract only the word from a cell that contains a specific character ("=") within the text. A2: Dolly made me a homemade=cake and some muffins A3: we had cheese=cake for dinner A4: Everyone loves how the bakery makes some awesome=cakes A5: Johnny made his own dinner=lastnight and then cleaned the kitchen A6: There was a tremendous amount of raing State=Oklahoma I would like the following from in column (A2:A4) to provide the following results in

how to count multiple columns using countifs

蓝咒 提交于 2019-12-30 11:19:10
问题 I am putting in a formula to count the number of times a quote is required Indicated by the letter Q in a given column, when I put the formula in for one column I get the correct answer, but when I want to do it for multiple columns I get zero, can anyone help please? the formula is =COUNTIFS(D10:D29,"=Q",G10:G29,"=Q") 回答1: Try either =SUMPRODUCT((D10:D29="Q")+(G10:G29="Q")) or =SUMPRODUCT(((D10:D29="Q")+(G10:G29="Q")>0)+0) the former will count 2 if you have Qs in both D10 and G10 - the

SUMPRODUCT Formula in VBA

陌路散爱 提交于 2019-12-30 10:36:19
问题 I want to use following SUMPRODUCT formula in VBA: =SUMPRODUCT((Sale!$J$5:$J$1048576=C12)*Sale!$D$5:$D$1048576,Sale!$M$5:$M$1048576) I used this code but it gives an error Run-time error '13': Type mismatch Dim slWks As Worksheet Set slWks = Sheets("Sale") ActiveSheet.Range("F12").Value = _ Application.WorksheetFunction.SumProduct((slWks.Range("J5:J1048576") = _ ActiveSheet.Range("C12")) * slWks.Range("D5:D1048576"), slWks.Range("M5:M1048576")) How can I write that formula with its values