nested if function with wild card (3 variables)

  • Thread starter Thread starter tuckerc
  • Start date Start date
T

tuckerc

I need a function to do the following:

add G5 + I5 and if the result is:
= *.6 (ie 5.6 or 205.7) then return a rounded up value of G5+I5 t
the nearest whole #

<= *.4 (ie 5.4 or 205.4) then return a rounded down value of G5+I5 t
the nearest whole #

= *.5, then return the value itself (ie 5.5 or 205.5
 
I need a function to do the following:

add G5 + I5 and if the result is:

the nearest whole #

<= *.4 (ie 5.4 or 205.4) then return a rounded down value of G5+I5 to
the nearest whole #

= *.5, then return the value itself (ie 5.5 or 205.5)

I changed your specification a bit as you don't specify what you want to happen
if the result is between 0.4 and 0.5, or between 0.5 and 0.6.


=INT(G5+I5)+(MOD(G5+I5,1)>0.5)+(MOD(G5+I5,1)=0.5)/2


--ron
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Nest no more than seven functions??? 5
Round formula 1
Round Function 5
A rounding function 4
Rounding numbers 4
Sum using more than 6 nested IF functions 3
Nested if with "wild card" 3
Nested IF function 4

Back
Top