+ Reply to Thread
Results 1 to 9 of 9

ISNUMBER to return value found instead of TRUE?

  1. #1
    Forum Contributor
    Join Date
    08-25-2015
    Location
    London
    MS-Off Ver
    MS 365
    Posts
    213

    Question ISNUMBER to return value found instead of TRUE?

    Hi all,

    Please don't laugh at me for the formula below (it does work!)

    Basically I am using a combination of IF & ISNUMBER to lookup if there is a match of a date in various formats, e.g. dd/mm/yyyy or mm/dd/yyyy or mm.dd.yyyy (total of 9 variations possible), in a cell that contains text.

    For reference:
    - F15 is the country (to determine which date format to pick; e.g. US would be mm/dd/yyyy)
    - The Dates_Lookup! table contains the dates in all 9 variations possible (e.g. mm/dd/yyyy or mm.dd.yyyy or mm-dd-yyyy or dd/mm/yyyy...):

    All markets with mm/dd/yyyy format (in 3 variations):
    * F15=Dates_Lookup!$K$9
    * F15=Dates_Lookup!$K$10
    * F15=Dates_Lookup!$K$11


    All markets with yyyy/mm/dd format (in 3 variations):
    * 15=Dates_Lookup!$T$9 to 15=Dates_Lookup!$T$20

    All markets that are not following any of the above (see last bit of the formula) it will search for dd/mm/yyyy (in 3 variations)

    - RawData!B2 is the cell that contains text in which I am searching in for any of the dates on the Dates_Lookup! table


    What I am now trying to achieve is show the value the formula has found instead of "TRUE". E.g. if it found 24.12.2018 it should show 24.12.2018 instead of TRUE. Is that possible somehow?

    Many thanks!


    Please Login or Register  to view this content.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: ISNUMBER to return value found instead of TRUE?

    RoFLAO....

    No. I cannot possibly visualise that.

    Sample sheet please!! You know how to attach 'em...
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Contributor
    Join Date
    08-25-2015
    Location
    London
    MS-Off Ver
    MS 365
    Posts
    213

    Re: ISNUMBER to return value found instead of TRUE?

    Hi Glenn,

    It's me again! Hope all is well.

    Sure, there you go...hope it all makes sense!

    Thanks for your help!
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,535

    Re: ISNUMBER to return value found instead of TRUE?

    See if this will accomplish the goal.
    1) On the Dates Lookup sheet, the names of the POS's are copied to all applicable columns.
    2) On Sheet1, C7 finds the column containing the date format using: =MATCH(Sheet2!B2,Dates_Lookup!B$3:AB$3,0)
    3) D7 insures a match to the POS using: =ISNUMBER(MATCH(B7,INDEX(Dates_Lookup!B$9:AB$20,,C7),0))
    4) If there is a match E7 returns the date format using: =IF(D7=TRUE,INDEX(Dates_Lookup!B$3:AB$3,,C7),"")
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: ISNUMBER to return value found instead of TRUE?

    OK so you have bunch of different options. Im a little unsure if you would be GETTING dates in all those formats, or you want to CONVERT the dates to 1 of those formats?

    Looks like you have 3 different "dividers", each with 9 variations. Im sure some sort of reference table can be built around that?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Forum Contributor
    Join Date
    08-25-2015
    Location
    London
    MS-Off Ver
    MS 365
    Posts
    213

    Re: ISNUMBER to return value found instead of TRUE?

    Hi JeteMC, hi FDibbins,

    Thanks so much for looking into this! JeteMCs solution works All great! Thanks for your help.

    Cheers!

  7. #7
    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,482

    Re: ISNUMBER to return value found instead of TRUE?

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    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.

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,535

    Re: ISNUMBER to return value found instead of TRUE?

    You're Welcome and thank you for the feedback. As Ali states, please mark the thread as 'Solved'. I hope that you have a blessed day.

  9. #9
    Forum Contributor
    Join Date
    08-25-2015
    Location
    London
    MS-Off Ver
    MS 365
    Posts
    213

    Re: ISNUMBER to return value found instead of TRUE?

    Thanks! Marked as solved

+ 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. IF AND ISNUMBER SEARCH Function. Keeps returning false value even if true.
    By joshuarobbins in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-05-2019, 02:53 AM
  2. if isnumber find with multiple True & False
    By Neilesh Kumar in forum Excel General
    Replies: 14
    Last Post: 03-14-2018, 09:49 AM
  3. Regular Expression to Return "True" or False" if a word is found
    By wwconslt in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-02-2017, 09:54 PM
  4. Find a file in a director and return "true" if found
    By Bobbbo in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-29-2016, 08:07 PM
  5. [SOLVED] Return TRUE if cell value is found in a list
    By Smally in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-20-2016, 10:21 AM
  6. Mulitple IF ISNUMBER SEARCH if both searches are found.
    By Dessesbo in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-21-2015, 07:31 PM
  7. Return TRUE if 'part text' found in cell range
    By AnnieM in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 07-23-2014, 05:10 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