+ Reply to Thread
Results 1 to 7 of 7

Obtaining Data from Separate Tabs

  1. #1
    Registered User
    Join Date
    03-07-2011
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    10

    Obtaining Data from Separate Tabs

    What I want to do is have the 2nd tab get information from the first tab automatically and dynamically.

    At the moment I've managed to get the information from Column P but since the information is added weekly if I add information for the next week it will still reflect the information in column P instead of the most recent Column.

    Does anyone know how to make this update automatically from the most recent

    Example:
    http://www.roadbullettransport.com.au/report.xls

    Note: I have highlighted the column in blue which I'm talking about.

    Thanks in advance.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    23,246

    Re: Obtaining Data from Seperate Tabs

    First, I have changed row 1 of your data to use actual dates. I always recommend using actual dates instead of text data when recording dates. Also I have broken the merged cells so there is one date in each cell. This makes the solution to your question easier and also makes potential changes in the future easier.

    I didn't complete every cell in your results, just the blue ones. I'm sure you will get the idea and be able to extend it.

    BTW, although your explanation was very clear, the thread title is not really related to your problem. Your problem is more like "reference last column as new columns are added."
    Attached Files Attached Files
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    03-07-2011
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Obtaining Data from Seperate Tabs

    Many Thanks for your support.

    Can you please break this code down for me and tell me what it does?

    =HLOOKUP(LARGE(TokenDates,2),TokenData,8,FALSE)

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    23,246

    Re: Obtaining Data from Seperate Tabs

    Quote Originally Posted by squidg View Post
    Many Thanks for your support.

    Can you please break this code down for me and tell me what it does?

    =HLOOKUP(LARGE(TokenDates,2),TokenData,8,FALSE)
    First let me suggest that you go into Excel Help and look up the functions HLOOKUP and LARGE and named ranges.

    TokenDates and TokenData are named ranges. If you go to the address box (just above the A at the upper left corner of the grid) and click the dropdown, you will see those names. If you pick one it, the range it refers to will be highlighted.

    LARGE finds the kth largest value in a range. In this case it is finding the second largest date, which takes us to the last column with data.

    HLOOKUP looks across a row for the specified value, in this case the second largest date. When it finds it, it goes down the specified number of rows (8 in this example), and returns the data it finds there.

  5. #5
    Registered User
    Join Date
    03-07-2011
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Obtaining Data from Separate Tabs

    and what does false do?

    Thank you so much for this by the way! i am sooooo happy!

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    23,246

    Re: Obtaining Data from Separate Tabs

    Quote Originally Posted by squidg View Post
    and what does false do?
    Not to be snarky about it but it will be easier for both of us if you hit F1 and type in HLOOKUP. It will describe all the arguments and give examples.

  7. #7
    Registered User
    Join Date
    03-07-2011
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Obtaining Data from Separate Tabs

    Thanks I did that and i now understand.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1