+ Reply to Thread
Results 1 to 4 of 4

Combining VLOOKUP and SUMIF (or other)

  1. #1
    Registered User
    Join Date
    12-30-2011
    Location
    Grand Rapids, Michigan
    MS-Off Ver
    Excel 2002
    Posts
    2

    Combining VLOOKUP and SUMIF (or other)

    Hello...

    I just joined so please redirect me if I am in the wrong place.

    I have 2 files...see attached. There is a lot more information and columns but for these purposes, File 2 shows the same ID number (67890) with a value in different criteria. I'm looking for a way to VLOOKUP in File 2 and combine the value all of the ID numbers that are the same and put them in File 1.

    Thank you for any help, suggestions, or referrals...

    Lassie
    Attached Files Attached Files

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Combining VLOOKUP and SUMIF (or other)

    By your title it appears you are using a 2002 version of Excel, so...

    Try this...

    =SUM(IF('[Forum File 2.xls]Sheet1'!$B$8:$B$14=B8,'[Forum File 2.xls]Sheet1'!$C$8:$C$14))

    This a CSE formula which means you must enter it with Ctrl + Shift + Enter
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    12-30-2011
    Location
    Grand Rapids, Michigan
    MS-Off Ver
    Excel 2002
    Posts
    2

    Re: Combining VLOOKUP and SUMIF (or other)

    Thank you Jeff!

    I think you are on to something here but I am in very unfamiliar territory so if you wouldn't mind, let's try it again with a more realistic set up...see new files attached.

    In File 2, you will see in Column B the ID number 41475 showing in 2 separate sections with the amount in Column J as 25. Column O in File 1 should reflect the total as 50. The total for ID number 417113 should show as 25 since it only shows in one section of File 2. Further, ID number 416950 should show as zero (not #N/A please) in File 1 as it is not in File 2 at all.

    Please note these are not sheets within one file, but two completely separate excel files.
    Attached Files Attached Files

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Combining VLOOKUP and SUMIF (or other)

    See if this helps. On File 1.xls column O I would get ride of the blanks rows if at all possible so you can just drag the formula down.

    Adjust range sizes to meet your real need, but remember, this is a CSE formula so you will need to enter the formula with Ctrl + Shift + Enter
    Attached Files Attached Files

+ 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