+ Reply to Thread
Results 1 to 7 of 7

want half decimal value in cell

  1. #1
    Registered User
    Join Date
    11-07-2011
    Location
    Pakistan
    MS-Off Ver
    Microsoft Excel 2007
    Posts
    33

    want half decimal value in cell

    hi,
    I have some calculation values in cells e.g.
    B1=7.10, C1=0.20 and D1=B1-C1 with answer 6.9 but I need the answer 6.4.
    B2=6.01, C2=1.39 and D2=B2-C2 with answer 4.62 but I want 4.12 instead of 4.62

    I need the cell formatting which shows the decimal value 50 not 100.
    plz help
    **fassi**

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: want half decimal value in cell

    Hi fassi,

    Try this formula in B1 for numbers in A1
    =IF(A1-INT(A1)>0.5,A1-0.5,A1)
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    11-07-2011
    Location
    Pakistan
    MS-Off Ver
    Microsoft Excel 2007
    Posts
    33

    Re: want half decimal value in cell

    Quote Originally Posted by MarvinP View Post
    Hi fassi,

    Try this formula in B1 for numbers in A1
    =IF(A1-INT(A1)>0.5,A1-0.5,A1)
    thanks MarvinP
    I have a large no of cells which contain such values e.g 5.99, 6.75, 5.59 etc etc
    Is there any possibility to format these cells to get required values

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: want half decimal value in cell

    Formatting the individual cells isn't the answer.
    You will need to put the above formula in a separate cell to calculate the answer.

  5. #5
    Registered User
    Join Date
    11-07-2011
    Location
    Pakistan
    MS-Off Ver
    Microsoft Excel 2007
    Posts
    33

    Re: want half decimal value in cell

    Quote Originally Posted by MarvinP View Post
    Formatting the individual cells isn't the answer.
    You will need to put the above formula in a separate cell to calculate the answer.
    MarvinP
    I mean if I format all cells (Sheet) with any custom formula in formatting option because I want this option of half decimal for all cell of sheet. Your formula is very good but it is very difficult to change all cells in new cells because value of these cells is coming from other sheet.

  6. #6
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: want half decimal value in cell

    Hi fassi,

    Let me see if I can explain this problem, as I see it. You have values in cells like 4.92. You want it to show 4.42 instead. You can NOT create a formula to change 4.92 into 4.42 in the cell itself as it will then give an error message of Circular Reference. SO - you want to FORMAT the cell to show 4.42 insead of 4.92.

    The above would take a formula. Formatting the cell to another type of display format will not change the value of the cell.

    Why don't you create a new sheet that has my formula above but points back to the sheet with all the numbers on it. See the example.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    11-07-2011
    Location
    Pakistan
    MS-Off Ver
    Microsoft Excel 2007
    Posts
    33

    Solved: want half decimal value in cell

    Quote Originally Posted by MarvinP View Post
    Hi fassi,

    Let me see if I can explain this problem, as I see it. You have values in cells like 4.92. You want it to show 4.42 instead. You can NOT create a formula to change 4.92 into 4.42 in the cell itself as it will then give an error message of Circular Reference. SO - you want to FORMAT the cell to show 4.42 insead of 4.92.

    The above would take a formula. Formatting the cell to another type of display format will not change the value of the cell.

    Why don't you create a new sheet that has my formula above but points back to the sheet with all the numbers on it. See the example.
    hi MarvinP
    Perfect n thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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