LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Formatting with IF Statement

I would like to format a cell that will either show the
value as "LF" or as a quantity using the "(xx)" format.
Although the following IF statement is in a modified
format, the idea should be understandable to what I am
trying to do.

IF( G1 = "x", format cell Q1 as "lf", else format
as "(xx)" )

Intended Results: If the user enters an x in cell G1,
format the inputted number with the letters "lf" for
linear feet. If the user does not enter an x in cell G1,
format the inputted number with "( )" designating a
quantity around the value.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Formatting with if statement stoz Excel Discussion (Misc queries) 2 October 7th 09 10:17 PM
CONDITIONAL FORMATTING OR AN 'IF' STATEMENT? Carla Excel Discussion (Misc queries) 3 April 27th 08 08:19 AM
Formatting Cells using an If Statement Seanb Excel Worksheet Functions 5 September 6th 07 05:10 PM
If Statement/Conditional Formatting JS Excel Worksheet Functions 3 June 29th 06 04:50 PM
How do I check formatting in an if-then statement bfmartiniv Excel Worksheet Functions 1 December 14th 04 12:42 AM


All times are GMT +1. The time now is 04:17 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"