+ Reply to Thread
Results 1 to 6 of 6

Return text by matching month text

  1. #1
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    Return text by matching month text

    Hi all,

    In sheet1 cell A1, I want a formula to return the text from the dates tab for the relevant month

    I.e sheet1 cell A1 I would like a formula thtat says it is currently february, so it returns the text from dates tab: cell A21, because cell A20 is february. I think it might need an index match formula? Any help much appreciated. thank you
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Return text by matching month text

    There isn't a Sheet1.

    And please use Excel dates NOT text to define dates. You can format Excel dates ("mmmm") to "appear" as text

    in A1

    =Today()

    Custom Format as "mmmm"
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Return text by matching month text

    Well, February has only 28 days ...

    Anyway, any reason why this needs to be a lookup? Can't you use something like this?

    =TEXT(EOMONTH(TODAY(),-1)+1,"dddd dd mmmm")&" - "&TEXT(EOMONTH(TODAY(),0),"dddd dd mmmm")
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Return text by matching month text

    In A1.

    =IFERROR(LOOKUP(TEXT(TODAY(),"Mmmm"),Dates!$A$18:$A$23,Dates!$A$19:$A$24),"")

    Pl note the ranges.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  5. #5
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    Re: Return text by matching month text

    thank you all. this now resolved!
    Thanks,

    R.



  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Return text by matching month text

    Which option did you go for?

+ 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. Matching Text and return total values
    By Mikejx2 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-02-2021, 03:42 PM
  2. Compare columns and return matching text VBA
    By alekos7 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-09-2018, 03:37 PM
  3. [SOLVED] Return text based on matching two columns criteria
    By benoj2005 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-05-2018, 07:39 AM
  4. Replies: 3
    Last Post: 03-14-2014, 06:46 PM
  5. Replies: 2
    Last Post: 09-07-2013, 07:50 PM
  6. Find matching value and return text
    By Raoul Duke in forum Excel General
    Replies: 3
    Last Post: 02-14-2008, 01:30 PM

Tags for this Thread

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