+ Reply to Thread
Results 1 to 13 of 13

User Form: Search Column & Match Value between 2 Dates

  1. #1
    Registered User
    Join Date
    10-22-2022
    Location
    Egypt
    MS-Off Ver
    2016
    Posts
    23

    User Form: Search Column & Match Value between 2 Dates

    hello guys
    i need some help
    since im new to excel and vba
    i was working on a little project to help me in my job a little
    so i wanted to make a search by date userform

    i inserted textbox1 and textbox2 and found a calendar i can use to select dates easly and show the result in the list box
    but i cann't find the formula to search match the value between the 2 dates
    search col = C

    working on database sheet
    listbox1 doesn't show the result with headers and all information
    so anyone can help me with that ?
    i would be v.thankfull


    Userform (1).xlsm
    Last edited by ahmed elsery; 10-23-2022 at 06:06 AM.

  2. #2
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: Hello ... A little help with dates search

    help us to help you - see big yellow banner - how to upload your workbook - far easier to give answers when in relative context.
    Torachan,

    Mission statement; Promote the use of Tables, Outlaw the use of 'merged cells' and 'RowSource'.

  3. #3
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow Re: Hello ... A little help with dates search


    Hello,

    use CDate VBA function to convert your text to an Excel valid date
    then you can use the Range.Find methog (like any Excel user finding manually, easy with the Macro Recorder help)
    or the MATCH worksheet function in order to find out the relative row ...

  4. #4
    Registered User
    Join Date
    10-22-2022
    Location
    Egypt
    MS-Off Ver
    2016
    Posts
    23
    Quote Originally Posted by torachan View Post
    help us to help you - see big yellow banner - how to upload your workbook - far easier to give answers when in relative context.
    Thats it u can check
    Thanks
    Attached Files Attached Files
    Last edited by ahmed elsery; 10-23-2022 at 04:47 AM.

  5. #5
    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,892

    Re: Hello ... A little help with dates search

    I have closed your duplicate thread - continue HERE, please.
    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.

  6. #6
    Registered User
    Join Date
    10-22-2022
    Location
    Egypt
    MS-Off Ver
    2016
    Posts
    23

    Re: Hello ... A little help with dates search

    okay thanks

  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,892

    Re: Hello ... A little help with dates search

    You also need to make your thread titles less generic going forward. Yours is incredibly vague and tells us nothing of what you are wanting help with in a useful way. Thanks.

  8. #8
    Registered User
    Join Date
    10-22-2022
    Location
    Egypt
    MS-Off Ver
    2016
    Posts
    23

    Re: Hello ... A little help with dates search

    am sorry but can u suggest title ? :/

  9. #9
    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,892

    Re: Hello ... A little help with dates search

    Use something from your post that actually tells us specifically what you are having an issue with - what do you want resolving?

    For example:

    User Form: Search Column & Match Value between 2 Dates

  10. #10
    Registered User
    Join Date
    10-22-2022
    Location
    Egypt
    MS-Off Ver
    2016
    Posts
    23

    Re: Hello ... A little help with dates search

    ya that's it exactly ..... thanks so much <3

  11. #11
    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,892

    Re: User Form: Search Column & Match Value between 2 Dates

    No worries. Please follow this pattern in future. Note: I used YOUR words!!! So you could have don it yourself.

  12. #12
    Registered User
    Join Date
    10-22-2022
    Location
    Egypt
    MS-Off Ver
    2016
    Posts
    23

    Re: User Form: Search Column & Match Value between 2 Dates

    is there anyone able to help me with that situation ?

  13. #13
    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,892

    Re: User Form: Search Column & Match Value between 2 Dates

    Please be patient. You may bump your thread only after 24 hours have elapsed. Today is a Sunday, a non-working day in many parts of the world and not a busy day on the forum. The help you get here comes for free: please don't press for it. Thanks.

+ 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] search between dates
    By dafra in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-21-2022, 06:04 AM
  2. search and sum value between two dates
    By hassan khansa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-17-2021, 11:04 AM
  3. [SOLVED] Search for dates whilst ignoring earlier dates for servicing
    By Ju1cy in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 05-10-2013, 11:05 AM
  4. [SOLVED] Button to search and filter all dates between two dates
    By DannyJ in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-11-2012, 11:12 AM
  5. search for Value between Dates specified
    By ShadowOfTheBeas in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-01-2008, 03:56 PM
  6. search through dates
    By northernstar197 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-15-2007, 08:28 AM
  7. Search between two dates
    By David494 in forum Excel General
    Replies: 1
    Last Post: 06-21-2005, 08:46 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