multiple functions on one cell ?

  • Thread starter Thread starter Tim R
  • Start date Start date
T

Tim R

This one is way beyond me....I have a column with numbers varying from 12 or
30 to 800 or so...what I am trying to due is check the column cells for the
number...if the number is greater than 180 then I need to reduce the number
to an integer that is the 'remainder' of the number divided by 180

Or in figures ....cell number is greater than 180 = 678 / 180 = 3.766

now I need to get rid of the 3 and just enter the value of 180 times .766%
= 138 (rounded off)

The whole number 138 is what I need as the result

Again...this is only if the original cell value is greater than 180...179,
32, etc are to be left alone

Thanks, Tim
 
My post hasn't appeared yet, though I replied over an hour ago -
Google is becoming very unreliable.

Pete
 
Assuming your numbers start in cell A1 and go down the column, put
this in B1:

=IF(A1<180,A1,ROUND(180*MOD(A1,180),0))

and copy the formula down for as many entries as you have in column A.
You can then fix the values produced by the formula by highlighting
column B, clicking <copy> then Edit | Paste Special | Values (check) |
OK then <Enter>. Now you will be able to delete column A, leaving you
with the range of values you want.

Hope this helps.

Pete
 
Answering too late at night, I think, Pete. :-)
What he needs (I believe) is just =MOD(A1,180), which gives 138 for his
example input of 678, whereas your formula gives 24840. :-(
 
Yeah, you're right David - maybe the post would have been better off
lost in the ether !!

Pete
 

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

Back
Top