Using a cell Reference in a table name in a formula.

1629dill

New Member
Joined
Aug 28, 2014
Messages
5
I am working on a spread sheet that pulls data in to a sheet from an ODC connection to an AS400 database.
I am working with a sumif formula that is puling data from the table “Table_Query_from_AS400_Data”.
=-1*(SUMIF(Table_Query_from_AS400_Data[ACCOUNT3],"S02",Table_Query_from_AS400_Data[PERIOD_1]))
I would like to change the formula so that I can put the period in a cell and the formula will look at the new period and return the data.
=-1*(SUMIF(Table_Query_from_AS400_Data[ACCOUNT3],"S02",Table_Query_from_AS400_Data[$A$1]))

A1=Period_1



 

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.
something like Dim Wednesday

Wednesday = range("A1")

_AS400_Data[Wednesday]))
 
Upvote 0

Forum statistics

Threads
1,214,951
Messages
6,122,442
Members
449,083
Latest member
Ava19

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