=if(count(search({ help

ptatlow2

New Member
Joined
Jun 20, 2016
Messages
1
Greetings, fellow Excel users!!

I'm using Excel 2010 (PC) and have a spreadsheet in which I want to search for words in Column A, and based on what is found, populate Columns B,C,D,E accordingly.

A B C D E
STATUSMADEMISSEDEARLYLATE
KALAMAZOO 74Z 06/22/2016 04:45 MISSED1LATE
GREENHORNE 19P 6/22/2016 05:15 MISSEDEARLY1EARLYLATE

<tbody>
</tbody>

Column C has formula =IF(ISNUMBER(SEARCH("missed",A1)),"1","")
Column D has formula =IF(ISNUMBER(SEARCH("early",A1)),"EARLY","")
Column E has formula =IF(COUNT(SEARCH({"late","missed"},A1)),"LATE","") for column E. (this is because if a train is missed but not specified as late in A1, it is still late, and the LATE designation needs to be shown.)

Here's my problem... In my example, if a train is missed because it is early, I get a "1" in C2, "EARLY" in D2, and "LATE" IN E2.

So, I need a formula for Column E that basically says that if a train is missed or late, show "LATE"; but if a train is missed early, show a value in Column C and Column D, but don't show anything in E...

Any help would be greatly appreciated.

Thanks!!

Phillip
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
So just write that condition into another if statement:

=If(C2="Early","",IF(COUNT(SEARCH({"late","missed"},A1)),"LATE",""))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,970
Messages
6,122,514
Members
449,088
Latest member
RandomExceller01

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