Functions for choosing a sum based on two cells meeting the criteria

titchestiny

New Member
Joined
Nov 3, 2013
Messages
20
[h=2]Hi,

I'm trying to use a formula to select the correct calculation based on the criteria of two different cells. For example;

ABCD
129EXCEEDEXCEED
227EXCEEDYES
322YESYES
421YESNO

<tbody>
</tbody>


<tbody>
</tbody>
Where B1 and C1 = Exceed, in D1 calculate A1+4, otherwise A1+3.

I've tried using combinations of the IF and AND functions, but neither will except the + symbol. Apologies if my question is particularly dumb. I know I'm missing something - I just can see it!

Any help on this would be greatly appreciated.

Thanks,

Tt

p.s. I'm using Excel 2010[/h]
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
D1, copied down:

Either...

=IF(AND(B1="EXCEED",C1="EXCEED"),A1+4,A1+3)

Or...

=IF(OR(B1="EXCEED",C1="EXCEED"),A1+4,A1+3)
 
Upvote 0
Or this:

Option 1: =IF(COUNTIF(B1:C1,"EXCEED")=2,A1+4,A1+3)
Option 2: =IF(B1&C1=REPT("EXCEED",2),A1+4,A1+3)
 
Upvote 0
Hi Robert and Aladin,

Thank you for posting the formula - it worked a treat! :)

It was the formula that I originally used, but I couldn't get it to work. When you posted I realised that I missed the comma after the brackets. I knew something was up and that the formula should have worked, but I just couldn't see my error!

Thank you so much! I really appreciate your help.

Tt
 
Upvote 0
Yeah, I was just posting some unusual alternatives for the heck of it.

I know your question was already answered.


Thanks - I appreciate it. I wish I had your excel skills - you seem to know your stuff! Often feel that I'm asking questions that would make guys like you roll their eyes and think 'idiot'! :)

Thank you for all your support. It means a lot.

Tt
 
Upvote 0
Thanks - I appreciate it. I wish I had your excel skills - you seem to know your stuff! Often feel that I'm asking questions that would make guys like you roll their eyes and think 'idiot'! :)

Thank you for all your support. It means a lot.

Tt

Honestly, we're all learning here, especially me. Don't think that you questions are too stupid to ask.

The main thing is to be smart enough to ask for help when you need it.
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,262
Members
449,075
Latest member
staticfluids

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