+ Reply to Thread
Results 1 to 11 of 11

Need help with decimal place output using IMPRODUCT formula.

  1. #1
    Registered User
    Join Date
    06-27-2012
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    6

    Need help with decimal place output using IMPRODUCT formula.

    Sorry nt IMPRODUCT, rather the IMDIV...I am using the IMDIV formula and getting 14 decimal places in the output cell. I need to limit to 2 decimal places. I have tried using the "format cells" function and setting the decimal places to 2 and have tried this with all possible methods, ie...number, custom, scientific, etc...but no matter what I do, the output cell will not reflect my changes. I also tried to format the cell before entering the formula and this made no difference. Please help.
    Last edited by sergiob; 06-27-2012 at 07: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
    53,048

    Re: Need help with decimal place output using IMPRODUCT formula.

    all you are doing is changing how the number is displayed, not its actual value. try using =round("value",2)

    then you can format it to 2 decimals
    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 Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: Need help with decimal place output using IMPRODUCT formula.

    can you try these..

    cell formatting #,##0.00
    or
    trunc(improduct,2)
    or
    round(improduct,2)
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Need help with decimal place output using IMPRODUCT formula.

    The Excel functions that return complex numbers actually return strings -- there is no way to format them or round them (other than using other formulas).

    Why are you doing complex arithmetic?
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Registered User
    Join Date
    06-27-2012
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Need help with decimal place output using IMPRODUCT formula.

    to shg...Trying to create a spreadsheet whereby users would enter data in certain labeled cells (heart catheterization hemodynamic data) and then the spreadsheet would carry out the hemodynamic calculations (cardiac output etc) based on the formulas I have entered. I have been able to get everything to work except the output of the IMDIV formula.
    Last edited by sergiob; 06-27-2012 at 07:38 PM.

  6. #6
    Registered User
    Join Date
    06-27-2012
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Need help with decimal place output using IMPRODUCT formula.

    to shg...Trying to create a spreadsheet whereby users would enter data in certain labeled cells (heart catheterization hemodynamic data) and then the spreadsheet would carry out the hemodynamic calculations (cardiac output etc) based on the formulas I have entered. I have been able to get everything to work except the output of the IMDIV formula.

  7. #7
    Registered User
    Join Date
    06-27-2012
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Need help with decimal place output using IMPRODUCT formula.

    FDibbins...where do you want me to enter the =round("value",2) ??? I have a formula =IMPRODUCT(IMDIV(B6,(IMPRODUCT(G8,B14)))) that I need for the desired output...I don't understand what you are suggesting.

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Need help with decimal place output using IMPRODUCT formula.

    Why does that requires complex arithmetic? Can you post a workbook, and a link that describes the calculation you're performing if the workbook doesn't make it clear?

  9. #9
    Registered User
    Join Date
    06-27-2012
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Need help with decimal place output using IMPRODUCT formula.

    SHG...now you lost me...post a workbook??? I am essentially trying to create a tool used only on a single local computer workstation to perform complex calculations quickly by entering the data in the labeled cells. Perhaps this shows how novice I am at Excel...is the "workbook" some function of excel that I am not aware of?

  10. #10
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: Need help with decimal place output using IMPRODUCT formula.

    @sergiob can you try this just to experiment if it will round to 2..

    your formula =IMPRODUCT(IMDIV(B6,(IMPRODUCT(G8,B14)))) say is in cell A1

    in cell say B1 =COMPLEX(ROUND(IMREAL(A1),2),ROUND(IMAGINARY(A1),2))

    if this will work maybe we can integrate the two formula.

    ...i stop here if doesn't work.

    thanks.

  11. #11
    Registered User
    Join Date
    06-27-2012
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Need help with decimal place output using IMPRODUCT formula.

    vlady...success!! it worked.

+ 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