isnumber(search) based on verbiage found in particular cell

keridvp1

New Member
Joined
Aug 28, 2015
Messages
7
I have two formulas that work, but I need to change them to be based on verbiage that is found in a specific cell on the same row. I then want to combine these two formulas so that if the cell is blank then do formula # 1, if the verbiage "Covered" is in the cell then do formula # 2. Here are my two formulas:

Formula # 1: =IF(ISNUMBER(SEARCH("RT",D11)),'2018-2019 Rates'!$G$3,'2018-2019 Rates'!$G$4)

Formula # 2: =IF(ISNUMBER(SEARCH("RT",D12)),'2018-2019 Rates'!$G$3,'2018-2019 Rates'!$G$4)+IF(ISNUMBER(SEARCH("R3",D12)),'2018-2019 Rates'!$G$3,'2018-2019 Rates'!$G$4)

Column AC contains either a blank cell or the word "Covered".
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Does this work?

=IF(ISNUMBER(SEARCH("RT",D12)),'2018-2019 Rates'!$G$3,'2018-2019 Rates'!$G$4)+(AC1="Covered")*IF(ISNUMBER(SEARCH("R3",D12)),'2018-2019 Rates'!$G$3,'2018-2019 Rates'!$G$4)
 
Upvote 0

Forum statistics

Threads
1,216,075
Messages
6,128,668
Members
449,463
Latest member
Jojomen56

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