Update a Column based on multiple column values in Excel VBA

Wazz

New Member
Joined
Mar 16, 2022
Messages
2
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi All,

I have been given a data set in Excel which is consist of 20k+ rows.
The data is for the past six months' SLA for 3000+ processes.

Within the last 3 months, I need to identify the processes which have failed to meet their SLAs. Based on the below, the raw with the latest month needs to be updated with a comment (a new column should get updated).

If all 3 months' SLA are Not Met - Comment is "3M"
If any of the 2 months' SLAs are Not Met - Comment is "2M"

I first tried a function, but it takes ages to process and then my file is crashing.
I haven't tried any Macros yet as I'm very new to this. I checked about 50+ results from googling, but none of them helped me.

SLA Name is on Column A
Month is on Column B
Met/ Not Met is on Column C
I need the comment on Column D

Pardon my Grammar and I'd really appreciate your help which would immensely save my time.
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Hi All,

I have been given a data set in Excel which is consist of 20k+ rows.
The data is for the past six months' SLA for 3000+ processes.

Within the last 3 months, I need to identify the processes which have failed to meet their SLAs. Based on the below, the raw with the latest month needs to be updated with a comment (a new column should get updated).

If all 3 months' SLA are Not Met - Comment is "3M"
If any of the 2 months' SLAs are Not Met - Comment is "2M"

I first tried a function, but it takes ages to process and then my file is crashing.
I haven't tried any Macros yet as I'm very new to this. I checked about 50+ results from googling, but none of them helped me.

SLA Name is on Column A
Month is on Column B
Met/ Not Met is on Column C
I need the comment on Column D

Pardon my Grammar and I'd really appreciate your help which would immensely save my time.
Sample.JPG
This is how the Database will look like - I have filtered a few rows and updated the comment manually
 
Upvote 0

Forum statistics

Threads
1,215,694
Messages
6,126,252
Members
449,305
Latest member
Dalyb2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top