ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   formatting (https://www.excelbanter.com/excel-discussion-misc-queries/43236-formatting.html)

Hardy03

formatting
 
I have a value in cell A, i would like to display this value in cell B if it
is less than or equal to 667.
If the value in cell A is greater than 667 i would like the value up to 667
displayed in cell B and the remaining value displayed in cell C.

e.g. cell A = 141
cell B = 141

or

cell A = 788
Cell B = 667
Cell C = 121

Can anyone help

David Hepner

Try this:

In cell B use this formula: =IF(A1<=667,A1,667)

In cell C use this formula: =IF(A1667,A1-B1,0)



"Hardy03" wrote:

I have a value in cell A, i would like to display this value in cell B if it
is less than or equal to 667.
If the value in cell A is greater than 667 i would like the value up to 667
displayed in cell B and the remaining value displayed in cell C.

e.g. cell A = 141
cell B = 141

or

cell A = 788
Cell B = 667
Cell C = 121

Can anyone help


Hardy03

Thankyou that was really helpful

"David Hepner" wrote:

Try this:

In cell B use this formula: =IF(A1<=667,A1,667)

In cell C use this formula: =IF(A1667,A1-B1,0)



"Hardy03" wrote:

I have a value in cell A, i would like to display this value in cell B if it
is less than or equal to 667.
If the value in cell A is greater than 667 i would like the value up to 667
displayed in cell B and the remaining value displayed in cell C.

e.g. cell A = 141
cell B = 141

or

cell A = 788
Cell B = 667
Cell C = 121

Can anyone help



All times are GMT +1. The time now is 08:33 PM.

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