+ Reply to Thread
Results 1 to 14 of 14

Find and match to fill data

Hybrid View

  1. #1
    Valued Forum Contributor
    Join Date
    01-02-2004
    Location
    malaysia
    Posts
    342

    Find and match to fill data

    Hi all,
    I humbly seek assistance and help to fine tune my "find and match" function that works between 2 files. I am using the following:-

    =INDEX('[Jan 2009 Sales & Gross Profit Record.xls]PG'!$D$3:$D$12,MATCH(C4,'[Jan 2009 Sales & Gross Profit Record.xls]PG'!$F$3:$F$9,0))

    My problem is I am only able to do it in D9 where customer and amount are matched correctly. But when customer appears more than one then it doesnt match corectly.

    Please refer to my attachment for better undestanding. Any tips and help is greatly appreciated.
    Attached Files Attached Files
    Last edited by seanyeap; 03-14-2009 at 02:50 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Find and match to fill data

    Maybe like this? (attached)
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Valued Forum Contributor
    Join Date
    01-02-2004
    Location
    malaysia
    Posts
    342

    Re: Find and match to fill data

    Hi JBeaucaire,
    Yes this is what I want. I have tried a couple of times, when I changed the customer name, it did not return the amount correctly. Pls adv. Thanks in advance

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Find and match to fill data

    Typos aren't allowed. Every company in your sample sheet comes up when I put that name into C4. If it doesn't work for you, then it's a spelling issue.

  5. #5
    Valued Forum Contributor
    Join Date
    01-02-2004
    Location
    malaysia
    Posts
    342

    Re: Find and match to fill data

    Hi JBeaucaire,
    I need to enter company name in C4 so that it will find and match to fill in the cells. I am sorry to trouble you again. Thanks
    Last edited by seanyeap; 02-23-2009 at 07:26 AM.

  6. #6
    Valued Forum Contributor
    Join Date
    01-02-2004
    Location
    malaysia
    Posts
    342

    Re: Find and match to fill data

    Hi,
    When a company name is entered in C4, all related data from another worksheet will be copied to the cells. Thanks in advance.

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Find and match to fill data

    I just tried entering each of these company names:

    Super Co
    Excellent Co
    Standard Machinery
    Donkey Corp
    Panda Food Company
    Fusion Marketing
    Standard Machinery

    ...and each one caused the form to draw over the appropriate info.

    The only thing I can think is that your "link" to the other sheet has gotten corrupted somehow. This is the exact sheetname used in the formulas:

    Jan 2009 Sales & Gross Profit Record.xls

    If yours differs in any way, click on EDIT > LINKS > CHANGE SOURCE and select your source sheet again.

  8. #8
    Valued Forum Contributor
    Join Date
    01-02-2004
    Location
    malaysia
    Posts
    342

    Re: Find and match to fill data

    Hi JBeaucaire,
    I must take away your
    'C:\Documents and Settings\Jerry2\Local Settings\Temp\
    to replace mine as
    [Jan 2009 Sales & Gross Profit Record.xls]
    Am I right? I am confussed, sorry

  9. #9
    Valued Forum Contributor
    Join Date
    01-02-2004
    Location
    malaysia
    Posts
    342

    Re: Find and match to fill data

    Hi JBeaucaire,
    I have tried numerous of times, it sometimes works sometimes doesnt work, I am confussed.

  10. #10
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Find and match to fill data

    Open the document, click on EDIT > LINKS > CHANGE SOURCE

    Click on YOUR source file.

  11. #11
    Valued Forum Contributor
    Join Date
    01-02-2004
    Location
    malaysia
    Posts
    342

    Re: Find and match to fill data

    Thanks master

  12. #12
    Valued Forum Contributor
    Join Date
    01-02-2004
    Location
    malaysia
    Posts
    342

    Re: Find and match to fill data

    Hi JBeaucaire,
    I am working fine on 100 rows only. If more than 100 rows, it will return wrongly. Where can I amend the coding? Thanks in advance.

  13. #13
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Find and match to fill data

    Just adjust the ranges equally. In cell A9 use this and copy down:

    =IF($B9="","",INDEX('[Jan 2009 Sales & Gross Profit Record.xls]PG'!$A$1:$A$1000,MATCH($B9,'[Jan 2009 Sales & Gross Profit Record.xls]PG'!$C$1:$C$1000,0)))

    And in cell B9, use this ARRAY-entered formula then copy down:

    =IF(ROW($D9)-ROW($D$9)+1>$F$4,"",INDEX('[Jan 2009 Sales & Gross Profit Record.xls]PG'!C$1:C$1001,SMALL(IF('[Jan 2009 Sales & Gross Profit Record.xls]PG'!$F$1:$F$1000=$C$4,ROW($A$1:$A$1000),""),ROW($D9)-ROW($D$9)+1)))

    .....for D9:

    =IF($B9="","",INDEX('[Jan 2009 Sales & Gross Profit Record.xls]PG'!$D$1:$D$1000,MATCH($B9,'[Jan 2009 Sales & Gross Profit Record.xls]PG'!$C$1:$C$1000,0)))
    Last edited by JBeaucaire; 03-02-2009 at 01:05 PM.

  14. #14
    Valued Forum Contributor
    Join Date
    01-02-2004
    Location
    malaysia
    Posts
    342

    Re: Find and match to fill data

    Hi JBeaucaire,
    Thanks for all the formulas, it works perfectly

+ 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