I have say as follows on column a with a4 as blank , I want formula to count column a where i need the answer to be 5
that is first cell count to last cell with text
a
b
c
d
I have say as follows on column a with a4 as blank , I want formula to count column a where i need the answer to be 5
that is first cell count to last cell with text
a
b
c
d
Try again to explain what you want. You have listed four text items (a,b,c,and d) with a blank between c and d. If I were to count the text items, there would be 4 - how do you get 5?
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
Try this, e.g. in C1:
=MATCH(LOOKUP("zzz",A:A),A:A,0)
Hope this helps.
Pete
Thank you Pete_Uk , seems you got me straight without further questions
It will only work properly if the text values are all unique.
Pete
really ?????It will only work properly if the text values are all unique.
It will only work if the last item is unique because the MATCH function returns the row of the first instance of that item found.
Yes but chances of it being "ZZZ" ? Better use "ZZZZZZZZ" !
It isn't really a question of uniqueness but of relative values.
If you like my answer please click on * Add Reputation
Don't forget to mark threads as "Solved" if your problem has been resolved
"Nothing is so firmly believed as what we least know."
--Michel de Montaigne
No, John. Consider a list like this:
a
b
c
d
c
a
c
Which row number will be returned? 3, 6 or 9? We want 9, but it will return 6 becasue that is the first row it appears in.
=MATCH(LOOKUP("zzz",A:A),A:A,0) gives 3
=LOOKUP(2,1/(A:A<>""),A:A) gives c
Me being word blind: I had used MATCH as per Alkey's response: hence my query!
Yes, there's a subtle difference I hadn't appreciated before now!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks