Sumproducts with text and addition/subtraction in different columns

Angelinamcon

New Member
Joined
Mar 5, 2024
Messages
3
Office Version
  1. 365
Platform
  1. MacOS
I need to add these two functions to get an answer in one cell:

=SUMPRODUCT(($G28:G35="Sephora")*$I$28:I35

and

=SUMPRODUCTS(($G28:G35="Sephora")*$J$28:J25

I am trying to get a running total for how much i send on specific products like Sephora. I hav two column as Deposit just incase i return something and a Paid column so i can see how money through the month i am spending for that one thing. so it should be -10, when i do just one sumproduct it does find how much spent or how much refunded.

Thank you!!

Paid to or Paid Fromdescriptiondepositpaid
3/1/24​
Sephora CCSephora
-40​
-40​
3111.37​
3/1/24​
Sephora CCSephora30
0​
3111.37​
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Welcome to the MrExcel board!

For the future, I suggest that you investigate XL2BB for providing sample data & expected results to make it easier for helpers to understand just what you have & where it is and also what you want & where it is to be.

If you are providing sample formulas, please copy/paste them from your Excel or at least be very careful with what you provide as that is all we have to go on. Neither of your posted formulas are valid formulas. Both are missing parentheses, one has a spelling error and one has mis-matched ranges. ;)

In any case, try this formula in row 28 (I think) and copy down
Excel Formula:
=SUM(FILTER(I$28:J28,G$28:G28="Sephora",0))
 
Upvote 0
so sorry, yes, here is the excel workbook im trying to figure out

Expenses.xlsx
ABCDEFGHIJKLMNOPQ
8Fixed ExpensesJanuaryFebruaryMarch AprilMayJuneJulyAugustSeptemberOctoberNovemberDecember
9ExpenseAmoutMonthly Income3591.593601.093601.09
10Car payment535Interest Income6.44
11Citi Card267Refunds0409
12Phone135$ 3,598.03$ 4,010.09$ 3,601.09$ -$ -$ -$ -$ -$ -$ -$ -$ -
13Total937
14Savings 2024
15JanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember
16Accelerated Savings450350
17Running Expenses529 School Savings1515
18ExpenseAmountRoth IRA100100
19Sephora0$ 565.00$ 465.00$ -$ -$ -$ -$ -$ -$ -$ -$ -$ -
20Ulta#VALUE!
21Ipsy#VALUE!Total Spending 2024
22Groceries#VALUE!JanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember
23Baby Boo#VALUE!
24Out-to-eat#VALUE!
25Credit Cards#VALUE!Total to Date3111.37
26Other#VALUE!Running Expenses 2024
27Dogs#VALUE!Date of PaymentMethod of PaymentPaid to OR Paid fromDescriptionDeposit PaidRunning TotalConfirm
28Cat#VALUE!2/28/24VisaState of COTaxes409409409
292/29/24VisaState of COMonthly Income3601.093601.094010.09
302/29/24VisaCredit CardsCU CO -150.93-150.933859.16
312/29/24VisaGroceriesKings-55.04-55.043804.12
322/29/24VisaRentRent-650-6503154.12
333/1/24VisaOtherParking-2.75-2.753151.37
343/1/24Sephora CCSephora-40-403111.37
353/1/24Sephora CCSephora03111.37
Sheet1
Cell Formulas
RangeFormula
F12,F19F12=SUM([January])
G12,G19G12=SUM([February])
H12H12=SUM([[March ]])
I12,I19I12=SUM([April])
J12,J19J12=SUM([May])
K12,K19K12=SUM([June])
L12,L19L12=SUM([July])
M12,M19M12=SUM([August])
N12,N19N12=SUM([September])
O12,O19O12=SUM([October])
P12,P19P12=SUM([November])
Q12Q12=SUM([[December ]])
C13C13=SUM(C10:C12)
H19H19=SUM([March])
Q19Q19=SUM([December])
K25K25=SUM(Table9[Running Total])
C19:C28C19=SUM(FILTER($I28:$J28,G$28:G28="Sephora",0))
K28:K35K28=SUBTOTAL(109,INDEX([@[Deposit ]],1):INDEX([@Paid],1))
L29:L35L29=L28+[@[Running Total]]
 
Upvote 0
Thanks for the XL2BB sample data. The issue is that your data is in formal Excel tables which we didn't know about before. :)

Firstly though, a suggestion for the table in E27:L35 in your sample. Instead of manually entering the 409 in the top cell of that final column, try removing all values/formulas in that column then enter this formula in the top cell where currently you have 409
Excel Formula:
=SUM(INDEX([Running Total],1):[@[Running Total]])

In relation to the formula you originally asked about (starting at C19 in your latest sample), remove the formulas from C19:C28 then enter this formula in C19. Check that the table name in the formula is correct. It should be the name of the table in E27:L35.
Excel Formula:
=SUM(FILTER(Table2[[Deposit ]:[Paid]],Table2[Paid to OR Paid from]=[@Expense],0))
 
Upvote 0
You are welcome. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,215,079
Messages
6,123,009
Members
449,093
Latest member
ikke

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