+ Reply to Thread
Results 1 to 3 of 3

Vlookup give only the first Value

  1. #1
    Registered User
    Join Date
    07-12-2014
    Location
    Qatar
    MS-Off Ver
    2010
    Posts
    0

    Vlookup give only the first Value

    Dear All,

    I have an Inventory Workbook were Item codes in Left column and Date in top row. I am using the Vlookup formula Its displays only the first value.
    If their are repeated dates for the same Item code I want to sumup the value according to the Date for that Item code.
    Please find the attached sample file



    I need to update the vlookup formula in the output, so that it takes the values accordingly and sumup.

    I am not sure if I have explained this clearly; however, you will understand better if you see my attached file with examples of my expected output.

    Appreciate for your quick reply
    Attached Files Attached Files

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Vlookup give only the first Value

    Try this formula in B2 copy it down and to the right.

    =SUMPRODUCT((Data!$A$2:$A$7=B$1)*(Data!$B$1:$AW$1=$A2)*(Data!$B$2:$AW$7))

    A
    B
    C
    D
    E
    F
    G
    H
    I
    1
    Item
    8-Jul-14
    9-Jul-14
    10-Jul-14
    11-Jul-14
    12-Jul-14
    13-Jul-14
    14-Jul-14
    15-Jul-14
    2
    c460-1
    0
    94
    11
    0
    0
    0
    0
    0
    3
    c460-2
    0
    1
    0
    0
    0
    0
    0
    0
    4
    c460-3
    0
    1
    0
    0
    0
    0
    0
    0
    5
    c460-3
    0
    1
    0
    0
    0
    0
    0
    0
    6
    EQ/PR/593
    0
    1
    0
    0
    0
    0
    0
    0
    7
    EQ/PR/590
    0
    1
    0
    0
    0
    0
    0
    0
    8
    EQ/PR/591
    0
    1
    0
    0
    0
    0
    0
    0
    9
    EQ/PR/592
    0
    1
    0
    0
    0
    0
    0
    0
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Vlookup give only the first Value

    Hi,

    I think you are misunderstand what a VLOOKUP function will give you. It will only return one value.

    One way would be in B2 copied across and down

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. vlookup- give me the cost of the next
    By stevekirk in forum Excel General
    Replies: 3
    Last Post: 11-16-2006, 02:42 PM
  2. [SOLVED] What can I add to a vlookup formula to give me a 0 not #n/a
    By Casper in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  3. What can I add to a vlookup formula to give me a 0 not #n/a
    By Casper in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-05-2005, 01:05 AM
  4. please give me an example of vlookup
    By Garth in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-27-2005, 09:05 AM

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