+ Reply to Thread
Results 1 to 3 of 3

Looking for statements that will pick off parts of cell versus the whole cell.

  1. #1
    Forum Contributor
    Join Date
    10-18-2010
    Location
    Walla Walla, Washington
    MS-Off Ver
    Excel 2007
    Posts
    124

    Looking for statements that will pick off parts of cell versus the whole cell.

    excelforum.xlsx

    I am trying to create a statement that would look at cells A2 and pick off the first two (2) numbers (Months) and drop either cells F15 or F16 into the corresponding location at F2. The same is true for A3:A13. I need the formatting to follow.

    Example: Cell A2 is 05/25/2010. I need cell F2 to recongize the 05 on the beginning of A2 and decide that its a summer month, and hence enter the value of cell F15 into cell F2.

    The parameters are: Summer consists of May through September or 05, 06, 07, 08, 09 . Winter comprises the other 7 months.

    If I knew what function to start with, I could complete the code. Im just stumped. thanks again!

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Looking for statements that will pick off parts of cell versus the whole cell.

    tRY:

    =IF(A2="","",IF(AND(MONTH(A2)>=5,MONTH(A2)<=9),$F$15,$F$16))

    COPIED DOWN
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    10-18-2010
    Location
    Walla Walla, Washington
    MS-Off Ver
    Excel 2007
    Posts
    124

    Re: Looking for statements that will pick off parts of cell versus the whole cell.

    Awesome. That did it. Thanks for you help. That a nice formula to know. I gave you kudos!

+ 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