+ Reply to Thread
Results 1 to 5 of 5

search formula

  1. #1
    Registered User
    Join Date
    06-02-2014
    Posts
    88

    search formula

    Hi,
    I try to figure out how to custom data validation for cell to define LEN=10 and SEARCH for double "-".
    So far I have customed search for LEN=10 and single "-", and it looks like this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    So currently for date it looks like 2014-10 31
    I wish to make it like 2014-10-31
    Is it also possible to define "-" as 5th and 8th mark from left?

    Regards,
    Marcin

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: search formula

    Him

    If you're trying to ensure a date is entered to a cell why not use the DATE parameter in the validation definition?

    You seem to be over complicating this and the end result will still only be some text that happens to look like a date but which will be worthless for any date arithmetic calculations.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    06-02-2014
    Posts
    88

    Re: search formula

    I cannot use DATE parameter, because after setting the date I export it to different file... The only format that can be used in different file is yyyy-mm-dd, while DATE parameter allows for yyyymmdd or yyyy/mm/dd. The only possible format that might be typed by user should be yyyy-mm-dd. Can you help me to handle it?
    Last edited by Marcin4111; 10-30-2014 at 06:46 PM.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: search formula

    Hi,

    I still think you'rec approaching this the wrong way.

    First get the right date using the Date Validation parameter. So with the Date validated in say A1
    in another cell say B1 have the following function

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



    Then when you export the file use the B1 value

  5. #5
    Registered User
    Join Date
    06-02-2014
    Posts
    88

    Re: search formula

    Actually,
    It walks around but works well.
    Thanks for idea.

    Regards,
    M.

+ 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. [SOLVED] extend search formula to mutiple search for single a cell
    By lagiosman in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-20-2014, 01:16 PM
  2. [SOLVED] How to ask formula to search for multiple values within one search?
    By Buzz57 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-04-2014, 11:14 PM
  3. Modify this Search Formula to search across a range of cells
    By zicitron in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-16-2013, 08:11 AM
  4. Formula to search, match value, search again, return SUM
    By Russ Fuquay in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-26-2013, 11:01 PM
  5. Replies: 5
    Last Post: 03-29-2012, 04:12 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