Use cell value in formula

288enzo

Well-known Member
Joined
Feb 8, 2009
Messages
726
Office Version
  1. 2016
Platform
  1. Windows
Hi all,

I'm stuck on how to use the value in a cell as the row reference in a formula. I believe I need to use indirect, just not sure how. Thank you.

This is my current formula
Excel Formula:
=COUNTIFS('KPI Data'!$D$2:$D$14400,C8,'KPI Data'!$M$2:$M$14400,"<="&(TODAY()-$J$1))

I am trying to replace "14400" with the value in K1.
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Why do you need to do that?
 
Upvote 0
INDIRECT Returns the range of the text you give it as input.

Excel Formula:
=INDIRECT("'KPI Data'!A1:A100")
will return the range 'KPI Data'!A1:A100

So you can concat the desired text an pass it to INDIRECT

Excel Formula:
INDIRECT("'KPI Data'!D2:D"&K1)

But, if you give us the answer to Fluffs question, there may be a better solution to your problem.
 
Upvote 0
There is no need to use volatile functions like Indirect for this, it will only slow your workbook down.
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

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