• Formula combining Convert and Round (2000 SR-1)

    Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Formula combining Convert and Round (2000 SR-1)

    Author
    Topic
    #390176

    Hello all Loungers

    This is a question from one of my work colleagues
    For example, the sum for the total of square feet in a column of figures is calculated by the function sum and the value is 150.
    The Sum formula is in A22
    In A22, he would like value to be converted and displayed as both square feet and square metres. Also the cell needs to show which is the ft and which is the mtr by showing added text.

    I suggested that he put in another cell the following formula

    =A22&” Sq ft”&”/”&(CONVERT(SQRT(A22),”ft”,”m”)^2)&” Sq Mtr” which gives 150 Sq ft/13.935456 Sq Mtr

    So far so good except, that he would would like to round the Sq Mtrs to show 2 decimal places rather than 6 (Sigh and eyes glazing over). I am not sure how to proceed from here.

    And is there still a way of having the formula in the original cell of A22?

    surrender

    Viewing 0 reply threads
    Author
    Replies
    • #692039

      This formula (in another call than A22) will do what he wants:

      =A22&" Sq ft"&"/"&TEXT(CONVERT(SQRT(A22),"ft","m")^2,"0.00")&" Sq Mtr"

      To have a formula in A22 itself, both occurrences of A22 in this formula should be replaced by the formula that currently is in cell A22 (without the equals sign =, though.) For example, if A22 now contains =SUM(A1:A20), the formula to replace it would become

      =SUM(A1:A20)&" Sq ft"&"/"&TEXT(CONVERT(SQRT(SUM(A1:A20)),"ft","m")^2,"0.00")&" Sq Mtr"

      Not very pretty, I fear.

      • #692041

        WOW, you’re right it isn’t pretty, but still WOW

        Thank you

        • #692054

          Personally, I prefer (but that is the scientist in me):

          =A22&" foot
    Viewing 0 reply threads
    Reply To: Formula combining Convert and Round (2000 SR-1)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: