blanks and empty cells

gnrboyd

Well-known Member
Joined
Jun 20, 2002
Messages
563
This should be an easy one for most of you. First of all, I am having difficulty understanding blanks and blank cells.

I am trying to use an if statement such as Cell B1 contains =If(A1<>"",vlookup(A1,data,2,false),""). I have this formula duplicated down the page. I basically want to perform the lookup only if cell A1 is not empty. When I sort the list by column B, the ones that the formula made blank, appear at the top of the list. (The info returned by the lookup is text. I tested numeric values and the blanks appear at the bottom)
Is there any other way to show the blank other than "" in the if statement?

I am using a macro to enter the vlookup formula for a user that isn't familiar with Excel but the list size varries so I run the formula down the page because I don't know how to tell the macro how far to go.

I need to be able to solve either the blank problem or the lookup problem mentioned in the above paragraph.

I would sure appreciate some assistance.

Thanks!
 
Yogi,

I tried that and got same result. I don't see how that would affect anything other than the first row.

Thanks
 
Upvote 0

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

Forum statistics

Threads
1,214,381
Messages
6,119,192
Members
448,874
Latest member
Lancelots

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top