help with formula based on criteria

kypok999

New Member
Joined
Oct 20, 2017
Messages
41
Hi Guys,

I have criteria in A:AA so for example from A2 to A12 its the same text/criteria I need to sum CF based on: If CC has "Bet" then sum 419130.572916666666667Salisbury in this case =5.39 but if the number is -1 next to "BET" then like in next case 419130.583333333333333Newcastle must be -1 basically so i can calculate net instead of having -1 next to columns that i currently have..

https://imgur.com/a/oRG2t
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
=SUMIFS(CF:CF,CC:CC,"Bet")

That will calculate only rows containing "Bet" and ignoring "NoBet" cells.
you can add A:A,419130.583333333333333Newcastle, on the end if you only want Newcastle for instance.
so it would become:

=SUMIFS(CF:CF,CC:CC,"Bet",A:A,419130.583333333333333Newcastle) would only calculate any row containing that Newcastle reference and have a "Bet".

I hope this helps.
 
Upvote 0

Forum statistics

Threads
1,223,714
Messages
6,174,051
Members
452,542
Latest member
Bricklin

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