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

britts614

New Member
Joined
Jul 9, 2019
Messages
8
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:

<code>=LOOKUP(2,1/(Sheet2!H2:H10000<>""),Sheet2!H2:H10000)

</code>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! :)
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
If you have a list of your sheet names, you can use INDIRECT like this:


Book1
NO
1Sheet23
2Sheet355
3Sheet4222
4Sheet56666
Sheet1
Cell Formulas
RangeFormula
O1=LOOKUP(2,1/(INDIRECT("'"&N1&"'!H2:H10000")<>""),INDIRECT("'"&N1&"'!H2:H10000"))
 
Upvote 0

Forum statistics

Threads
1,214,516
Messages
6,119,980
Members
448,934
Latest member
audette89

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