ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Bringing Formatting with the If state (https://www.excelbanter.com/excel-discussion-misc-queries/184709-bringing-formatting-if-state.html)

kathi

Bringing Formatting with the If state
 
I have an If statement that returns the correct value but does not bring the
custom format of the original cell. Does anyone know how to bring the same
format over with the result?

Formula: =IF(Detail!E23="Not assigned",IF(Detail!D23="not
assigned",Detail!C23,Detail!D23),Detail!E23)

Result comes over as 6.00 and what I want is 6.000 EA which is what the
original cell has customer formatted.

Thank you.



Gary''s Student

Bringing Formatting with the If state
 
Just apply the same custom format to the cell with the formula as in the
original cell.
--
Gary''s Student - gsnu200781

kathi

Bringing Formatting with the If state
 
I am looking for it to automatically read the format and bring it over
because it will not be the same for each row. Some may be EA, Some may be H
and some may be FT.



"Gary''s Student" wrote:

Just apply the same custom format to the cell with the formula as in the
original cell.
--
Gary''s Student - gsnu200781



All times are GMT +1. The time now is 04:52 AM.

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