I saw some tutorials to make the unique list of names dynamically in Excel. but when I applied this formula to my data I got zero instead of the result value. I tested this formula on sample data but Still get zeros.
the formula is :
=IFERROR(INDEX(Table2[names],MATCH(0,INDEX(COUNTIF($E$5:$E$13,Table2[names]),),0)),””)
the sample table is
when I press the F9 button on the formula box I see the correct result
also, I changed the formula to this one but there is no change in the result.
=IFERROR(INDEX(Table2[names],MATCH(0,INDEX(COUNTIF($E$4:$E5,Table2[names]),),0)),””)
the difference is in the $E$4:$E5
UPDATE:
thanks to #Rory for answering. the problem was in a circular reference.
to solve that the problem the formula must be like this:
=IFERROR(INDEX(Table2[names],MATCH(0,INDEX(COUNTIF($E$4:$E4,Table2[names]),),0)),””)
Related
I would like to identify which rows don't have consecutive data. For this, I'd like to be able to count the cells across rows until and empty cell is encountered.
Please look at the the screenshot of an example and desired output.
I have tried to play around with the MATCH function, but no look yet. I've tried the following but it's not returning what I would've expect.
{=MATCH(FALSE,ISBLANK(C2:F2),0)}
You may try in this way however there might be a more eloquent way to solve this,
So the formula used in cell G2
=IF(MAX(FREQUENCY(IF(C2:F2,COLUMN(C2:F2)),
IF(C2:F2=FALSE,COLUMN(C2:F2))))<3,"Jumps A Year",
MAX(FREQUENCY(IF(C2:F2,COLUMN(C2:F2)),
IF(C2:F2=FALSE,COLUMN(C2:F2)))))
And Fill Down!
Also note, depending on your excel version you may or may need to press CTRL+SHIFT+ENTER, not just ENTER after entering the formula. You will know the array is active when you see curly braces { } appear around your formula.
this is the formula in question,
=INDEX(C:C,COUNTA(C:C),1)
in this form it works perfectly and displays the latest result from that row and column.
=INDEX(AA:AA,COUNTA(AA:AA),1)
However, the above does not work and just displays blank. Why does the double column identifier ruin it? is there an alternative I can use for these columns?.
most likely you got there an empty cell in that AA column that will offset the result
try this instead:
=INDEX(INDIRECT("AA"&MAX((AA:AA<>"")*(ROW(A:A)))))
I would really appreciate some help whit my problem. I tried to read about it but nothing I found works.
I am trying to pull some data from another spreadsheet based on multiple criteria /entered in cells B4:B6/.
B4 - Customer Name
B5 - FROM Date
B6 - TO Date
I want to be able to extract data based on only one cell or any combination of them.
/B4&B5,B4&B6,B5&B6,B4&B5&B6/
I tried using the following formula:
COUNTIFS(JOBS!$C$1:$C$10000,$B$4,JOBS!$L$1:$L$10000,">="&$B$5,JOBS!$L$1:$L$10000,"<="&$B$6)
The formula works fine if all cells /B4:B6/ are filled but returns #NUM! if one is empty.
I tried:
COUNTIF(JOBS!$C$1:$C$10000,$B$4)+COUNTIF(JOBS!$L$1:$L$10000,">="&$B$5)+COUNTIF(JOBS!$L$1:$L$10000,"<="&$B$6)
The formula works fine if only one cell /B4:B6/ is filled but the data overlaps if 2 or more are filed.
Use wildcards when empty:
=COUNTIFS(JOBS!$C$1:$C$10000,IF($B$4="","*",$B$4),JOBS!$L$1:$L$10000,">="&IF($B$5="",0,$B$5),JOBS!$L$1:$L$10000,"<="&IF($B$6="",99999,$B$6))
In fact the formula I am using looks very weird. The positions of criteria and range appeared to be switched.
The original formula looks like this:
COUNTIFS($B$4,JOBS!$C$1:$C$10000,$B$5,<="&JOBS!$L$1:$L$10000,$B$6,">="&JOBS!$L$1:$L$10000)
And it is working fine, apart from the problem I mentioned in the title.
Thanks to the idea Scott gave me I have rewritten my formula and now it looks like this:
COUNTIFS($B$4,IF($B$4="","",JOBS!$C$1:$C$10000),$B$5,IF($B$5="","","<="&JOBS!$L$1:$L$10000),$B$6,IF($B$6="","",">="&JOBS!$L$1:$L$10000))
Although, I am not sure if this is the right way the formula should be written, it works great and my problem is now solved.
I have this formula
=OFFSET(Products[[#Headers];[Merk]];
MATCH(A2;Producten!$A:$A;0)-1;1;COUNTIF(Producten!$A:$A;A2);1)
It works fine in a normal cell. But as soon as I putt it in the Data Validation>List I get the error.
There is a problem with this formula.
Not trying to type a formula?
Does anybody know what the problem is?
Suggest to change the reference to the Table for the cell address (e.g. assuming the table starts at B6 and Merk is the 1st field then change Products[[#Headers];[Merk]] for B6).
Not all formulas that are valid for Cells are accepted by DataValidation, particularly when they refer to a ListObject for example the formula COUNTA(Products[Merk])is valid in a Cell but not accepted by DataValidation
Formula should be:
=OFFSET(B6;
MATCH(A2;Producten!$A:$A;0)-1;1;COUNTIF(Producten!$A:$A;A2);1)
When referring to a table in a validation formula you cannot refer directly to a table and must use intermediate names.
For example, define a name like this:
_name_Product that is equal to: ="Products[[#Headers];[Merk]"
Then use INDIRECT in the formula:
INDIRECT(_name_Product)
or use entries like INDIRECT("Products[[#Headers];[Merk]")
Hope this helps.
I am trying to populate a little matrix in Excel with the values from a list that contains the project priority and the Squad that is supposed to do the project.
The returned value should be the "priority" number found in the list.
I have tried index match and it returns the values correctly but I would like to know how to do it without keeping empty spaces.
I am attaching a picture to further explain the issue.
Any help would be appreciated.
Thanks!
Use:
=IFERROR(AGGREGATE(15,6,$H$2:$H$25/($I$2:$J$25=A$1),ROW(1:1)),"")
Assuming a data setup like this:
I used this array formula in cell E2 and copied over and down (NOTE- array formulas must be confirmed with Ctrl+Shift+Enter instead of just Enter):
=IF(ROW(E1)>COUNTIF($B:$C,E$1),"",SMALL(IF($B$2:$C$21=E$1,$A$2:$A$21),ROW(E1)))