Excel sumif to calcluate all values that are equal to the furthest right value

Godwin117

Board Regular
Joined
Dec 19, 2019
Messages
68
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I have this formula, but it isn't working like I want it to. I am looking for it to calculate the sum of the right most value. An example is below.

Sum = 8

based on

|
|
\/
current formula, "=SUMIFS(G:G,F:F, RIGHT(F:F, 1)={2,3,4})"

Column "G" is the 2 column below
Coulmn "F" is the 1 column below

rynssm21
ofndns35
ookknf22
ppjojv16
 

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.
How about

+Fluff.xlsm
FGHI
2rynssm218
3ofndns35
4ookknf22
5ppjojv16
Data
Cell Formulas
RangeFormula
I2I2=SUMPRODUCT((RIGHT(F2:F5,1)+0={2,3,4})*(G2:G5))
 
Upvote 0
How about

+Fluff.xlsm
FGHI
2rynssm218
3ofndns35
4ookknf22
5ppjojv16
Data
Cell Formulas
RangeFormula
I2I2=SUMPRODUCT((RIGHT(F2:F5,1)+0={2,3,4})*(G2:G5))
Thank you for the help, it's giving me a #Value!, when I copied and pasted it, not sure why I was getting that error.
 
Upvote 0
You might need to confirm it with Ctrl Shift Enter
 
Upvote 0
Do not use whole columns, it will cause your workbook to slow down drastically & could cause incorrect results.
Try it like
=SUMPRODUCT((RIGHT(F2:F5,1)={"2","3","4"})*(G2:G5))
 
Upvote 0
Do not use whole columns, it will cause your workbook to slow down drastically & could cause incorrect results.
Try it like
=SUMPRODUCT((RIGHT(F2:F5,1)={"2","3","4"})*(G2:G5))
That worked thank you for your help.
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0
Another way that works with whole columns

=SUM(SUMIFS(G:G,F:F,"*"&{2,3,4}))
 
Upvote 0

Forum statistics

Threads
1,215,575
Messages
6,125,631
Members
449,241
Latest member
NoniJ

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