+ Reply to Thread
Results 1 to 7 of 7

Thread: Vlookup

  1. #1
    Registered User
    Join Date
    12-04-2010
    Location
    Jamaica
    MS-Off Ver
    Excel 2003
    Posts
    14

    Vlookup

    Hi everyone,

    Can anyone help me with this,

    I need to write a vlookup or any formula that will look for three (3) item numbers in coulmn 'A' and sum there total in column 'C' & 'D'

    So in column 'A' i have the item numbers, in coulmn 'B' i have the name of the Item and in columns 'C' & 'D' i have the amount that is sold for each item.

    Some of these items has more than one item# therefore i want to be able to type in ALL the Item # for these items that has more than one item number and then sum the amount that is sold for these items.

    I tried this formula but it dosent work SUM (VLOOKUP(101,205,315,A1:D50,{3,4},0))
    Last edited by headley4ever; 12-06-2010 at 01:47 PM.

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

    Re: Vlookup

    Try:

    =SUMPRODUCT(ISNUMBER(MATCH(A1:A50,{101,205,315},0))*(C1:D50))

    This will add the values in column C and D together for each match in column A.... is that what you want?
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

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

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

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #3
    Registered User
    Join Date
    12-04-2010
    Location
    Jamaica
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Vlookup

    Thanks for your quick response. You have correctly interpeted my question. The formula however is not working. I am getting this #VALUE! error message.

    Is their something else i should do to make this formula work? Should i use CTRL+ENTER

    Thanks Again

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

    Re: Vlookup

    No need for special entry.

    Are you values in column A actually formatted as numbers or text?

    Try selecting column A and go to Data|Text to Columns and click Finish

    Or do you have text in columns C or D?

    Or are there Value errors in A, C or D

    See attached for working sample
    Attached Files Attached Files
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

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

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

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  5. #5
    Registered User
    Join Date
    12-04-2010
    Location
    Jamaica
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Vlookup

    Many Thanks ....... The formula now works. I had a few text in column 'A' which i have now deleted. Am i correct in saying that this column will not work if Text is in the column. Is their a way we could write the formula to ignore text?

  6. #6
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: Vlookup

    Text in column A should not be the problem. It's text in columns C and D

    Try:

    =SUMPRODUCT(ISNUMBER(MATCH(A1:A50,{101,205,315},0))*ISNUMBER(C1:D50),C1:D50)
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

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

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

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  7. #7
    Registered User
    Join Date
    12-04-2010
    Location
    Jamaica
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Vlookup

    Thanks a lot. The formula now works very well. Many thanks again.

+ 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.2.0