Sumifs not working with the given range.

Sri_33

Board Regular
Joined
Sep 8, 2020
Messages
119
Office Version
  1. 2016
Platform
  1. Windows
Working.xlsx
ABCDEFGHIJKLMNOPQR
1LoginShiftSunMonTueWedThuFriSatSiteRt-FacDayIntervalHYD5:00-14:006:00-15:007:00-16:00
2davi5:00-14:00WWWWOFFOFFWSJO3Sun13:000
3ljaab7:00-16:00OFFWWWWWOFFHYD4Sun13:150
4mzm7:00-16:00OFFOFFWWWWWBLR11Sun13:300
5ngulo13:00-22:00OFFWWWWWOFFSJO11Sun13:450
6niset16:00-01:00WWWWWOFFOFFHYD7Sun14:000
7rshia16:00-01:00OFFWWWWWOFFHYD1Sun14:150
8tifa16:00-01:00WOFFOFFWWWWHYD2Sun14:300
9esi6:00-15:00WWWWWWOFFHYD4Sun14:450
10esur7:00-16:00OFFOFFWWWWWSJO11Sun17:000
11ogo13:00-22:00WWWWWOFFOFFSJO11Sun17:150
12asgai22:30-07:30OFFWWWWWOFFHYD11Sun17:300
13audd22:30-07:30OFFWWWWWOFFHYD11Sun17:450
14ibad9:00-18:00WWWWWOFFOFFHYD5Sun18:000
15aher9:00-18:00WWWOFFOFFWWSJO6Sun18:150
16anim13:00-22:00OFFWWWWWOFFHYD11Sun18:300
17ly22:00-07:00OFFWWWWWOFFVCC11Sun23:450
18ramo4:30-13:30OFFOFFWWWWWBLR11Mon0:000
19ganr11:00-20:00OFFWWWWWOFFHYD11Mon0:150
20goori22:00-07:00OFFWWWWWOFFHYD11Mon0:300
21upoju6:00-15:00WWOFFOFFWWWHYD11Mon0:450
22at20:00-05:00WWWWWOFFOFFHYD11Mon1:000
Sheet1
Cell Formulas
RangeFormula
O2:O22O2=SUMIFS($K$2:$K$22,$K$2:$K$22,">7",$J$2:$J$22,O$1,B2:B22,$P$1:$R$1,INDEX($C$2:$I$22,0,MATCH($M2,$C$1:$I$1,0)),"W")
Press CTRL+SHIFT+ENTER to enter array formulas.




Hello all, please help me with the above formula, when am trying to give the condition as range from P1:R1, it is not working, if I give the condition as single cell reference "P1" instead of "P1:R1" is is working.
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
You need to sum each result so use =SUMPRODUCT(SUMIFS etc or in newer versions just =SUM(SUMIFS etc. That effectively sums three sumifs formulas together.
 
Upvote 0
You need to sum each result so use =SUMPRODUCT(SUMIFS etc or in newer versions just =SUM(SUMIFS etc. That effectively sums three sumifs formulas together.
Oh yes! it worked .... thank you for the quick turn around.
 
Upvote 0
Hi Sri,

Try this: =IF(AND(COUNTIF(C2:I2, "W")> 0, IFERROR(MATCH(B2,$P$1:$R$1,0)>0, 0), K2>7), K2, 0)

1627596611857.png
 
Upvote 0

Forum statistics

Threads
1,215,336
Messages
6,124,329
Members
449,155
Latest member
ravioli44

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