+ Reply to Thread
Results 1 to 9 of 9

Macro to match multiple columns in different sheets.

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    01-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    402

    Post Macro to match multiple columns in different sheets.

    As in the attachment I have three sheets where sheet Report sheet has the data from row 2 and I have placed the headers of sheet compare so that to match the corresponding headers. (Ex: in report sheet Base price column is called as $ W/0 Cu in the header).
    So what I want is a macro which should run and check for the part number in report sheet (Without Zeros) in column A and then in Column B.
    If found in column A then it should match the highlighted headers from corresponding sheets and if it is matching with all the highlighted headers from sheet reports and compare then in outputsheet it should display the part number and whether it is matching or not.
    Please consider the first part number only when comparing and you can ignore the duplicate numbers. (Fist part number must match)

    Please let me know if you need any further clarification and help me.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    01-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    402

    Re: Macro to match multiple columns in different sheets.

    IS it difficult? Sorry for the trouble ...Please help me if possible

  3. #3
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: Macro to match multiple columns in different sheets.

    Hi.
    Sorry but its very confusing. Please tell me what exactly has to be compared. Sorry again
    Click *, if my suggestion helps you. Have a good day!!

  4. #4
    Forum Contributor
    Join Date
    01-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    402

    Re: Macro to match multiple columns in different sheets.

    First the partnumber (without zeros) in the sheet Report to be checked in column A of sheet Compare (Ref P/N) and if not found then in (New P/N). once it is found then the following should compare.

    From Report Sheet "daily capacity" and in compare sheet "daily capacity "
    From Report Sheet "DUNS Number" and in compare sheet "Manf DUNS"
    From Report Sheet "SHIP from DUNS" and in compare sheet "Ship DUNS"
    From Report Sheet "Base Price" and in compare sheet "$ W/O CU"
    From Report Sheet "Copper Weight" and in compare sheet "New CU (LBS)

    If all the cell values for that pirticular Part number matches then, in sheet output it should give that Part number and match in the adjacent cell and if not matching then the part number with adjacent cell as not matching

    I hope i am clear this time.

    Please note that in report sheet the same part number will be repeated multiple times and you can consider only the first part number ignoring the duplicates

  5. #5
    Forum Contributor
    Join Date
    01-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    402

    Re: Macro to match multiple columns in different sheets.

    jraj1106, I think i have helped with the information which you wanted and I hope you will help me. Others also, please help me

  6. #6
    Forum Contributor
    Join Date
    01-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    402

    Re: Macro to match multiple columns in different sheets.

    any help!!

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Macro to match multiple columns in different sheets.

    You have to be patient. 3 times update (bump) in less than 2 hours!

    With 255 post I think you should know this by now.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  8. #8
    Forum Contributor
    Join Date
    01-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    402

    Re: Macro to match multiple columns in different sheets.

    I am sorry...

  9. #9
    Forum Contributor
    Join Date
    01-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    402

    Re: Macro to match multiple columns in different sheets.

    Any update please help me...

+ 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