Update table value

Howdy1

New Member
Joined
Aug 13, 2008
Messages
49
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
----------------------------------
 

Some videos you may like

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Fazza

MrExcel MVP
Joined
May 17, 2006
Messages
9,368
Hi, Please can you give some further explanation? It isn't clear what is required. Regards, F
 

Watch MrExcel Video

Forum statistics

Threads
1,122,481
Messages
5,596,393
Members
414,063
Latest member
N_Bates

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