unknownymous
Board Regular
- Joined
- Sep 19, 2017
- Messages
- 249
- Office Version
- 2016
- Platform
- Windows
Hello Excel Gurus,
I was thinking of creating a macro based on below criteria:
5 Tabs will be created in running the macro:
1. New - New accounts that doesn't have any previous data (Copy Whole row)
2. Zero - Accounts that doesn't have any score currently but previously existing (Copy Whole row)
3. Positive - Accounts that has positive net change (copy whole row)
4. Negatives - Accounts that has negative Net Change (copy whole row)
5. Static - No changes as compared to previous (copy whole row)
Below is the sample data sheet:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Name[/TD]
[TD]Current[/TD]
[TD]Change[/TD]
[TD]Previous[/TD]
[/TR]
[TR]
[TD]01[/TD]
[TD]Ben[/TD]
[TD]10000[/TD]
[TD]4000[/TD]
[TD]6000[/TD]
[/TR]
[TR]
[TD]02[/TD]
[TD]Donna[/TD]
[TD]7500[/TD]
[TD]2000[/TD]
[TD]5500[/TD]
[/TR]
[TR]
[TD]03[/TD]
[TD]Sean[/TD]
[TD]7000[/TD]
[TD]1500[/TD]
[TD]5500[/TD]
[/TR]
[TR]
[TD]04[/TD]
[TD]Jane[/TD]
[TD]6000[/TD]
[TD]1000[/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]05[/TD]
[TD]Jem[/TD]
[TD]5000[/TD]
[TD]500[/TD]
[TD]4500[/TD]
[/TR]
[TR]
[TD]06[/TD]
[TD]Seth[/TD]
[TD]4000[/TD]
[TD]750[/TD]
[TD]3250[/TD]
[/TR]
[TR]
[TD]07[/TD]
[TD]Andy[/TD]
[TD]1000[/TD]
[TD]0[/TD]
[TD]1000[/TD]
[/TR]
[TR]
[TD]08[/TD]
[TD]Beth[/TD]
[TD]2000[/TD]
[TD]-5000[/TD]
[TD]7000[/TD]
[/TR]
[TR]
[TD]09[/TD]
[TD]Bill[/TD]
[TD]4000[/TD]
[TD]-3000[/TD]
[TD]7000[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]Jack[/TD]
[TD]5000[/TD]
[TD]-2000[/TD]
[TD]3000[/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]Maine[/TD]
[TD]4000[/TD]
[TD]-1000[/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]Len[/TD]
[TD]3000[/TD]
[TD]-500[/TD]
[TD]3500[/TD]
[/TR]
[TR]
[TD]13[/TD]
[TD]Oscar[/TD]
[TD]0[/TD]
[TD]-1000[/TD]
[TD]1000[/TD]
[/TR]
[TR]
[TD]14[/TD]
[TD]Step[/TD]
[TD]5000[/TD]
[TD]5000[/TD]
[TD]0[/TD]
[/TR]
</tbody>[/TABLE]
Any help will be much appreciated.
I was thinking of creating a macro based on below criteria:
5 Tabs will be created in running the macro:
1. New - New accounts that doesn't have any previous data (Copy Whole row)
2. Zero - Accounts that doesn't have any score currently but previously existing (Copy Whole row)
3. Positive - Accounts that has positive net change (copy whole row)
4. Negatives - Accounts that has negative Net Change (copy whole row)
5. Static - No changes as compared to previous (copy whole row)
Below is the sample data sheet:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Name[/TD]
[TD]Current[/TD]
[TD]Change[/TD]
[TD]Previous[/TD]
[/TR]
[TR]
[TD]01[/TD]
[TD]Ben[/TD]
[TD]10000[/TD]
[TD]4000[/TD]
[TD]6000[/TD]
[/TR]
[TR]
[TD]02[/TD]
[TD]Donna[/TD]
[TD]7500[/TD]
[TD]2000[/TD]
[TD]5500[/TD]
[/TR]
[TR]
[TD]03[/TD]
[TD]Sean[/TD]
[TD]7000[/TD]
[TD]1500[/TD]
[TD]5500[/TD]
[/TR]
[TR]
[TD]04[/TD]
[TD]Jane[/TD]
[TD]6000[/TD]
[TD]1000[/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]05[/TD]
[TD]Jem[/TD]
[TD]5000[/TD]
[TD]500[/TD]
[TD]4500[/TD]
[/TR]
[TR]
[TD]06[/TD]
[TD]Seth[/TD]
[TD]4000[/TD]
[TD]750[/TD]
[TD]3250[/TD]
[/TR]
[TR]
[TD]07[/TD]
[TD]Andy[/TD]
[TD]1000[/TD]
[TD]0[/TD]
[TD]1000[/TD]
[/TR]
[TR]
[TD]08[/TD]
[TD]Beth[/TD]
[TD]2000[/TD]
[TD]-5000[/TD]
[TD]7000[/TD]
[/TR]
[TR]
[TD]09[/TD]
[TD]Bill[/TD]
[TD]4000[/TD]
[TD]-3000[/TD]
[TD]7000[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]Jack[/TD]
[TD]5000[/TD]
[TD]-2000[/TD]
[TD]3000[/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]Maine[/TD]
[TD]4000[/TD]
[TD]-1000[/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]Len[/TD]
[TD]3000[/TD]
[TD]-500[/TD]
[TD]3500[/TD]
[/TR]
[TR]
[TD]13[/TD]
[TD]Oscar[/TD]
[TD]0[/TD]
[TD]-1000[/TD]
[TD]1000[/TD]
[/TR]
[TR]
[TD]14[/TD]
[TD]Step[/TD]
[TD]5000[/TD]
[TD]5000[/TD]
[TD]0[/TD]
[/TR]
</tbody>[/TABLE]
Any help will be much appreciated.