+ Reply to Thread
Results 1 to 4 of 4

date value of a column and then get result

  1. #1
    Registered User
    Join Date
    04-11-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    96

    date value of a column and then get result

    hi , i need coding in command button , when i like to click it , an inputbox should appear that ask me to enter the date , then another inputbox appears that ask me to put a string value any from column A , then coding will work and matches the input date with column B and shows the result in msgbox how many times Yes appears in column A or No appears in msgbox .etc
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: date value of a column and then get result

    Please Login or Register  to view this content.
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    04-11-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    96

    Re: date value of a column and then get result

    thanks . that works good

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: date value of a column and then get result

    Hi, mubashar,

    after collecting the information from the user I would recommend to use WorksheetFunction.CountIf on the ranges instead of looping through them. Besides: you could use wildcards for finding only a part of the cell contents (or use Trim in order to not get tangled with blanks after the expression in the cell).

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

+ 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. Vba list up result in column depends upon date and code
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-07-2013, 05:01 AM
  2. [SOLVED] Search Value of column E if exist return value of column B put result in column P
    By hassan khansa in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-23-2013, 11:39 AM
  3. Add Date in Column A Plus Number of Days in Column B and show result in Column C
    By excelforumcrisis in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-12-2013, 02:01 PM
  4. Ping Host Name Column A IP address Result column B Response time Column c
    By NickMac in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-13-2012, 03:23 AM
  5. Date result from Text to Column
    By swallis in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-11-2009, 12:08 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