VLOOKUP Not Showing Result ?

Aitch

Board Regular
Joined
Jan 27, 2019
Messages
61
It's a pretty simple function - just look down the column range and display the cell that is not blank...

=VLOOKUP("?*",A2:A12,1,0)

It works when there is text in the cell - but gives an error when the cell shows a number?

What is the fix?

Thanks for your help!
 

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
41,800
Office Version
365
Platform
Windows
It's a pretty simple function - just look down the column range and display the cell that is not blank...
If there is only one not blank then
=SUM(A2:A12)

Otherwise try
=INDEX(A2:A12,MATCH(TRUE,INDEX(A2:A12<>"",0),0))
 
Last edited:

ClaireS

Board Regular
Joined
Jul 29, 2013
Messages
136
If you know that you have an entry, but it could be text or number, then:
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]=IFERROR(VLOOKUP("?*",A2:A12,1,0),MAX(A2:A12))[/FONT]
 

Aitch

Board Regular
Joined
Jan 27, 2019
Messages
61
Thank you! I'd have never thought of using SUM or MAX - even though it's so obvious lol!

Is there a specific reason why VLOOKUP doesn't play well with numbers?
 

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
41,800
Office Version
365
Platform
Windows
Thank you! I'd have never thought of using SUM or MAX - even though it's so obvious lol!
You're welcome. :)


Is there a specific reason why VLOOKUP doesn't play well with numbers?
Being in quotes, your lookup value "?*" is specifically saying it is a Text value that you are looking for.
 

Forum statistics

Threads
1,078,435
Messages
5,340,250
Members
399,361
Latest member
Linford

Some videos you may like

This Week's Hot Topics

  • Problem with Radio Button's format control
    I am creating an employee evaluation template (a sample is below) Column A is the category Column B, C D, E and F will be ratings (unacceptable...
  • Last Display on userform to a Listbox
    [CODE=vba] lstdisplay.ColumnCount = 15 lstdisplay.RowSource = "A1:O600000" [/CODE] So when i do this it Displays everything on the sheet i am...
  • Rename and move files to a new location
    Dear all, I have an excel file with the following information. The actual file name is at column A but i want to rename it using the following...
  • Help with True/False Formula
    Hello! Am stumped how to fix this formula, in which my result returns 'True', but it should return False. =IF(AG2=True...
  • Clear extra characters from a provided range of cells
    Dear All, I have following code which gives me desired output to remove extra characters from a provided range. But it takes too much time when...
  • Help with Current and highest streaks
    Hi there, I've just joined the forum and this is my first post. I've already spent quite a bit of time searching the net and this forum for a...
Top