Update table value

Howdy1

Board Regular
Joined
Aug 13, 2008
Messages
50
Hi, I am trying to update a group value based on certain criteria. Currently, there are 1926 records and I need to group the records based on different field value. If the account is the same with a group of different FSItem, then it will be group into one group. The account doesn't have to be the same for the group, as long as the FSItem are the same.
Please refer to the following examples. Any good idea to code the logic instead of manually updating it? Thanks a lot!

---------------before the update ----------
AcctCode --- FSItem ---- GroupName
1234 ----------123 --------
1234 --------- 124 --------
1234 --------- 125 -------
1235 --------- 125 -------
1235 --------- 126 -------

********after the update ********

AcctCode --- FSItem ---- GroupName
1234 ----------123 -------- Group1
1234 --------- 124 -------- Group1
1234 --------- 125 ------- Group1
1235 --------- 125 ------- Group2
1235 --------- 126 ------- Group2
----------------------------------
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Hi, Please can you give some further explanation? It isn't clear what is required. Regards, F
 
Upvote 0

Forum statistics

Threads
1,215,022
Messages
6,122,716
Members
449,093
Latest member
Mnur

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