SUMIFS challenge

daveyc18

Well-known Member
Joined
Feb 11, 2013
Messages
756
Office Version
  1. 365
  2. 2010
so in column G...i have there are a bunch of codes, but in text format (e.g, 0410, 0400, 2000, etc.)

i want to sum column P where anything in column G is greater than 2000....the issue ofc is that column G is text so it doesnt seem to work when i try ">2000"
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Try this. Note there is a single quote before the second double quote, and before the last double quote:

Book1
ABCDEFGHIJKLMNOP
1Sumifs:18
2
304101
404002
510563
615604
720005
821006
Sheet1
Cell Formulas
RangeFormula
P1P1=SUMIFS(P3:P8,G3:G8,">'" & 1050 &"'")
 
Upvote 0
edit to post 3. I did not read the question carefully enough.

T202411a.xlsm
GPQ
16
2
304101
404002
510153
615604
720005
821006
9
2k
Cell Formulas
RangeFormula
Q1Q1=SUMIFS(P3:P8,G3:G8,">'2000'")
 
Upvote 0
T202411a.xlsm
GPQ
16
26
304101
404002
510153
615604
720005
821006
2k
Cell Formulas
RangeFormula
Q1Q1=SUMPRODUCT(--(--($G$3:$G$8)>2000),P3:P8)
Q2Q2=SUMIFS(P3:P8,G3:G8,">'2000")
 
Last edited:
Upvote 0
No information or feedback was posted.
With older versions of Excel, I would use Sumproduct.
With 365, I would use Sum.

Excel's Formulas | Formula Auditing | Formula Evaluate shows the logic.
The double negative coerces the text to a number and ">" coerces the True or False to 1 or 0. Multiplying by 0 yields 0 and multiplying by 1 yields the number.

T202411a.xlsm
GPQ
141
241
30410141
420005
521006
604107
704008
8550017
9999918
10
2k
Cell Formulas
RangeFormula
Q1Q1=SUMPRODUCT(--(--($G$3:$G$9)>2000),P3:P9)
Q2Q2=SUMIFS(P3:P9,G3:G9,">'2000")
Q3Q3=SUM((--G3:G9>2000)*P3:P9)
 
Upvote 0

Forum statistics

Threads
1,223,996
Messages
6,175,862
Members
452,676
Latest member
woodyp

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