Sumifs

Access Beginner

Active Member
Joined
Nov 8, 2010
Messages
311
Office Version
  1. 2016
Platform
  1. Windows
Hi All,

I have range of cells B21 to N22. I cell B21 is a value of 8 and B22 a value of 9, C21 a value of 7 and C22 a value of 5.

What I'd like is to have is a formula that will sum up the below. I have just used nested If statements ( I know this is not what I'm after, but more so, to give context to my question):

Code:
=IF(C22>=C21,1,IF(D22>=D21,1,IF(E22>=E21,1,IF(F22>=F21,1,IF(G22>=G21,1,IF(H22>=H21,1,IF(I22>=I21,1,IF(J22>=J21,1,IF(K22>=K21,1,IF(L22>=L21,1,IF(M22>=M21,1,IF(N22>=N21,1,0))))))))))))

So I'd like to sum all the instances which return the value if 1.

Cheers
Haydn
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Do you need something like this?

varios 07jul2020.xlsm
ABCDEFGHIJKLMNOP
2121456213568925
221425312831791
Hoja13
Cell Formulas
RangeFormula
P21P21=SUMPRODUCT((B22:N22>=B21:N21)*1)
 
Upvote 0
Do you need something like this?

varios 07jul2020.xlsm
ABCDEFGHIJKLMNOP
2121456213568925
221425312831791
Hoja13
Cell Formulas
RangeFormula
P21P21=SUMPRODUCT((B22:N22>=B21:N21)*1)
Hi Dante,

I've just realized if the values in the range is blank it also returns a count of 1, as the condition is met. Is there a way, the formula can be modified to cater for this?
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,693
Members
448,979
Latest member
DET4492

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