Exclude items with SUMIFS

flora1

New Member
Joined
Nov 27, 2017
Messages
48
=SUMIFS(Data!$D$2:$D$3924,Data!$A$2:$A$3924,B$2,Data!$B$2:$B$3924,$A3)

i have my criterias,

now on the column F of Data sheet. i want to exclude if any value of these three value 115 and 145 and XXII
and in column G i want to include only if the cell starts with 6 or 5 or 7


thanks.
 
Re: how to excude items with SUMIFS

I saw your other thread that just got closed.
The values in B2 and A3 on Main are TEXT numbers.
Format those cells as General or Number (anything but TEXT)
AND, Re-Enter those numbers.
 
Upvote 0

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Re: how to excude items with SUMIFS

thanks very much Jomno1

is there a way to modify the formula, so that it works without formatting the cell ? i tried with A3&"#" but it did not work.
 
Upvote 0
Re: how to excude items with SUMIFS

is there a way to modify the formula, so that it works without formatting the cell ?
Why?
Are those cells in your 'actual' sheet populated by a formula that returns as text? Adjust that formula instead..

But yes, you should be able to use A3+0 and/or B2+0 in the formula.
 
Upvote 0
Re: how to excude items with SUMIFS

thanks very much Jomno1

is there a way to modify the formula, so that it works without formatting the cell ? i tried with A3&"#" but it did not work.

I did give you the formula which works wit the data as you have it. It's sometimes better to work with data as is.
 
Upvote 0
Thanks Aladin.

somehow the formulas are scared of you :) when i come to this forum, it works, but now when i changed it by myself. i did not work. i also checked the lotus compatibilty problem, it is already unchecked.
 
Upvote 0
Thanks Aladin.
somehow the formulas are scared of you :) when i come to this forum, it works, but now when i changed it by myself. i did not work.
That implies that the formulas are scared of you, not Aladin ;)

The +0 didn't work in the formula because the Match function is expecting a Range or Array as the 2nd argument. The +0 converts that to just a number instead.
Try DataYear&"" instead (same for DataMonth)

Also, I agree with Aladin. When your example setup changes from one post to the next, that makes it very difficult for us to work with.
You should keep your sample setup consistent, as close to the real sheet setup as possible.
 
Upvote 0
Upvote 0
Jomno1

you are genius, just like Aladin. "brilliant minds think alike"

i put the double qoutes and it worked.

Code:
=SUMPRODUCT(DataAMOUNT,--ISNUMBER(MATCH(DataYear&"",B$2,0)),--ISNUMBER(MATCH(DataMonth&"",$A3,0)),--ISNUMBER(MATCH(LEFT(DataPRODUCT),{5,6,7}&"",0)))
 
Upvote 0

Forum statistics

Threads
1,224,825
Messages
6,181,189
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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