formula if two cells contain specific text add "x" amount

danj4fsu

New Member
Joined
Jan 19, 2018
Messages
20
I am trying to have a cell add "25" if a two range of cells contain specific text. For instance, if E12:E45 contain "Shater" AND F12:F45 contain "Held" add 25.

TIA
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Welcome to the Board!
For instance, if E12:E45 contain "Shater" AND F12:F45 contain "Held"
Are you saying that EVERY cell in E12:E45 contains "Shater", or if ANY ONE cell in E12:E45 contains "Shater"?
 
Upvote 0
ANY ONE cell in e12:e45 contain "shater" and any one cell f12:f45 contain "held".

e12:e45 will either have Shater or Chase
f12:f45 will have held, cancelled, or rescheduled

These reps are paid $25 for each appointment held. So I want a cell that adds 25 if e12:45 has "specific name" AND f12:f45 has"held"
 
Upvote 0
Try this:
Code:
=IF(AND(COUNTIF(E12:E45,"Shater")>0,COUNTIF(F12:F45,"Held")>0),25,0)
 
Upvote 0
that put 25 in the cell but is not adding additional 25 for other occurrences of "shater" + "held"
 
Upvote 0
As you can see, it is important to include the details of exactly what you want, as if you are too brief, it can be unclear or interpretted in different ways.
Just something to be mindful of in future posts, so you increase the likelihood of getting answers that do what you want.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,006
Messages
6,122,665
Members
449,091
Latest member
peppernaut

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