+ Reply to Thread
Results 1 to 5 of 5

Macro to search value based on multiple columns

  1. #1
    Registered User
    Join Date
    11-23-2020
    Location
    ktm
    MS-Off Ver
    2007
    Posts
    9

    Macro to search value based on multiple columns

    Hello, Sample file attached.....I want a macro to search discount % in another data table with Discount based on days as 'Y' and 'N'. If it is N, then the discount% is based on this data table only. If it is 'Y', it will also depend on main table on the left.

    The result as displayed in yellow... First,the discount% shall be as per 'Nature' column from the table on right irrespective of ID and days.....

    after that, the result shall contain the maximum discount% based on ID or Deal....otherwise the cell shall remain blank....

    thanx in advance....
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Macro to search value based on multiple columns

    Can you explain the result of 60% in row 3 ?

    ID = 1, Days = 40, Discount Based on Days = Yes so i would think the result = 40 %

    what do i miss ?

  3. #3
    Registered User
    Join Date
    11-23-2020
    Location
    ktm
    MS-Off Ver
    2007
    Posts
    9

    Re: Macro to search value based on multiple columns

    Sample file slightly changed to make it more clearer....thanx....
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Macro to search value based on multiple columns

    for me it stops when i dont get answer to my question

  5. #5
    Registered User
    Join Date
    11-23-2020
    Location
    ktm
    MS-Off Ver
    2007
    Posts
    9

    Re: Macro to search value based on multiple columns

    the sample file was other way around, so changed it to make it more clearer..

+ 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. Change values based up a search of multiple columns in a dynamic range?
    By rob.callaghan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-20-2021, 07:53 AM
  2. [SOLVED] Macro with Multiple Search Parameters for 2 Columns
    By lagiosman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-20-2014, 06:04 PM
  3. formulas for search based on multiple criteria in multiple columns
    By oneworld in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-02-2013, 06:57 AM
  4. Macro Not Working for Search in Multiple Columns
    By vcs1161 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-07-2013, 03:42 PM
  5. Macro for search values based on raws and columns
    By pineta1984 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-27-2012, 12:47 PM
  6. [SOLVED] Search and copy value based for multiple columns
    By Hyflex in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-01-2011, 12:23 PM
  7. Replies: 5
    Last Post: 08-16-2006, 02: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