Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Sky Sky is offline
external usenet poster
 
Posts: 10
Default show different text in cell based on range of #s in other cell

I am trying to show a different text string in a cell based on a range of
numbers in another cell.

C25 can display a range of numbers from 0 thru 150. I need cell A26 to
display text if the numbers fall within a certain range:

# displayed in cell (C25) text displayed in (A26)
0-9 "Use Good ADM/CRM
10-15 "Notify Dispatch/Manager"
16-20 "Manager Approval Req."
20 "CANCEL MISSION"


I am new to VBA (learn as I go) so keep it as simple as you can, please.
--
skyknight
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default show different text in cell based on range of #s in other cell

How about a formula:

=IF(c25<10,"Use Good ADM/CRM",IF(c25<16,"Notify Dispatch/Manager",
IF(c25<21,"Manager Approval Req.","CANCEL MISSION")))

Or if C25 can be empty:

=if(c25="","",IF(c25<10,"Use Good ADM/CRM",
IF(c25<16,"Notify Dispatch/Manager",
IF(c25<21,"Manager Approval Req.","CANCEL MISSION"))))

sky wrote:

I am trying to show a different text string in a cell based on a range of
numbers in another cell.

C25 can display a range of numbers from 0 thru 150. I need cell A26 to
display text if the numbers fall within a certain range:

# displayed in cell (C25) text displayed in (A26)
0-9 "Use Good ADM/CRM
10-15 "Notify Dispatch/Manager"
16-20 "Manager Approval Req."
20 "CANCEL MISSION"


I am new to VBA (learn as I go) so keep it as simple as you can, please.
--
skyknight


--

Dave Peterson
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
bold text of referenced cell show in formula cell zabcikranch Excel Worksheet Functions 1 February 2nd 10 07:42 PM
How do I change cell color based upon data range within the cell? Chris Sanders Excel Worksheet Functions 1 March 6th 06 08:59 PM
formula for named cell/range based on cell values alex Excel Programming 2 August 25th 05 02:50 PM
Deleting Rows based on text in cell & formatting cell based on text in column beside it Steve Excel Programming 4 February 26th 04 03:31 PM
force text in a cell based on value of cell in a range jjst34 Excel Programming 7 December 2nd 03 10:23 PM


All times are GMT +1. The time now is 10:23 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"