+ Reply to Thread
Results 1 to 4 of 4

VLOOKUP Across Several Sheets

  1. #1
    Registered User
    Join Date
    06-28-2005
    Posts
    81

    VLOOKUP Across Several Sheets

    Hi, a tricky question I didn't know how to summarise in the title ...

    I have 50 sheets. In each sheet there is a table with 2 collumns. The first collum is filled with names and the secon with ages. Each sheet is dedicated to a different city. I would like to know whether it is possible to "forge" a formula capable of summing the result of VLOOKUP from each sheet so that I can sum all ages that maches some name criteria. In a semi-english syntax would be something like this:

    SUM(Sheet1:Sheet50!VLOOKUP("George";A1:B100;1;FALSE))

    or

    SUM(VLOOKUP("George";Sheet1:Sheet50!A1:B100;1;FALSE))

    Is it somehow possible ? maybe using arrays ?

    Thanks in advance for any support

    Paolo

    Italy
    Last edited by kayard; 03-16-2010 at 07:39 AM.

  2. #2
    Registered User
    Join Date
    06-28-2005
    Posts
    81

    Re: VLOOKUP Across Several Sheets

    I edited the semi-english sintax for it was confusing. sorry

  3. #3
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: VLOOKUP Across Several Sheets

    Hi,

    You can't use any of the lookup functions in "3D", without a UDF or some other code.

    I think that your best bet is to do the lookup on each sheet in a specific cell eg, Z100, and then sum that cell in "3D", eg =SUM(Sheet1:Sheet5!Z100)
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: VLOOKUP Across Several Sheets

    by far the easiest would be to do a sumif on all sheets then sum3d the totals
    you can enter the same formula in all sheets at once by selecting all sheets required then enter the formula in one of them it will be replicated in all the others
    see attached formulas in yellow cells. but are you sure you want to sum ages or count them?
    Attached Files Attached Files
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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