Category Mapping based on Multiple conditions

harinsh

Active Member
Joined
Feb 7, 2012
Messages
273
Hi Team

I am looking for help in getting require category mapping based on multiple conditions....

Here is the Dataset ...

[TABLE="width: 164"]
<tbody>[TR]
[TD]Product[/TD]
[TD]Price[/TD]
[TD]Region[/TD]
[/TR]
[TR]
[TD]P-1[/TD]
[TD] 360[/TD]
[TD] N[/TD]
[/TR]
[TR]
[TD]P-2[/TD]
[TD] 347[/TD]
[TD] N[/TD]
[/TR]
[TR]
[TD]P-3[/TD]
[TD] 452[/TD]
[TD] S[/TD]
[/TR]
[TR]
[TD]P-4[/TD]
[TD] 179[/TD]
[TD] S[/TD]
[/TR]
[TR]
[TD]P-1[/TD]
[TD] 345[/TD]
[TD] E[/TD]
[/TR]
[TR]
[TD]P-2[/TD]
[TD] 274[/TD]
[TD] W[/TD]
[/TR]
[TR]
[TD]P-3[/TD]
[TD] 207[/TD]
[TD] E[/TD]
[/TR]
[TR]
[TD]P-4[/TD]
[TD] 177[/TD]
[TD] E[/TD]
[/TR]
[TR]
[TD]P-5[/TD]
[TD] 177[/TD]
[TD] E [/TD]
[/TR]
</tbody>[/TABLE]

Mapping
[TABLE="width: 172"]
<tbody>[TR]
[TD]Product[/TD]
[TD]Region[/TD]
[TD]Category[/TD]
[/TR]
[TR]
[TD]P-1[/TD]
[TD]N[/TD]
[TD]Category 1[/TD]
[/TR]
[TR]
[TD]P-2[/TD]
[TD]S[/TD]
[TD]Category 1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]P-3[/TD]
[TD]S[/TD]
[TD]Category 2[/TD]
[/TR]
[TR]
[TD]P-5[/TD]
[TD]N[/TD]
[TD]Category 2[/TD]
[/TR]
[TR]
[TD]P-4[/TD]
[TD]E[/TD]
[TD]Category 2[/TD]
[/TR]
</tbody>[/TABLE]


Require output based mappings table condition


[TABLE="width: 228"]
<tbody>[TR]
[TD]Product[/TD]
[TD]Price[/TD]
[TD]Region[/TD]
[TD]Category[/TD]
[/TR]
[TR]
[TD]P-1[/TD]
[TD] 360[/TD]
[TD] N[/TD]
[TD]Category 1[/TD]
[/TR]
[TR]
[TD]P-2[/TD]
[TD] 347[/TD]
[TD] N[/TD]
[TD]NA[/TD]
[/TR]
[TR]
[TD]P-3[/TD]
[TD] 452[/TD]
[TD] S[/TD]
[TD]Category 2[/TD]
[/TR]
[TR]
[TD]P-4[/TD]
[TD] 179[/TD]
[TD] S[/TD]
[TD]NA[/TD]
[/TR]
[TR]
[TD]P-1[/TD]
[TD] 345[/TD]
[TD] E[/TD]
[TD]NA[/TD]
[/TR]
[TR]
[TD]P-2[/TD]
[TD] 274[/TD]
[TD] W[/TD]
[TD]NA[/TD]
[/TR]
[TR]
[TD]P-3[/TD]
[TD] 207[/TD]
[TD] E[/TD]
[TD]NA[/TD]
[/TR]
[TR]
[TD]P-4[/TD]
[TD] 177[/TD]
[TD] E[/TD]
[TD]Category 2[/TD]
[/TR]
[TR]
[TD]P-5[/TD]
[TD] 177[/TD]
[TD] E[/TD]
[TD]NA[/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

Forum statistics

Threads
1,223,888
Messages
6,175,215
Members
452,618
Latest member
Tam84

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