Forum Discussion

Jarebb's avatar
Jarebb
Copper Contributor
May 07, 2022
Solved

Rounddown function within the same cell after a function

I would like to ROUNDDOWN the result after the Function within the same cell. 

A2=1.2

A3= 1.6

A4= formula to sum cell A2 and A3 and thereafter Rounddown. 

example: how do I include the rounddown within the same cell that has this formula. 

fx=Sum(A2+A3)

 

thanks for solution. 

  • Jarebb 

    That would be

    =ROUNDDOWN(SUM(A2+A3),0)

    if you want to round down to a whole number (0 decimal places)

     

    Note that SUM isn't really needed: =SUM(A2+A3) is equivalent to =A2+A3.

    Or you could use =SUM(A2:A3). That is actually preferable since it ignores text values.

3 Replies

  • mathetes's avatar
    mathetes
    Gold Contributor

    Jarebb 

     

    As a learning opportunity, the answer that HansVogelaar has given you is an example of what's called "nesting"--it is possible to "nest" one function inside another, and in fact it is possible to do so (though not always advisable) to nest functions many levels deep. The reason why it's not always advisable: it can become difficult to understand them or maintain them.

     

    But it's a good thing to know about. Here's a good website to start that learning.

     

    • Jarebb's avatar
      Jarebb
      Copper Contributor

       

      HansVogelaar 

      mathetes 

       

      awesome and thank you. 
      Was on the internet searching and many references are just on rounding on a different cell. 

      Now I’m introduced to Nesting, I will explore further as challenges built up over time. 

      👍

  • Jarebb 

    That would be

    =ROUNDDOWN(SUM(A2+A3),0)

    if you want to round down to a whole number (0 decimal places)

     

    Note that SUM isn't really needed: =SUM(A2+A3) is equivalent to =A2+A3.

    Or you could use =SUM(A2:A3). That is actually preferable since it ignores text values.

Resources