+ Reply to Thread
Results 1 to 7 of 7

Summation based on alpha season code

Hybrid View

  1. #1
    Registered User
    Join Date
    01-13-2009
    Location
    SLEEPY HOLLOW, IL
    MS-Off Ver
    OFFICE PP 2007
    Posts
    4

    Summation based on alpha season code

    I am working on an inventory report that the owner would like broken out between in-season items and out of season items. Items with no season code are always in season. Items that have seasonality have a 2 digit season code. A as if Jan, B is Feb, etc. A season code might be CE or KB. CE would be in season from March until May. KB is in season from Nov through Feb and out of season the rest of the year.

    We are currently in month G. Is there an easy way to use the two digit season code and determine if G falls in between those two months.

    Thanks in advance,
    Last edited by MATTOON250; 07-07-2009 at 02:15 PM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Summation based on alpha season code

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.


    In short yes I'm sure you can do what you want but it would be helpful to be able to visualise your layout and understand what you're trying to output etc...

  3. #3
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Summation based on alpha season code

    Try this

    =IF(CODE(LEFT(UPPER(N1),1))>CODE(RIGHT(UPPER(N1),1)),
    OR(CODE(UPPER(N2))>=CODE(LEFT(UPPER(N1),1)),CODE(UPPER(N2))<=CODE(RIGHT(UPPER(N1),1))),
    AND(CODE(UPPER(N2))>=CODE(LEFT(UPPER(N1),1)),CODE(UPPER(N2))<=CODE(RIGHT(UPPER(N1),1))))

  4. #4
    Registered User
    Join Date
    01-13-2009
    Location
    SLEEPY HOLLOW, IL
    MS-Off Ver
    OFFICE PP 2007
    Posts
    4

    Re: Summation based on alpha season code

    Attached is a small portion of the information I am working with. I have the 2 digit season code and I know the current month is G. I am looking to populate the "In Season ?" column with a true or a false. If G falls between the two season letters, that cell would be true; else it would be false.

    Thanks,
    Attached Files Attached Files

  5. #5
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Summation based on alpha season code

    Just adapt my formula

    =IF(CODE(LEFT(UPPER(C2),1))>CODE(RIGHT(UPPER(C2),1)),
    OR(CODE(UPPER(A2))>=CODE(LEFT(UPPER(C2),1)),CODE(UPPER(A2))<=CODE(RIGHT(UPPER(C2),1))),
    AND(CODE(UPPER(A2))>=CODE(LEFT(UPPER(C2),1)),CODE(UPPER(A2))<=CODE(RIGHT(UPPER(C2),1))))

  6. #6
    Registered User
    Join Date
    01-13-2009
    Location
    SLEEPY HOLLOW, IL
    MS-Off Ver
    OFFICE PP 2007
    Posts
    4

    Re: Summation based on alpha season code

    Quote Originally Posted by Bob Phillips View Post
    Just adapt my formula

    =IF(CODE(LEFT(UPPER(C2),1))>CODE(RIGHT(UPPER(C2),1)),
    OR(CODE(UPPER(A2))>=CODE(LEFT(UPPER(C2),1)),CODE(UPPER(A2))<=CODE(RIGHT(UPPER(C2),1))),
    AND(CODE(UPPER(A2))>=CODE(LEFT(UPPER(C2),1)),CODE(UPPER(A2))<=CODE(RIGHT(UPPER(C2),1))))
    Bob,

    A2 in the spreadsheet was the letter of the store I was dealing with. I just substituted the month Letter in for A2 and it worked like a charm.

    Thank you very much!!!

  7. #7
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Summation based on alpha season code

    Quote Originally Posted by MATTOON250 View Post
    Bob,

    A2 in the spreadsheet was the letter of the store I was dealing with. I just substituted the month Letter in for A2 and it worked like a charm.

    Thank you very much!!!
    I don't know what went wrong there. I moved the values to avoid mis-typing - so much for that.

+ 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