ANDIF Formula

mikeywhits

Board Regular
Joined
Jun 7, 2010
Messages
80
Hi all,

I have 3 cells A1, B1, C1

Cell A1 will either be blank or "R".
Cell B1 will either be blank or "A".
Cell C1 will either be blank or "G".

When 1 cell has a letter the other 2 cell are always blank.
Is there anyway of creating an ANDIF formula (i assume), which will capture only the cell with a letter in?

Thanks,
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
If this is a true statement...

When 1 cell has a letter the other 2 cell are always blank.

Then try

=LOOKUP("Z",A1:C1)

This will error if All 3 cells are blank...
To correct for that try

=LOOKUP("Z",CHOOSE({1,2},"",A1:C1))
 
Upvote 0
You can use Data Validation for forcing user to enter only desired data.

The second part, I did not understand but if you want to check - if the data is fed in one cell then others are blank then in cell D1 insert a formula like:
Code:
=IF(COUNTA(A1:C1)>1,"CHECK","OK")
 
Upvote 0
Not sure what Big String means,

But as i do the formula it only finds data in row C, this being "G",

Rows A & B seem to get ignored?
 
Upvote 0
Not sure what Big String means,

But as i do the formula it only finds data in row C, this being "G",

Rows A & B seem to get ignored?

Yep, it was an inside joke.

Stick to "Z", As long as your original post was your actual need, and not a "dummed down" version of something more complicated.
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,762
Members
452,940
Latest member
rootytrip

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