Value dependent on non-blank (not empty) cell

Confuzzled_1

New Member
Joined
Jan 21, 2010
Messages
46
Hi all,

I have a sheet that has columns of numbers (lets say like below)
A1= 1500
A2= _
A3= _

Or

A1= _
A2= 1500
A3= _

They are all filled using formulas (lets say using a vlookup on another sheet).
They may sometimes be blank as shown in the examples above.
Only one will ever be populated with a number, but none of them will ever be 'empty' as they contain a formula, so 'BLANK' functions don't work here.

I need to return 'X' if A1 has a result in it, 'Y' if A2 has a result in it and 'Z' if A3 has a result in it.

Any brain waves?
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
How about
=IF(A1<>"","X",IF(A2<>"","Y","Z"))
 
Upvote 0
In that case is the formula in A1 returning "", or something else?
 
Upvote 0
Glad it's working & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,214,919
Messages
6,122,259
Members
449,075
Latest member
staticfluids

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