+ Reply to Thread
Results 1 to 7 of 7

#value from formula that won't ignore anything other than numbers

  1. #1
    Forum Contributor
    Join Date
    10-02-2013
    Location
    Houston, TX
    MS-Off Ver
    office 365
    Posts
    638

    #value from formula that won't ignore anything other than numbers

    With in the FI-A sheet the formula in G43 works correctly and all other totals are correct. The problem is that if someone enters a "space" to clear info in an above cell it will return a #value in the formula below...I formatted it to turn grey so they would know where to delete the cell above to correct. With in the FI-B sheet I changed my formula in G43 so it would not return #value but now my totals that come from the mileage row wont calculate correctly because the first part of the formula would need to include the value in B10 also to make it correct. Remember the numbers on FI-A are correct.
    Attached Files Attached Files
    Last edited by bdouglas1011; 10-19-2013 at 08:23 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: #value from formula that won't ignore anything other than numbers

    The problem is that if someone enters a "space" to clear info in an above cell it will return a #value
    For a start, I would make sure they DONT enter a space to clear data - tell them them pushing DELETE is only 1 key-stroke, and simple to do, whilst if they press space, they still have to press enter - 2 key strokes.

    Also, you can shorten that formula somewhat by using this...
    =SUMPRODUCT($C$11:$C$35*H11:H35)+H10*$B$10*$C$10

    I notice that you have the answer cells formatted as text? leave them as numbers, it will keep things simple
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Contributor
    Join Date
    10-02-2013
    Location
    Houston, TX
    MS-Off Ver
    office 365
    Posts
    638

    Re: #value from formula that won't ignore anything other than numbers

    I know I don't know how many times I tell them not to use the space bar they don't listen then I came across
    =SUMPRODUCT(O10:O35,$C10:$C35) which only used two columns when adding then multiplying and low and behold if I entered a space in the cell above it did not return the #value error...but when I tried to modify it to include the first row which has to use three calculations it did not work.
    that is why I set up conditions so that if they did use space bar the cell was grey so they knew what to change.

    If it cant be done I could change the first line to show your true total miles in a cell but then that cell has to widened in order to read it and that gets sloppy on Invoices especially when they have to sign a 1/2 million $ invoice. I am just trying to dummy proof it for field hands and have it look great for accounting.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: #value from formula that won't ignore anything other than numbers

    I can totally understand that, and I think I have come up with a solution for you, using Data Validation...

    Highlight the entire "entry" range. on the Data Tab, select Data Validation, under "allow", select Custom, under "formu;a" enter this...
    =G10<>" "

    I think you will need to enter an error message, so click "Error Alert" tab and enter something like...
    "Use DELETE, not SPACE!!!. Press Escape to Continue"

    Im pretty sure that after wasting their time with constant "escape", they will mend their ways

  5. #5
    Forum Contributor
    Join Date
    10-02-2013
    Location
    Houston, TX
    MS-Off Ver
    office 365
    Posts
    638

    Re: #value from formula that won't ignore anything other than numbers

    That's works great I cant believe I did not think of that Awesome Thanks a bunch...This Thread is closed I do have a couple of other things I am doing and I will try and send it tomorrow once I gather all the facts

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: #value from formula that won't ignore anything other than numbers

    Happy to help and thanks for the feedback

  7. #7
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: #value from formula that won't ignore anything other than numbers

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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. Excel formula problem
    By kenbear in forum Excel General
    Replies: 4
    Last Post: 04-09-2012, 10:43 AM
  2. Problem in excel formula
    By vivekdevkar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-15-2010, 06:12 AM
  3. Problem with formula in Excel
    By Bill R in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  4. [SOLVED] Problem with formula in Excel
    By Bill R in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  5. [SOLVED] Please help with Excel formula problem!
    By Ron M. in forum Excel General
    Replies: 17
    Last Post: 03-05-2005, 11:07 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