Excel VBA for updating data

martins_s

New Member
Joined
Feb 18, 2016
Messages
1
Hi,

Maybe someone can help me with the following task?

I have an excel report, where a lot of data must be checked and altered if a list of criteria is met.
Please see the attached picture.

What do I have:


  1. I have an order number (column N)
  2. Repair description 1 (Column Y)
  3. Repair description 2 (Column AB)
  4. Item (column AF)
  5. Date A (column AP)
  6. Date B (column AV)
  7. Warranty (column BK)

What do I have to achieve:

I need to have Repair description 1 (column Y) checked / changed from value REP to REC and value XSS to XAC if the following criteria is met:


  1. AB is equal to „DIY”
  2. BK is equal to „INTR05”
  3. Elapsed time from the AP to AV is greater than 12 months
  4. AF starts with 3601* or 0601* or 3611* or 0611*

If the criteria above are met, the Y needs to be changed for all lines in an order (column N). Order line count within the order is displayed on column H.

Any ideas would be greatly appreciated.

Image of the Excel report below:

CXnnFR0.png


Many thanks,
Martins
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

Watch MrExcel Video

Forum statistics

Threads
1,129,810
Messages
5,638,483
Members
417,027
Latest member
wlknspc7

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
Top