How to convert a static reference into a dynamic reference

Peterw_2506

Board Regular
Joined
Jan 28, 2011
Messages
74
Hi All,

I am having a little problem turning a static reference into a dynamic reference.

This formula, =LOOKUP(2,1/('[_Credit Card Expense.xlsx]Aug. 20'!$E:$E<>""),'[_Credit Card Expense.xlsx]Aug. 20'!$E:$E) works properly as a static reference.

This formula, =INDIRECT("'["&K1&"]"&C73&"'!"&M64), works correctly also with K1 referring to the workbook and C73 referring to the correct worksheet.

However, M64 is still a static cell reference when I need to reference the last cell in Column E that contains a numeral.

Can somebody show me how to convert this functioning static address into a dynamic address please.

Thank you in advance.
 

Some videos you may like

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

arthurbr

Well-known Member
Joined
Dec 8, 2006
Messages
2,201
Office Version
  1. 2010
Replace the static reference with INDEX(E:E,MATCH(9.99999999999999E+307,E:E))
 

Peterw_2506

Board Regular
Joined
Jan 28, 2011
Messages
74
Dear Arthur, thank you for your help. Can I ask you to write the entire formula out as I seem to be stuffing this up somewhere when pasting you answer in as it returns #ref! answer
 

Watch MrExcel Video

Forum statistics

Threads
1,127,639
Messages
5,626,040
Members
416,155
Latest member
bokboxes

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