Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How do you use the text command in an if statement ie. if....,tex.

I am trying to enter the following formula in Excel 97 SR2.

=IF(ISNUMBER('1st Half Year'!$K20),IF('1st Half Year'!$K20'1st Half
Year'!$J5,TEXT('1st Half Year'!$K20,###),"ND"),"ERROR"). Instead of
returning the value of the reference cell as text, the formula returns the
entier formula as text. When I remove the Text statement the formula is
still displayed. It is only when I use the CTRL Z combination that the
formula once again displays the appropriate number, but not as text.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How do you use the text command in an if statement ie. if....,tex.

Sounds like the cell you are linking to is formatted as Text. Try changing
its format to general.

--
Regards,
Tom Ogilvy

"Ken Biles (PARSONS)" <Ken wrote
in message ...
I am trying to enter the following formula in Excel 97 SR2.

=IF(ISNUMBER('1st Half Year'!$K20),IF('1st Half Year'!$K20'1st Half
Year'!$J5,TEXT('1st Half Year'!$K20,###),"ND"),"ERROR"). Instead of
returning the value of the reference cell as text, the formula returns the
entier formula as text. When I remove the Text statement the formula is
still displayed. It is only when I use the CTRL Z combination that the
formula once again displays the appropriate number, but not as text.




Reply
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
Text in a command smith70 Excel Discussion (Misc queries) 2 December 2nd 09 03:57 PM
Pivot Table Error Message - "Command Text not set for command obje Jeff Divian Excel Discussion (Misc queries) 0 November 7th 07 10:26 PM
IF COMMAND WITH TEXT JOOPEE Excel Worksheet Functions 2 November 10th 05 07:43 PM
Hide Row command using if statement DME Excel Worksheet Functions 2 February 16th 05 03:44 PM
VBA Command to Look at cell in an If statement Wolf New Users to Excel 3 December 27th 04 11:27 PM


All times are GMT +1. The time now is 03:48 PM.

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

About Us

"It's about Microsoft Excel"