+ Reply to Thread
Results 1 to 4 of 4

Lookup issues due to multiple same value data

  1. #1
    Registered User
    Join Date
    02-25-2010
    Location
    Malta
    MS-Off Ver
    Excel 2007
    Posts
    7

    Lookup issues due to multiple same value data

    Hi,

    I am trying to find a solution for the following.

    I have a worksheet in which there appears same value data multiple times, i.e. if you look in the work sample, OTD11/01 can be found in 4 rows in column I of sheet "invoice cost overview". In the sheet "freight expenses by ship" this same data will only be found once. This data is the only common value between the two worksheets.

    I want to duplicate the "value" column D (sheet "invoice cost overview") and the date found in column B (sheet "invoice cost overview") in " recharge"column G and "date sales inv" column H, both in sheet" "freight expenses by ship", based upon a search of "shipping no." column A (sheet "freight expenses by ship").

    However because of the duplicate shipping no's, the known lookup solutions known to me are not working. Is there a way that finds all the requested data and will combine the "value" of all the same "shipping no." found into the one cell in "recharge" column G. The "date" will always be the same date for all the same "shipping no.'s", so that will be a single transfer from one cell to another.

    I tried to explain it as good as possible, but if I have failed in doing so, please let me know and I'll give it another try ;-).

    Thanks in advance

    Erik
    Attached Files Attached Files
    Last edited by Lostinxcel; 02-14-2011 at 08:59 AM.

  2. #2
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    365
    Posts
    1,255

    Re: Lookup issues due to multiple same value data

    Hi,

    Yes, if I understand correctly, you can use the SUMIF() function to do this.

    The formula in G3 would be:
    =SUMIF('Invoice cost overview'!$I$2:$I$14,$A3,'Invoice cost overview'!$D$2:$D$14)

    which gives a result of 5,005.01.

    Is that the result you're looking for?
    Hope that helps,

    Colin

    RAD Excel Blog

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

    Re: Lookup issues due to multiple same value data

    If the date is always the same for each Shipping No. as you infer, then use Sumif

    e.g. =SUMIF('Invoice cost overview'!$I$2:$I$14,$A3,'Invoice cost overview'!$D$2:$D$14)

    to get the date:

    =INDEX('Invoice cost overview'!$B$2:$B$14,MATCH($A3,'Invoice cost overview'!$I$2:$I$14,0))

    both copied down
    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.

  4. #4
    Registered User
    Join Date
    02-25-2010
    Location
    Malta
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Lookup issues due to multiple same value data

    Thank you very much Colin and NBVC, works great.

    Cheers,

    Erik
    Last edited by Lostinxcel; 02-14-2011 at 08:48 AM.

+ 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