+ Reply to Thread
Results 1 to 9 of 9

If formula support

  1. #1
    Registered User
    Join Date
    07-12-2015
    Location
    Newcastle England
    MS-Off Ver
    2010
    Posts
    29

    If formula support

    Hello

    I am a school teacher and I have a list of the children's birthday in Column A

    In column B I want to record their term of birth -

    If Column A contains either September, October, November, December I want column B to return - Aut

    If Column A contains either January, February, March, April I want column B to return - Spr

    If Column A contains either May, June, July, August I want column B to return - Sum

    I am not sure if I need to use a match index formula or an if formula

    I was hoping someone could help. The system I get the d.o.b. from is in the format that I have included in cell A.

    I have attached a sample excel page of what Column A looks like.

    Mark
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: If formula support

    This formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    It is an array formula, it has to be entered with Ctrl + Shift + Enter.
    Attached Files Attached Files
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  3. #3
    Registered User
    Join Date
    09-27-2015
    Location
    USA
    MS-Off Ver
    2013/Office 365
    Posts
    51

    Re: If formula support

    Try
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: If formula support

    It's easier if the birthdates are actual numerical dates (formatted as dd mmmm, yyyy)

    I converted them and used VLOOKUP
    =VLOOKUP(MONTH(A3),$D$2:$E$4,2)

    See attached.
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: If formula support

    Nice approach Jacc.
    But for LOOKUP function you don't need to avoid #VALUE error.
    It will ignore it anyway.

    So it's enought to use:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and it's normal entered.

  6. #6
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: If formula support

    Thanks zbor! That makes a really slick solution!
    I thought the way to get a single string from an array was to use LOOKUP with "zzz"? In this case that does not work but 99^99 does, why is that?

  7. #7
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: If formula support

    That's because mine approach return number (in search function) and then it find position of last number then return corresponding text (in F range).
    You approach first generate text range from F column (based on TRUE/FALSE criteria of SEARCH function) and then you looking for last string.
    That's why you need "big" text string (i.e. "zzz" or I prefere REPT("Z", 255) in LOOKUP to match last word.

  8. #8
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: If formula support

    An other way we can use Index and match function also
    B3=INDEX({"Winter";"Winter";"Spring";"Spring";"Spring";"Summer";"Summer";"Summer";"Fall";"Fall";"Fall";"Winter"},MATCH(TRUE,INDEX(ISNUMBER(SEARCH({"January";"February";"March";"April";"May";"June";"July";"August";"September";"October";"November";"December"},A3)),),0))

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by shukla.ankur281190; 09-30-2015 at 04:02 AM.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  9. #9
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: If formula support

    It seems I frequently encounter situations where I need this kind of LOOKUP/SEARCH formula.
    I'm gonna save your formula in a safe place, zbor.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Formula support ignoring 0's
    By markhorsey in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-13-2015, 06:51 AM
  2. Index Formula support
    By markhorsey in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-12-2015, 05:12 PM
  3. Class does not support Automation or does not support expected interface
    By ccs_1981 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-28-2015, 05:57 AM
  4. runtime 430 error- Class does not support Automation or does not support...
    By kimcole5 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-22-2012, 01:27 PM
  5. Excel 2007 formula support
    By rpasha0169 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-29-2011, 03:35 PM
  6. formula support needed
    By Johnny D in forum Excel General
    Replies: 2
    Last Post: 11-11-2005, 08:50 PM
  7. Replies: 3
    Last Post: 09-08-2005, 12:53 AM

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