+ Reply to Thread
Results 1 to 4 of 4

Using "SOLVER" to match two columns, but how to copy it for multiple rows ??? (URGENT)

  1. #1
    Registered User
    Join Date
    08-27-2012
    Location
    Fargo
    MS-Off Ver
    Excel 2010
    Posts
    2

    Using "SOLVER" to match two columns, but how to copy it for multiple rows ??? (URGENT)

    Hello,
    Currently I am using "SOLVER" to iterate values (using a formula{Column G}) in a cell of a column (col G) to match it with the corresponding cell in the next column (col H). But I have numerous rows that I have to match and could not find a way to copy it for multiple rows. In other words, I have to iterate so that G2=H2, G3=H3, .... and so on. I need to get it done urgently. Any help is much appreciated. The excel file is attached.

    Thanks

    P_RO_100yr Calc.xlsx
    Last edited by hshahad; 07-16-2013 at 12:42 PM.

  2. #2
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,792

    Re: Using "SOLVER" to match two columns, but how to copy it for multiple rows ??? (URGENT)

    You could run solver in a loop with vba.

    A macro like this should work for you.

    Please Login or Register  to view this content.
    You must also set a reference to Solver in the "Visual Basic" Window. Tools -> References and tick box marked solver.

    Alf

  3. #3
    Registered User
    Join Date
    08-27-2012
    Location
    Fargo
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Using "SOLVER" to match two columns, but how to copy it for multiple rows ??? (URGENT)

    Worked like a breeze

    My heartiest thanks to you.

  4. #4
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,792

    Re: Using "SOLVER" to match two columns, but how to copy it for multiple rows ??? (URGENT)

    Glad to be of help and thanks for feedback!

    Since this seems to solve you problem could you please mark your thread "Solved"

    Alf

    Ps
    To mark your thread solved do the following:
    - Go to the first post
    - Click edit
    - Click Advance
    - Just below the word "Title:" you will see a dropdown with the word No prefix.
    - Change to Solve
    - Click Save

+ 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. [SOLVED] Multiple criteria lookup - First match :exact" and second match "Closest"
    By mweichorn in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-16-2013, 12:14 PM
  2. [SOLVED] Copy multiple rows that contain a certain "name" in column "A" then paste it into new work
    By rschlot2 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-18-2013, 02:25 PM
  3. Replies: 1
    Last Post: 03-17-2013, 06:52 AM
  4. Hide rows based on value "0" in multiple columns
    By willieh in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-18-2012, 06:05 AM
  5. Match similar rows from two sheets using three columns to match the "paired" rows
    By sanpedro_nz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-04-2011, 07:15 AM

Tags for this Thread

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