SUMIFS with OR

gberg

Board Regular
Joined
Jul 16, 2014
Messages
205
Office Version
  1. 365
Platform
  1. Windows
I have the following formula to look for multiple criteria
VBA Code:
=SUM(SUMIFS(TBL_GL_Coins[Debits],TBL_GL_Coins[GL Account],{"71.10.50000","71.10.50100","71.10.50200","71.10.50300","71.10.50600"}))

Instead of using the actual values (i.e. "71.10.5000", "71.10.50100", etc.) I want to reference the values in cells (i.e. Cell T1 = 71.10.50000)
When I change the "71.10.5000" to T1, the formula stops working. Is there a way to reference cells in this formula or is there a different formula that would work?
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Are all the values in one cell, or each value in it's own cell?
 
Upvote 0
Each value has it's own cell (i.e. T1=71.10.5000, T2=71.10.50100, etc.)
 
Upvote 0
IGNORE
Can you post what actual formula you are using while referencing cells?
 
Upvote 0
Ok, how about
Excel Formula:
=SUM(SUMIFS(TBL_GL_Coins[Debits],TBL_GL_Coins[GL Account],T1:T5))
 
Upvote 0
Solution
Excel Formula:
=SUM(SUMIFS(TBL_GL_Coins[Debits],TBL_GL_Coins[GL Account],{$T$2,$U$2,$V$2,$W$2,$X$2,$Y$2,$Z$2,$AA$2,$AB$2}))
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,225,754
Messages
6,186,826
Members
453,377
Latest member
JoyousOne

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