+ Reply to Thread
Results 1 to 5 of 5

Finding minimum value in textboxes in userform

  1. #1
    Registered User
    Join Date
    04-27-2016
    Location
    Philippines
    MS-Off Ver
    MS Office 2016
    Posts
    28

    Finding minimum value in textboxes in userform

    Hi,
    I'm trying to find the minimum value in textboxes while ignoring the blanks.
    Textboxes are name D1,D2,D3...D9 and the result should be displayed in D10.
    I have used this formula below but it does not show any value.
    D10 = Application.WorksheetFunction.Min(D1, D2, D3, D4, D5, D6, D7, D8, D9)
    Is there any method to ignore blank textbox using the code above?


    Thanks!

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Finding minimum value in textboxes in userform

    Try this.

    Please Login or Register  to view this content.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Registered User
    Join Date
    04-27-2016
    Location
    Philippines
    MS-Off Ver
    MS Office 2016
    Posts
    28

    Re: Finding minimum value in textboxes in userform

    Thanks mikerickson,
    It worked!

    Is there any way also to use the same coding in finding the median and max value?
    Last edited by king05; 11-25-2016 at 09:59 PM. Reason: Update

  4. #4
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Finding minimum value in textboxes in userform

    Try

    Please Login or Register  to view this content.

    The loop is needed to convert numeric entries into numbers.

  5. #5
    Registered User
    Join Date
    04-27-2016
    Location
    Philippines
    MS-Off Ver
    MS Office 2016
    Posts
    28

    Re: Finding minimum value in textboxes in userform

    Thank you mikerickson!
    It's perfectly working now.
    Here's the pic of my current project using this code below for future ref of others.
    Median.jpg
    Please Login or Register  to view this content.
    Last edited by king05; 11-27-2016 at 05:12 AM.

+ 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. Replies: 7
    Last Post: 04-17-2013, 03:53 PM
  2. Finding the cell with the minimum value in a row
    By danw8 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-18-2013, 05:41 PM
  3. Help Populating Textboxes in Userform, With Multipage Userform.
    By mdmorgan24 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-07-2012, 05:29 PM
  4. Finding the minimum value
    By northerng in forum Excel General
    Replies: 2
    Last Post: 05-27-2011, 03:48 AM
  5. Finding the minimum value with the exeption of zero
    By phil@micro in forum Excel General
    Replies: 3
    Last Post: 01-23-2009, 06:32 AM
  6. Userform TextBoxes
    By tqm1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-29-2007, 09:04 AM
  7. [SOLVED] UserForm TextBoxes
    By Rob in forum Excel General
    Replies: 2
    Last Post: 08-05-2005, 10:07 PM
  8. [SOLVED] Finding a minimum value
    By Jan Kronsell in forum Excel General
    Replies: 2
    Last Post: 03-29-2005, 07:06 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