+ Reply to Thread
Results 1 to 15 of 15

Auto fill in formula

  1. #1
    Registered User
    Join Date
    08-25-2016
    Location
    Arad, Romania
    MS-Off Ver
    2016
    Posts
    6

    Auto fill in formula

    Hello, I am required to fill in a table with some measurements of parts that my firm manufactures. Each quality approved measurement has a tolerance:
    • If the measured number has no decimals (x), the tolerance is +/-0.8
    • If the measured number has one decimal (x.x), the tolerance is +/-0.46
    • If the measured number has two decimals (x.xx), the tolerance is +/-0.18
    What I have been trying to do is come up with an auto fill in formula for these tolerances(in tolerance+/tolerance- cells) depending on the quality approved measured number (from nominal number cell), but failed badly. Please help me, I have tons of parts with hundreds of measurements and I will lose my mind.
    Attached Files Attached Files
    Last edited by OptimusKenny; 08-25-2016 at 07:15 AM.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Auto fill in forumula

    To Attach a File:

    1. Scroll down to the window below your post Additional Options
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Contributor
    Join Date
    08-23-2016
    Location
    India
    MS-Off Ver
    MS Office Professional Plus 2013
    Posts
    194

    Re: Auto fill in forumula

    Attach the file but in the mean time let me know if this helps...............=IF((A1)-TRUNC(A1)=0,"+/-0.8",IF((A1)-TRUNC(A1)<=0.1,"+/-0.46",IF((A1)-TRUNC(A1)>=0.11,"+/-0.18"," ")))
    Ash

  4. #4
    Registered User
    Join Date
    08-25-2016
    Location
    Arad, Romania
    MS-Off Ver
    2016
    Posts
    6

    Re: Auto fill in forumula

    I attached the file, your formula works perfectly, but it needs a little bit of tinkering, which I think I can manage by myself, meaning that I have to delete the +/- that you included as I have separate cells for each value, as you can see if you open the attachment. Thank you very much!
    Last edited by OptimusKenny; 08-25-2016 at 05:46 AM.

  5. #5
    Forum Contributor
    Join Date
    08-23-2016
    Location
    India
    MS-Off Ver
    MS Office Professional Plus 2013
    Posts
    194

    Re: Auto fill in forumula

    Great.............. All the best!!!

  6. #6
    Registered User
    Join Date
    08-25-2016
    Location
    Arad, Romania
    MS-Off Ver
    2016
    Posts
    6

    Re: Auto fill in forumula

    Ok, i am sorry but I got overly excited and didn't check all the possibilities od decimals at first so here is the problem:
    • If i keep the statement as you wrote it
      Please Login or Register  to view this content.
      , and the number has only one decimal it still displays 0.18 tolerance.
    • When I changed it to
      Please Login or Register  to view this content.
      , it displays only 0.46.

  7. #7
    Forum Contributor
    Join Date
    08-23-2016
    Location
    India
    MS-Off Ver
    MS Office Professional Plus 2013
    Posts
    194

    Re: Auto fill in forumula

    It is working fine for me.........check attached file......(F39), (G39), (H39)

    Formula used...........=IF((F32)-TRUNC(F32)=0,"0.8",IF((F32)-TRUNC(F32)<=0.1,"0.46",IF((F32)-TRUNC(F32)<=0.11,"0.18"," ")))
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    08-23-2016
    Location
    India
    MS-Off Ver
    MS Office Professional Plus 2013
    Posts
    194

    Re: Auto fill in forumula

    Can you input some numbers in the file and attach it here so that I can work on that. If there are negative values then it wont work.

  9. #9
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,944

    Re: Auto fill in forumula

    Try
    Please Login or Register  to view this content.
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  10. #10
    Registered User
    Join Date
    08-25-2016
    Location
    Arad, Romania
    MS-Off Ver
    2016
    Posts
    6

    Re: Auto fill in forumula

    If I give a value with no decimal it is fine. If I give a value which has decimals between x.01 to x.1 it displays 0.46 tolerance which is shouldn't as I only want to display 0.46 tolerance to numbers with only one decimal(x.x). If I give x.11 value it displays 0.18 value and every value above x.11 doesn't display anything.(picture attached)
    Quote Originally Posted by nflsales View Post
    Try
    Please Login or Register  to view this content.
    , nop it doesn't even recognize it as a formula...
    Attached Images Attached Images
    Last edited by OptimusKenny; 08-25-2016 at 06:50 AM.

  11. #11
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,944

    Re: Auto fill in forumula

    FOR SUM USE =SUM(G32,G33) iNSTEAD OF G32+G33 and =
    sum(G32,-G34) instead G32-G34

  12. #12
    Registered User
    Join Date
    08-25-2016
    Location
    Arad, Romania
    MS-Off Ver
    2016
    Posts
    6

    Re: Auto fill in forumula

    Quote Originally Posted by Ash_Maverick View Post
    Can you input some numbers in the file and attach it here so that I can work on that. If there are negative values then it wont work.
    Here a part file I finished earlier.
    Attached Files Attached Files

  13. #13
    Forum Contributor
    Join Date
    05-06-2016
    Location
    Cluj, Romania
    MS-Off Ver
    2007-2010
    Posts
    220

    Re: Auto fill in forumula

    Hi,
    Try this in B10 and then drag down and to right
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    see attached
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    08-25-2016
    Location
    Arad, Romania
    MS-Off Ver
    2016
    Posts
    6

    Re: Auto fill in forumula

    Quote Originally Posted by TudyBTH View Post
    Hi,
    Try this in B10 and then drag down and to right
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    see attached
    Seems to work fine, thank you, I will update if I encounter any problems. Multam fain! :D

  15. #15
    Forum Contributor
    Join Date
    08-23-2016
    Location
    India
    MS-Off Ver
    MS Office Professional Plus 2013
    Posts
    194

    Re: Auto fill in forumula

    Yeah...........Tudy is correct !!

+ 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. Auto fill / flash fill not working with formulas?
    By mhorga in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-18-2016, 12:54 PM
  2. Replies: 6
    Last Post: 03-12-2014, 12:16 PM
  3. Auto fill decimal sequence using custom fill or formula
    By 8cats in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-22-2013, 08:53 AM
  4. Replies: 1
    Last Post: 09-07-2011, 05:57 PM
  5. Replies: 5
    Last Post: 08-20-2011, 04:08 PM
  6. Auto Fill Text & Fill Color
    By emiles1987 in forum Excel General
    Replies: 0
    Last Post: 08-11-2010, 02:24 PM
  7. Replies: 1
    Last Post: 07-13-2007, 10:59 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