+ Reply to Thread
Results 1 to 3 of 3

Macro for multiple Criteria

  1. #1
    Registered User
    Join Date
    11-07-2023
    Location
    Connecticut, USA
    MS-Off Ver
    Microsoft 365 and Office
    Posts
    43

    Macro for multiple Criteria

    Hello,

    In the attached file I need a macro that do the following process if possible:

    Look at Column A and if this column is equal to USS, then look at column D and if the pay level is equal to �R01�, change the total on column E to 15.00. However, if Column A still USS but the pay level is not R01 (or any levels as mentioned below) then change to 10.
    Then the problem is that every ��R� level will change the amount:

    R01 =15
    R02=17
    R03=24
    R04=32
    R05=33
    R06=35

    Also, I was wondering if will be a good idea to filter column A to anything with USS first? I have over 15,000 records. So not sure if the macro will become slow if is looking at each row.

    Any help on this will be greatly appreciate it.

    Thank you.
    Attached Files Attached Files
    Last edited by Ladyj07; 01-30-2024 at 04:40 PM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,228

    Re: Macro for multiple Criteria

    Try
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by JohnTopley; 01-30-2024 at 03:10 PM.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,248

    Re: Macro for multiple Criteria

    This is based on info supplied above...
    Please Login or Register  to view this content.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

+ 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. Multiple criteria filter of multiple tables with macro
    By reese_c_c in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-07-2018, 09:56 AM
  2. [SOLVED] Macro- Search multiple criteria in spreadsheet return with multiple results in new sheet
    By nicebeaches in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-22-2018, 04:47 PM
  3. Find multiple values with multiple criteria in vba macro
    By Jovillanueva in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 10-02-2014, 09:46 PM
  4. [SOLVED] Multiple criteria sort (criteria parsed from string) macro
    By rynofrowan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-18-2014, 09:59 PM
  5. [SOLVED] Macro for AverageIFS, with multiple criteria in the same criteria range
    By Faridwahidi in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 05-24-2014, 01:13 AM
  6. [SOLVED] create drop down box to select multiple criteria and link macro to each criteria
    By anand_erin in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 11-03-2012, 06:35 PM
  7. Macro to Segregate the data based on Multiple Criteria's in Multiple Columns -Challenging!
    By Novice_To_Excel in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-08-2012, 07:31 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