Can't get multiple criteria for SUMIFS to work like I want

Nanaia

Active Member
Joined
Jan 11, 2018
Messages
304
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
My goal is to modify (or change completely) the formula located in cells V3, W3, X3, Y3 within the CHEATER tab so that they look for the data in both column T and also the number we will enter into cell S3.
What this chart does is count the number of ICP parts needed for each job. I want to make it so I can also identify the total number needed of each kind of ICP parts needed for each elevation not just the job as a whole. I thought I could add a VLOOKUP to the formula but I'm not sure how and what I've tried hasn't worked.
Since I can't easily copy and paste the information into this post, I've saved the file to a Share Drive and provided a link to it below.


https://1drv.ms/x/s!AskYMgFiAqmA0BsSdR9vLkfM18xO
 
Hi ALL,
Im having a similar issue. I need to reference column B made up of GL #'s and dashes and sum the values for each year for GL #'s 560 and 570 but per location.
Location is the 2 numbers in the GL 's.

Example

Column B Column C Column D Column E
560-01-0010 BDF 109,334 =SUMIFS(D7:D136,B7:B136,B7,B7:B136,B72)
570-01-0010 BDF 58,365
560-12-1201 IMMUN 511,522
560-00-0000 2,651,615
570-12-1201 6,262
570-00-0000 61,916

I tried the SUMIFS formula above and =SUMIF(B7:B136,"560-00",D7:D136)+SUMIF(B7:B136,"570-00",D7:D136)

Not working
 
Upvote 0

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Hi,

Try this:


Book1
BCDEF
7560-01-0010BDF1093342713531
8570-01-0010BDF58365
9560-12-1201IMMUN511522
10560-00-00002651615
11570-12-12016262
12570-00-000061916
Sheet630
Cell Formulas
RangeFormula
F7=SUM(SUMIF(B7:B136,{"560-00-*","570-00-*"},D7:D136))
 
Upvote 0
Hmm, that did not work. The results doubled the actual values and put values where there should be zeroes.

Maybe a nested IF function might work better...
 
Upvote 0
Perhaps you mean Separate sum, if not, you need to Explain exactly what you mean, And for your sample in your Post # 21, What is/are the expected results ??


Book1
BCDEFGH
6for 560-00for 570-00for both
7560-01-0010BDF1093342651615619162713531
8570-01-0010BDF58365
9560-12-1201IMMUN511522
10560-00-00002651615
11570-12-12016262
12570-00-000061916
Sheet630
Cell Formulas
RangeFormula
F7=SUMIF(B7:B136,"560-00-*",D7:D136)
G7=SUMIF(B7:B136,"570-00-*",D7:D136)
H7=SUM(SUMIF(B7:B136,{"560-00-*","570-00-*"},D7:D136))
 
Upvote 0
1 Column B Column C Column D Column E
2 560-01-0010 BDF 109,334
3 570-01-0010 BDF 58,365 =sum(Column D Row 2 + Column D Row 3)
4 560-12-1201 IMMUN 511,522
5 560-00-0000 Accrual 2,651,615
6 570-12-1201 IMMUN 6,262 =sum(Column D Row 4 + Column D Row 6)
7 570-00-0000 Accrual 61,91 =sum(Column D Row 5 + Column D Row 7)

Expected Outcome :
Total Revenue should not change. All we are doing is combining the 2 account totals for each division.

When I used your formulas the total revenue changed. Divisions that had zero revenue before combing the account totals, suddenly had revenue totals using those formulas.

Something is throwing the formula off. I think its the dashes with the numbers. Not to sure...

PS: sorry the spacing keeps messing up when i post.
 
Last edited:
Upvote 0
You didn't describe How your data is set up, and Where the result cells should be, you may need to play around with the cell references.

G7:I7 formulas have the "account" hard-coded.
G8 formula copied to I8 using cell references for "account".



Book1
BCDEFGHI
6Account000112
7560-01-0010BDF109334Total2713531167699517784
8570-01-0010BDF583652713531167699517784
9560-12-1201IMMUN511522
10560-00-00002651615
11570-12-12016262
12570-00-000061916
Sheet630
Cell Formulas
RangeFormula
G7=SUMIF(B7:B136,"*-00-*",D7:D136)
G8=SUMIF($B7:$B136,"*-"&G6&"-*",$D7:$D136)
H7=SUMIF(B7:B136,"*-01-*",D7:D136)
I7=SUMIF(B7:B136,"*-12-*",D7:D136)
 
Upvote 0

Forum statistics

Threads
1,214,967
Messages
6,122,503
Members
449,090
Latest member
RandomExceller01

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