Search two cells, display one of them

marshy3300

Board Regular
Joined
Aug 17, 2014
Messages
59
Hi team,

Should be easy but i'm stumped.

In E2 I'm either going to have Melb, Bris, Syd, Per (one Capital) or "Adjustment". In F2 I'm either going to have Melb, Bris, Syd, Per (one Capital) or "Adjustment"...

So
E2 and F2 will either Melb / Adjustment or Adjustment / Melb. Lets say E2 is Melb. F2 is adjustment
E3 and F3 either Adjustment / Per or Per / Adjustment. Lets say E3 is Adjustment and F3 is Per

In G2 i want to search E2 and F2 for the Capital and display whichever cell contains the Capital. In the first example it would display E2. Second Example it would display F3

Thanks in advance!
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
I hope this is what you need:

varios 09jul2020.xlsm
EFG
2MelbAdjustmentMelb
3AdjustmentPerPer
Sheet2
Cell Formulas
RangeFormula
G2:G3G2=IF(E2<>"Adjustment",E2,IF(F2<>"Adjustment",F2,""))
 
Upvote 0
I'm glad to help you. Thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,375
Messages
6,119,167
Members
448,870
Latest member
max_pedreira

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