michaelmcandrew
New Member
- Joined
- Feb 23, 2009
- Messages
- 5
Hi there,
My database exports transaction details with countries.
I want to create pivot table that splits these transactions (amongst other things) by whether the country is in the EU or not.
Here's a formula that would do that if it were just contained in a standard cell.
I thought I could create a calculated field using a slightly modified version of this code but my attempts so far have been fruitless.
I know I could just create another column and fill in with this formula before doing the pivot table but I am doing this repeatedly with different data and want to streamline the process as much as possible.
This is a tough one, right? Hope that someone can help,
Cheers,
Michael
My database exports transaction details with countries.
I want to create pivot table that splits these transactions (amongst other things) by whether the country is in the EU or not.
Here's a formula that would do that if it were just contained in a standard cell.
Code:
=IF(OR(D2="Austria",D2="<wbr>Belgium",D2="Bulgaria",D2="<wbr>Cyprus",D2="Czech Republic",D2="Denmark",D2="<wbr>Estonia",D2="Finland",D2="<wbr>France",D2="Germany",D2="<wbr>Greece",D2="Hungary",D2="<wbr>Ireland",D2="Italy",D2="<wbr>Latvia",D2="Lithuania",D2="<wbr>Luxembourg",D2="Malta",D2="<wbr>Netherlands",D2="Poland",D2="<wbr>Portugal",D2="Romania",D2="<wbr>Slovakia",D2="Slovenia",D2="<wbr>Spain",D2="Sweden",D2="United Kingdom",),"EU", "Outside EU")
I know I could just create another column and fill in with this formula before doing the pivot table but I am doing this repeatedly with different data and want to streamline the process as much as possible.
This is a tough one, right? Hope that someone can help,
Cheers,
Michael