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

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
something like Dim Wednesday

Wednesday = range("A1")

_AS400_Data[Wednesday]))
 
Upvote 0

Forum statistics

Threads
1,214,896
Messages
6,122,132
Members
449,066
Latest member
Andyg666

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