Check each cell to find values

JohnsonFelix

New Member
Joined
Jul 22, 2011
Messages
15
Hi,

I have values in column a1,b1,c1, I would need an if function in Cell D1.

Condition is, if I have values available C1 then it is highest priority, if C1 doesn't have any values or any error then it has to check b1, if B1 has values then b1 is second priority, if error, it has to check cell A1 and vice versa

Do I get if function for this conditions?

regards
Johnson
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Welcome to the Board!

You can nest IF functions, like this:
Code:
=IF(C1<>"","C1 has value",IF(B1<>"","B1 has value",IF(A1<>"","A1 has value","all cells empty")))
Just replace the "... has value" parts with whatever you want to happen there.
 
Upvote 0
What are the possibilities of entries in cells A1:C1?
Are there ever blanks, or is it just errors and values?
 
Upvote 0
Are they formulas in cells A1:C1?
If so, can we amend those formulas to get rid of the errors, and replace them with blanks, like this?
=IFERROR(original formula,"")

If you can do that, then my original formula would work.

I typically find it easier to handle with errors at their source, instead of trying to account for them done the line, if that is an acceptable method for you.
 
Upvote 0
What version of Excel are you using?
IFERROR was introduced in Excel 2007.

If you have an older version, you would need to use a different format, i.e.
=IF(ISERROR(original formula),"",original formula)

If you are using a version of Excel that is 2007 or newer, and are getting errors, please post your formula here so we can see how you are setting it up.
 
Upvote 0
=IFERROR(C1<>"",C1,IFERROR(B1<>"",B1,IFERROR(A1<>"",A1,"Empty")))

Using latest version
Getting error as "You have entered too many arguments for this functions"
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,264
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