Results 1 to 4 of 4

Checking the result of a forumula

Threaded View

  1. #1
    Registered User
    Join Date
    06-02-2014
    Location
    Oklahoma, USA
    MS-Off Ver
    2010
    Posts
    31

    Checking the result of a forumula

    How would one go about checking the result of a worksheet formula with VBA?

    I have a sheet that uses the MIN function to check the first entry date and the MAX function to check the last entry date on the sheet. Of course, if there is no entries yet, the cell with the function populates with "1/0/1900". That is not horrible, but I like to tidy things up like that and in the process of writing some VBA to do all of the work, I wanted to try and see if I could clean that up.

    My thought was to have VBA check the MIN function and if it was returning "1/0/1900" then populate the cell with something along the lines of "No Entries". I am currently using =IF(Register[Date]="","No Entries",MIN(Register[Date])) which of course works. However, I wanted to use VBA (not only to see if I can do so but just to learn more too) to check if the MIN function returns anything (specifically 1/0/1900) and if that is true then populate the cell with "No Entries", else run the MIN function.

    Hopefully I explained that well enough. If that can be done, how would one go about doing so?
    Last edited by StormStrikes; 12-30-2015 at 12:40 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 7
    Last Post: 11-27-2015, 11:12 AM
  2. How can I add an OR to this forumula?
    By kinfirerain in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-29-2015, 02:59 PM
  3. Checking in two tables and display the result in Excelsheet.
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-03-2014, 06:58 PM
  4. Replies: 6
    Last Post: 03-12-2014, 12:16 PM
  5. Replies: 1
    Last Post: 05-18-2012, 03:22 PM
  6. Replies: 3
    Last Post: 01-06-2012, 02:53 PM
  7. Replies: 3
    Last Post: 01-03-2012, 10:54 PM

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