LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Ed
 
Posts: n/a
Default Formatting a cell as "text" in the number catagory.

I have a situation where cell D4 might contain either of the following
12 or A9
Another cell, H2, will contain the formula -
IF(D4=12,"yes",IF(D4="A9","no",""))
This formula deals with a cell that will contain either a number or an
alphabetic character. However the cells value will always be alphabetic.

Still another cell, H5, will contain the formula -
IF(D4=12,D4,IF(D4="A9",20,""))
This formula deals with a cell that will contain either a number or an
alphabetic character. This cells value might also be a number or an
alphabetic character.

Should cell D4 be number formatted as "general" or "text"?
Should cell H2 be number formatted as "general" or "text"?
Should cell H5 be number formatted as "general" or "text"?

With general format used for all cells, my macro stalls occasionally.
I think one or more of these cells are causing the problem.

Is text format the ideal format for any or all of these 3 cells?

Thankyou
Ed
 
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
inserting data from a row to a cell, when the row number is specified by a formula in a cell [email protected] New Users to Excel 2 January 6th 05 07:18 AM
Convert data of cells to any type: Number, Date&Time, Text Kevin Excel Discussion (Misc queries) 0 December 30th 04 06:55 AM
how to hyperlink text to a cell steve New Users to Excel 1 December 14th 04 08:21 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM
returning a text cell based on a number cell Josh7777777 Excel Worksheet Functions 2 November 2nd 04 07:42 PM


All times are GMT +1. The time now is 08:11 AM.

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"