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

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

mole999

Well-known Member
Joined
Oct 23, 2004
Messages
10,524
Office Version
  1. 2019
  2. 2016
  3. 2013
Platform
  1. Windows
something like Dim Wednesday

Wednesday = range("A1")

_AS400_Data[Wednesday]))
 
Upvote 0

Forum statistics

Threads
1,190,856
Messages
5,983,242
Members
439,833
Latest member
CDaviess

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
Top