ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   compare the value cell then use one formula if <= or another (https://www.excelbanter.com/excel-discussion-misc-queries/88836-compare-value-cell-then-use-one-formula-if-%3D-another.html)

BThrasher

compare the value cell then use one formula if <= or another
 
I need to compare the value in a cell4. If cell4 <= 160 then cell2 =
160-cell4, or if cell4 is 160 then cell2 = 80, Cell3 will = cell4-cell2

I hope this is understandable.

Bob Phillips

compare the value cell then use one formula if <= or another
 
cell2: =IF(cell4<=160,160-cell4,80)

cell3: =cell4-cell2

--
HTH

Bob Phillips

(remove xxx from email address if mailing direct)

"BThrasher" wrote in message
...
I need to compare the value in a cell4. If cell4 <= 160 then cell2 =
160-cell4, or if cell4 is 160 then cell2 = 80, Cell3 will = cell4-cell2

I hope this is understandable.





All times are GMT +1. The time now is 03:47 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com