Sumifs Formula

SJC27x5

New Member
Joined
Apr 6, 2021
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Please help in fixing this issue with sumifs

Cell A1 to A100 has serial numbers 1 to 100, Cell B1 to B100 has corresponding sales values. I am trying to the get the total of values based on the criteria 45,55,65

Sumifs(B1:B100,A1:A100,criteria 1)

Here criteria 1 has to be 45, 55, 65

I hope you are able the understand the requirement, please help.. I need sumifs itself, since I have other criteria range and criteria which is unique.

Thank you.
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Welcome to the forum!

Is this what you want?

Book1 (version 1).xlsb
ABCDEF
111SumSumList
222717145
33355
445465
565
676
7557
868
9559
105510
11411
124512
134513
147714
158815
166516
17117
18218
19319
20420
Sheet24
Cell Formulas
RangeFormula
D2D2=SUM(SUMIFS(B1:B20,A1:A20,{45,55,65}))
E2E2=SUM(SUMIFS(B1:B20,A1:A20,F2:F4))
 
Upvote 0
Solution
Hi,

Try this:

Book3.xlsx
ABCD
143247
2443
3454
4465
5476
6437
7548
8559
95610
104711
114312
124413
136414
146515
156616
164317
174418
184519
194620
204721
Sheet898
Cell Formulas
RangeFormula
D1D1=SUM(SUMIFS(B1:B100,A1:A100,{45,55,65}))
 
Upvote 0
Welcome to the forum!

Is this what you want?

Book1 (version 1).xlsb
ABCDEF
111SumSumList
222717145
33355
445465
565
676
7557
868
9559
105510
11411
124512
134513
147714
158815
166516
17117
18218
19319
20420
Sheet24
Cell Formulas
RangeFormula
D2D2=SUM(SUMIFS(B1:B20,A1:A20,{45,55,65}))
E2E2=SUM(SUMIFS(B1:B20,A1:A20,F2:F4))
Yes, D2, works fine..

Thank you...
 
Upvote 0
I'm hoping you can help with a very complex problem.

I need a sumifs formula that can match multiple criteria options in a range. I would really like to use cell references if possible as some of the criteria options will change in the future.

Example:

Sum_range:

Range 1: "Fund Codes" - Criteria 1: ""50"}; Criteria 2: {"60","65", "99"} Criteria 3: {"01", "05","06","17","20"} etc.

Range 1: "Fund Codes" - Criteria 1: ""OE150"}; Criteria 2: {"OR310", "OR311", "OR350"} etc.
 
Upvote 0
Hi,

You listed your 2 different requirement separately.
Are you looking for 1 formula or 2?

Your requirements Only show 1 Range ("Fund Codes"), I assume that's the Criteria Range, where's the Sum Range?
Please clarify all and may be a bit more explanation.
 
Upvote 0
Sorry for the confusion. My question posted before I was ready and I wasn't sure how to edit it. Anyways, I have included an image of a small part of what I need to pull out of the raw data. Each column is for a fund code, and it could be only one code, or a combination of up to seven funds combined into one column. Each line is for custom codes. Again, The line could be for only one custom code, or up to six. I have used =sum(sumifs(...)) formulas in the past, but when we get to the maximum combinations of funds and custom codes, it just wouldn't work.

Hope this clarifies the problem.
 

Attachments

  • Capture.PNG
    Capture.PNG
    21.6 KB · Views: 7
Upvote 0
Ok, thanks for clarifying.

If you want to use a more "Traditional" SUM/SUMIFS, you'll have to Separate out the "Custom Codes" in C4:C7, and the "Fund Codes" in D3:F3 into their Own individual cells.

Also, please check my signature to look into how to post sample data using XL2BB, so we don't have to re-type your data manually for testing, thanks.

Otherwise, this is one way we could do this:

Book3.xlsx
ABCDEF
1
2Fund Codes
3Custom Codes01,05,065060,65,99
4LC200000
5LC201,LC204,LC20515322
6LC202000
7LC2062707
8
9
10
11FundCustom Codes
1260LC2012
1350LC2013
1406LC2014
1505LC2015
1601LC2016
1760LC2067
1806LC2068
1905LC2069
2001LC20610
2105LC20811
2260LC20812
2360LC20813
2405LC20814
2505LC20815
2606LC20816
2705LC20817
2805LC20818
2901LC20819
3099LC20120
3160LC20321
3250LC20322
3306LC20323
3405LC20324
3501LC20325
3660LC20326
3750LC20327
3806LC20328
3905LC20329
40
Sheet897
Cell Formulas
RangeFormula
D4:F7D4=SUMPRODUCT((ISNUMBER(SEARCH($C$12:$C$39,$C4))*ISNUMBER(SEARCH($B$12:$B$39,D$3)))*$D$12:$D$39)
 
Upvote 0
Thank you so much for taking the time to help with this. I think we are getting closer, however, I must still be missing something. My data sheet is actually pretty large, so I am using named ranges. When I plug in this formula: =SUMPRODUCT((ISNUMBER(SEARCH(TB_Custom,$A13))*ISNUMBER(SEARCH(TB_Fund,D$80)))*TB_Round) I am getting a #VALUE! result.

Also, as I am using my work computer, I can't add the extension. Sorry!
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,758
Messages
6,126,697
Members
449,331
Latest member
smckenzie2016

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