# Thread: Getting value from a different tab (How to make my current formula drag down?) Thanks: 0 Likes:  1 Post #5309823 (1)

1. ## Getting value from a different tab (How to make my current formula drag down?)

Hello!

I made a formula to display the latest value entered in a column on a different tab.

In the column on “Sheet2,” an employee enters the new amount of mileage driven in the rented car once it’s returned (see example below. Date and Mileage are two different columns):

• “Date”..................... “Mileage”
• 01/01/2019............... 123,456
• 01/05/2019 ...............123,557
• 01/27/2019 ...............124,896

On the “Sheet1” page it displays the most recent mileage count ("124,896") using the formula below:

```=LOOKUP(2,1/(Sheet2!H2:H10000<>""),Sheet2!H2:H10000) ```The thing is, I have 5 different sheets with the same two columns as above and I need to use this formula to get the mileage values from all 5 sheets. As of now I am entering it manually in each cell to say "Sheet3!" or "Sheet4!" to gather the data.

Is there a way I can create a drag down formula instead of manually entering the different sheet names?

Thanks!

2. ## Re: Getting value from a different tab (How to make my current formula drag down?)

If you have a list of your sheet names, you can use INDIRECT like this:

NO
1Sheet23
2Sheet355
3Sheet4222
4Sheet56666

Sheet1

Worksheet Formulas
CellFormula
O1=LOOKUP(2,1/(INDIRECT("'"&N1&"'!H2:H10000")<>""),INDIRECT("'"&N1&"'!H2:H10000"))