+ Reply to Thread
Results 1 to 9 of 9

Identifying US and International purchases?

Hybrid View

brotherwo Identifying US and... 10-15-2010, 10:18 AM
brotherwo Re: Identifying US and... 10-15-2010, 03:08 PM
JBeaucaire Re: Identifying US and... 10-15-2010, 03:13 PM
brotherwo Re: Identifying US and... 10-15-2010, 03:31 PM
MarvinP Re: Identifying US and... 10-15-2010, 04:19 PM
brotherwo Re: Identifying US and... 10-15-2010, 04:28 PM
JBeaucaire Re: Identifying US and... 10-15-2010, 04:25 PM
brotherwo Re: Identifying US and... 10-15-2010, 04:31 PM
JBeaucaire Re: Identifying US and... 10-15-2010, 04:43 PM
  1. #1
    Registered User
    Join Date
    12-10-2008
    Location
    Kansas
    MS-Off Ver
    2007
    Posts
    91

    Identifying US and International purchases?

    I am suppose to make a pivot table of GP by product line and by US or International Countries. What is the easiest way to do this? I was thinking of creating a column and doing some kind of IF statement asking if the delivery state is two letters than it is US, if not it is international.

    What do yuo guys think ?
    Thanks!
    Last edited by brotherwo; 10-15-2010 at 04:45 PM.

  2. #2
    Registered User
    Join Date
    12-10-2008
    Location
    Kansas
    MS-Off Ver
    2007
    Posts
    91

    Re: Identifying US and International purchases?

    bump.. anyone have an idea?
    Thanks

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Identifying US and International purchases?

    You will definitely have to create a column to flag each row in some way as US or Intl, so your idea is as good as any other if it works for you.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Registered User
    Join Date
    12-10-2008
    Location
    Kansas
    MS-Off Ver
    2007
    Posts
    91

    Re: Identifying US and International purchases?

    Quote Originally Posted by JBeaucaire View Post
    You will definitely have to create a column to flag each row in some way as US or Intl, so your idea is as good as any other if it works for you.
    what function do you use to identify a variety of US state codes? Is there one you can use just to identify a 2 character word?

  5. #5
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,356

    Re: Identifying US and International purchases?

    Hi brotherwo,
    A sample of your data would be good, but,

    If in Column F are values like AZ, CA, Eng, WA, AUS...
    A formula to capture only 2 letter countries would be =If(Len("F2") =2,"USA","NotUSA")

    I hope that helps.

  6. #6
    Registered User
    Join Date
    12-10-2008
    Location
    Kansas
    MS-Off Ver
    2007
    Posts
    91

    Re: Identifying US and International purchases?

    Quote Originally Posted by MarvinP View Post
    Hi brotherwo,
    A sample of your data would be good, but,

    If in Column F are values like AZ, CA, Eng, WA, AUS...
    A formula to capture only 2 letter countries would be =If(Len("F2") =2,"USA","NotUSA")

    I hope that helps.
    Thats the idea! but it's not working Here is my workbook example
    Attached Files Attached Files

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Identifying US and International purchases?

    If you were to list all the "codes" that stand for the US in a column of their own, perhaps column T, then this formula would work dynamically...as you edit/change the values in column T the formula would change all the flags for all rows.

    In B2 to test the code in A2 against column T:

    =IF(ISNUMBER(MATCH($A2, $T:$T, 0)), "US", "INTL")

  8. #8
    Registered User
    Join Date
    12-10-2008
    Location
    Kansas
    MS-Off Ver
    2007
    Posts
    91

    Re: Identifying US and International purchases?

    Quote Originally Posted by JBeaucaire View Post
    If you were to list all the "codes" that stand for the US in a column of their own, perhaps column T, then this formula would work dynamically...as you edit/change the values in column T the formula would change all the flags for all rows.

    In B2 to test the code in A2 against column T:

    =IF(ISNUMBER(MATCH($A2, $T:$T, 0)), "US", "INTL")
    Thanks, that worked! Im learning a lot from this forum so far and promise to contribute more as my skills develop.

  9. #9
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Identifying US and International purchases?

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1