No offense but that formula is not generic and it will return
an incorrect value if for instance the list is in A6:A10
Not only that but it will always count from row 1!
--
Regards,
Peo Sjoblom
"Ashish Mathur" wrote in message
...
You are welcome
--
Regards,
Ashsih Mathur
Microsoft Excel MVP
www.ashishmathur.com
"Gary''s Student" wrote in
message ...
Thanks!
--
Gary''s Student - gsnu200805
"Ashish Mathur" wrote:
Hi,
Try this
SUMPRODUCT((A1:A5=B1)*(ROW(1:5)))
--
Regards,
Ashsih Mathur
Microsoft Excel MVP
www.ashishmathur.com
"Gary''s Student" wrote in
message
...
I have a column of values and am trying to identify where values
appear in
the column. For example, in A1 thru A5:
cow
mouse
pig
horse
Note A3 is blank. If I put "pig" in B1 then the formula
=MATCH(B1,A1:A5,0)
correctly returns 4
If I leave B1 blank, the formula returns #N/A rather than 3.
I need the result to be 3.
I can make a UDF to give the correct result, but I can't use VBA in
this
application.
So can I find values in a list even if the value is a blank??
--
Gary''s Student - gsnu2007xx