ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   Cell display (https://www.excelbanter.com/new-users-excel/214745-cell-display.html)

willy

Cell display
 
Due to a print formatting issue I am trying to copy the contents of one cell
to another. If the original cell is blank, I want the duplicate cell to be
blank. If the original cell contains a numeric value, I want the duplicate
cell to contain the numeric value to two decimal places. How do I format the
duplicate cell to achieve this?

Thanks

Lars-Åke Aspelin[_2_]

Cell display
 
On Sat, 27 Dec 2008 16:42:00 -0800, Willy
wrote:

Due to a print formatting issue I am trying to copy the contents of one cell
to another. If the original cell is blank, I want the duplicate cell to be
blank. If the original cell contains a numeric value, I want the duplicate
cell to contain the numeric value to two decimal places. How do I format the
duplicate cell to achieve this?

Thanks


If A1 is the original cell, try the following formula in the duplicate
cell:

=IF(A1="","",A1)

Format the duplicate cell as number with two decimals.

Hope this helps / Lars-Åke

Shane Devenshire

Cell display
 
Hi,

=IF(A1,A1,"")

Assuming the cell you want to test is A1 then in another cell enter the
formula above. Note the cell is not really blank, it contains a formula
which displays as blank.

If this helps, please click the Yes button.

Cheers,
Shane Devenshire

"Willy" wrote in message
...
Due to a print formatting issue I am trying to copy the contents of one
cell
to another. If the original cell is blank, I want the duplicate cell to
be
blank. If the original cell contains a numeric value, I want the
duplicate
cell to contain the numeric value to two decimal places. How do I format
the
duplicate cell to achieve this?

Thanks




All times are GMT +1. The time now is 06:12 AM.

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