+ Reply to Thread
Results 1 to 5 of 5

A simpler way to do nested vlookups?

  1. #1
    Registered User
    Join Date
    02-11-2010
    Location
    Utah
    MS-Off Ver
    Excel 2007
    Posts
    14

    A simpler way to do nested vlookups?

    Hi, it's me again! I have another question.

    On my third tab, "Dept. E&F Summary," I have a huge formula that will sum up all the funding sources and expenditures if the date matches. This formula is pretty huge. I just added space for 10 more funding sources/expenditures, if I added 10 more vlookups inside the already huge formula it would be a rather gargantuan formula to deal with. I am wondering if there is an easier way to accomplish this same thing without the gargantuan formula.

    On the second tab, "Proj. Detail Report," I have something similar, but I am using a match and then I will hide the text that it is matching by coloring the text white. There might be an easier way to do that as well, but this works ok.

    Thanks for any help you can provide.
    Attached Files Attached Files
    Last edited by bsoper; 01-06-2011 at 03:43 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: A simpler way to do nested vlookups?

    Does something like this work, in E17 copied down and across?

    =SUMPRODUCT((RawData!$C$2:$C$2000=$B17)*(RawData!$X$1:$AJ$1=E$16),RawData!$Z$2:$AL$2000)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    02-11-2010
    Location
    Utah
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: A simpler way to do nested vlookups?

    It isn't returning anything, just 0's. I don't follow the "RawData!$X$1:$AJ$1=E$16" part, as row 1 isn't ever equal to the date in E16, it's the header row.

    I have updated the RawData tab with the additional columns I had stated in the previous post, so I attached the updated file.
    Attached Files Attached Files

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: A simpler way to do nested vlookups?

    Things have changed, positionwise....

    Try for Expenditure:

    =SUMPRODUCT((RawData!$B$2:$B$2000=$B17)*(RawData!$N$2:$AO$2000=E$16),RawData!$P$2:$AQ$2000)

    and for Funding

    =SUMPRODUCT((RawData!$B$2:$B$2000=$B36)*(RawData!$AS$2:$CI$2000=E$16),RawData!$AU$2:$CK$2000)
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-11-2010
    Location
    Utah
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: A simpler way to do nested vlookups?

    Great! Thanks so much! I will learn SUMPRODUCT one of these days

+ 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