Update nth column based on entries from column A,B and C

RickSorkin

New Member
Joined
Mar 1, 2022
Messages
3
Office Version
  1. 365
  2. 2021
  3. 2019
  4. 2016
Platform
  1. Windows
I am working on a utility and almost completed it.. With the utility I am generating Excel/CSV file with dummy data for my application.
On the file which will be generated, I have Product code(ex: CIDR, HQTC) in column "A" , then in "B" I have dept Id, in "C" I have positions.
So if
CIDR found in column A then search for common dpdt id in column B suppose 100001, now if in Column C we have M,E,S(implying M,E,S belong to same dept)

So below table as reference If CIDR found in A, then

CIDR -->100001-->M, E, --> then update D with 4 for all rows where 100001 is found
Similarly if CIDR -->100002-->M, E--> the update 2 where 100002 is found
if CIDR-->100003-->M--> the update 1 where 100003 is found
or if CIDR-->100004-->M, S--> the update 3 where 100004 is found

Refer sample data:

CIDR100001M
4​
CIDR100001E
4​
CIDR100001S
4​
CIDR100002M
2​
CIDR100002E
2​
CIDR100003M
1​
CIDR100004M
3​
CIDR100004S
3​
HQTC100001M
1​


Any help or approach to handle this.
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,223,234
Messages
6,170,891
Members
452,366
Latest member
TePunaBloke

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