Autofill with INDIRECT and HLOOKUP Function

lwjjsgd

New Member
Joined
Aug 6, 2013
Messages
9
Could someone take a look on my formula please?

=INDIRECT("Liabilities!"&HLOOKUP($A$2,Liabilities!$E$1:$P$3,2,FALSE)&ROW(586))

I am trying to auto-fill the rows but get formula error message.

Please advise!
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
It is returning to a column that user specifies in A2, for example, month. When I took out "ROW", the formula works, but I need to auto-fill them. Please advise!
 
Upvote 0
ROW(586) is the invalid part.

Which cell is the formula in?
 
Upvote 0
There is a not a set cell. the Hlookup which helps users to select month, locates the column in the "Liabilities" worksheet, 586 is the row number in the "Liabilities" worksheet, these two together lock in a cell. Does that make sense? Sorry for the confusion.
 
Upvote 0
Jasobb75 is right.
ROW(586) is the invalid part.

Which cell is the formula in?

put ROW(A586) instead...
however I suspect there is a better method of doing this with index and match, What exactly is the formula doing ( in english )?
Indirect is an equation only to be used when there is no other solution, it's very slow.
 
Upvote 0
So you always want row 586?

What column references are returned from the lookup?
 
Upvote 0
I only need row 586 once, that's why there is a need for auto-fill, so I can drag down and the formula will adapt to row 587, 588, etc.
 
Upvote 0
however I suspect there is a better method of doing this with index and match, What exactly is the formula doing ( in english )?
Indirect is an equation only to be used when there is no other solution, it's very slow.

Exactly what I was thinking.
 
Upvote 0
Using ROW(A586) works, thanks Gilliam! The formula is used to locate a specific cell in another worksheet. As being mentioned above, the HLOOKUP helps users select month, row is just where the number is located. Basically, I am using both column and row to locate a specific cell.

I appreciate your solution Gilliam!
 
Upvote 0

Forum statistics

Threads
1,224,391
Messages
6,178,306
Members
452,839
Latest member
grdras

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