+ Reply to Thread
Results 1 to 4 of 4

find first cell value on separate page and insert value once

  1. #1
    Forum Contributor
    Join Date
    07-18-2014
    Location
    Missouri, USA
    MS-Off Ver
    2010
    Posts
    175

    find first cell value on separate page and insert value once

    It was hard to come up with a proper title to this thread so I'm sorry if its confusing.

    I have one worksheet(Master) with various Invoice numbers listed multiple times down column A. I have a second worksheet(LN Fee) that has the same various Invoice numbers listed once down column A.

    I want to pull in the value of column B in worksheet(LN Fee) to column AJ of the (Master) where the invoice number matches. A simple index/match or vlookup would normally work but since each invoice number is listed multiple times on the (Master) sheet, the formula would pull in the value of column B from worksheet(LN Fee) many times and I only need to pull it in once.

    Any suggestions?

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: find first cell value on separate page and insert value once

    Hello,

    I'm not sure I follow completely. The master sheet may have duplicate invoice numbers. Does the LN Fee also have duplicates? Vlookup or Index/Match will return only one value: the first one that the formula finds.

    Can you explain your data in a bit more detail or maybe post a sample file?

    cheers, teylyn

  3. #3
    Forum Contributor
    Join Date
    07-18-2014
    Location
    Missouri, USA
    MS-Off Ver
    2010
    Posts
    175

    Re: find first cell value on separate page and insert value once

    The LN Fee worksheet will never have duplicate invoice number lines. The LN Fee worksheet lists the invoice number in column A and a dollar amount(fee) in column B.

    On the master worksheet, one invoice number may be listed 10 times. I want to pull that dollar amount in column B from the LN Fee worksheet and put it on one single line of the matching invoice number on the master worksheet, not ten times.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,050

    Re: find first cell value on separate page and insert value once

    From what I can make out, if you do a count of Inv No, something like =IF(countif($A$2:A2,A2)>1,"",your-index/Match-formula) this should only pull in the matching value, the 1st time it finds the Inv No. After that, duplicate Inv No's will be ignored (in Master)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. Replies: 1
    Last Post: 05-30-2014, 02:53 AM
  2. Replies: 2
    Last Post: 03-12-2008, 02:38 PM
  3. find last entry and insert page break & line
    By littleme in forum Excel General
    Replies: 3
    Last Post: 03-30-2006, 05:15 AM
  4. [SOLVED] Excel97 - Syntax for Find, Offset, Insert Page
    By djh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-05-2005, 10:05 AM
  5. [SOLVED] Prints each cell on separate page
    By Rob E in forum Excel General
    Replies: 1
    Last Post: 09-15-2005, 12:05 PM

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