Single cell that looks at two cells and displays text either one when entered

timheffo

New Member
Joined
May 11, 2011
Messages
8
I have two drop down lists and I am wanting a cell on another sheet to look at both of these drop down lists and when a selection is made in one of the lists it is displayed in the cell on the other sheet.

Was using =Sheet1!A1 when I only had one drop down list now I have two drop down lists not real sure on how to do this.
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
I guess I should make the question clearer...

Is it POSSIBLE for both cells to be populated?

IF Yes, which one should be returned in such a case.
Saying Either doesn't make much sense.
Excel isn't great at making choices for you,
It is better if you make an absolute choice.

While we're at it, what if both cells are blank?
 
Upvote 0
This will...

If BOTH Cells are blank, return blank
If BOTH Cells have a value, it returns A1
Otherwise, returns whichever is populated.

=IF(A1="",IF(B1="","",B1),A1)
 
Upvote 0
Perhaps if they happen to both be populated, you could return them both?
=A1&IF(COUNTA(A1:B1)=2,"|","")&B1
 
Upvote 0
If you wanted to make the last cell that was used the one that displays data could this be done as well.

So you could select list A1 it displays it, if you then select list B1 it displays it, then if you select A1 again it displays that cell?


This formula below provided
=IF(A1="",IF(B1="","",B1),A1) works fine for what I need, this is more for personal interest if you can how would you?
 
Upvote 0
If you wanted to make the last cell that was used the one that displays data could this be done as well.

So you could select list A1 it displays it, if you then select list B1 it displays it, then if you select A1 again it displays that cell?


This formula below provided
=IF(A1="",IF(B1="","",B1),A1) works fine for what I need, this is more for personal interest if you can how would you?

The idea of last text value would work indeed, in particular with a larger range...

=LOOKUP(REPT("z",255),A1:B1)

=LOOKUP(9.99999999999999E+307,SEARCH("?",A1:B1),A1:B1)

The latter avoids formula blanks (i.e., "") as last text value.
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,297
Members
452,903
Latest member
Knuddeluff

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