display specific data from a group of cells

osaben

Board Regular
Joined
Mar 17, 2010
Messages
55
I have data is three cells (M15, M27 & M39). They may have various text in them, but only one cell will be either "Overtime" or "PointinTime".

In cell M44 I would like to display the data from whatever cell contains the either the word Overtime or PointInTime.

I am unsure how to do this. I thought it might be "match", but that doesn't seem to be it.

Any suggestions?

Thanks!
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Assuming the keywords are not part of a larger string:
Code:
=IF(OR(M15= "Overtime",M15="PointInTime"),M15,IF(OR(M27= "Overtime",M27="PointInTime"),M27,IF(OR(M39= "Overtime",M39="PointInTime"),M39,"")))
 
Upvote 0
I have data is three cells (M15, M27 & M39). They may have various text in them, but only one cell will be either "Overtime" or "PointinTime".

In cell M44 I would like to display the data from whatever cell contains the either the word Overtime or PointInTime.

I am unsure how to do this. I thought it might be "match", but that doesn't seem to be it.

Any suggestions?

Thanks!
this is a fun formula
=IF(OR(IFERROR(SEARCH("PointinTime",M15)>0,0),IFERROR(SEARCH("Overtime",M15)>0,0)),M15,IF(OR(IFERROR(SEARCH("PointinTime",M27)>0,0),IFERROR(SEARCH("Overtime",M27)>0,0)),M27,IF(OR(IFERROR(SEARCH("PointinTime",M39)>0,0),IFERROR(SEARCH("Overtime",M39)>0,0)),M39,0)))
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,399
Latest member
alchavar

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