+ Reply to Thread
Results 1 to 4 of 4

Look up single value from list of duplicates

  1. #1
    Registered User
    Join Date
    07-08-2013
    Location
    High Wycombe, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Look up single value from list of duplicates

    Hi All,

    I have a list of transactions where there is multiple lines per reference, I also have a list of delivery charges where I currently have a lookup to pull this through to my list of transactions.

    The problem is, because there are multiple lines for each reference the lookup is pulling through the delivery charge on each line. e.g. -

    34PJ5F457FBF 18.35
    34PJ5F457FBF 18.35
    34PJ5F457FBF 18.35
    35355F45B8DA 18.98
    35355F45B8DA 18.98

    At the moment I then go through each line and manually delete all but 1 delivery charge per reference. Is there a formula that looks at the reference and only does the vlookup on the 1st one?

    Thanks

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Look up single value from list of duplicates

    Try something on these lines..

    =IF(COUNTIF($A$1:A1,A1)=1,vlookup(......................),"")

    copy down
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Look up single value from list of duplicates

    do you mean something like this?
    Attached Files Attached Files
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    07-08-2013
    Location
    High Wycombe, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Look up single value from list of duplicates

    That's exactly what I need! thanks!

+ 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