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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
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,223,236
Messages
6,170,912
Members
452,366
Latest member
TePunaBloke

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