+ Reply to Thread
Results 1 to 4 of 4

Create a formula that ignores when non-numeric value is entered in numeric field

Hybrid View

lukela85 Create a formula that ignores... 10-24-2013, 06:54 AM
Pete_UK Re: Create a formula that... 10-24-2013, 06:56 AM
Olly Re: Create a formula that... 10-24-2013, 06:57 AM
lukela85 Re: Create a formula that... 10-24-2013, 07:22 AM
  1. #1
    Forum Contributor
    Join Date
    08-20-2009
    Location
    Plymouth, England
    MS-Off Ver
    Excel 2013
    Posts
    149

    Create a formula that ignores when non-numeric value is entered in numeric field

    Hi all,

    I am currently working on a rota.

    At present a formula calculates how long a particular shift is in hours & minutes. However if the person is on holiday, sick etc the formula returns #VALUE. I understand why but is there a way for the formula to not bother trying to calculate the shift length if a non-numeric value is entered?
    Last edited by lukela85; 10-24-2013 at 07:23 AM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,408

    Re: Create a formula that ignores when non-numeric value is entered in numeric field

    Post your formula here (or, better still, a sample workbook).

    Pete

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Create a formula that ignores when non-numeric value is entered in numeric field

    Quote Originally Posted by lukela85 View Post
    Hi all,

    I am currently working on a rota.

    At present a formula calculates how long a particular shift is in hours & minutes. However if the person is on holiday, sick etc the formula returns #VALUE. I understand why but is there a way for the formula to not bother trying to calculate the shift length if a non-numeric value is entered?
    Replace the cell reference as necessary, and "Stuff" with your existing formula.

    Formula: copy to clipboard
    =if(isnumber(A1),"Stuff","")
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  4. #4
    Forum Contributor
    Join Date
    08-20-2009
    Location
    Plymouth, England
    MS-Off Ver
    Excel 2013
    Posts
    149

    Re: Create a formula that ignores when non-numeric value is entered in numeric field

    Thanks Olly, formula works perfectly.

    Marked as solved.

+ 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] Convert alpha to numeric & then create formula - Thanks for reading
    By NylaTai in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-18-2013, 02:23 PM
  2. [SOLVED] Help find MAX value in one column when numeric & alph-numeric values are present
    By KevinAB in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-01-2013, 11:29 AM
  3. Replies: 4
    Last Post: 02-06-2006, 03:05 AM
  4. Match Single Numeric Criteria and Return Multiple Numeric Labels
    By Sam via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-30-2005, 04:10 PM
  5. Match Single Numeric Criteria and Return Multiple Numeric Labels
    By Sam via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 12-29-2005, 04:50 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