Live Chat & Podcast at 1:00PM Eastern on Sunday!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Tag Cloud
access acer asus batch bios bsod crash desktop driver drivers error ethernet excel freeze gaming gpu hard drive hardware hdmi internet laptop malware memory modem monitor motherboard netgear network printer problem ram registry router slow software sound trojan ubuntu 11.10 uninstall usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Software & Hardware > Business Applications >
Excel formular or macro to chnage text between values

Reply  
Thread Tools
ajrobson's Avatar
Member with 254 posts.
 
Join Date: Aug 2006
29-May-2009, 03:02 PM #1
Question Excel formular or macro to chnage text between values
Can anybody help me with this? I have data in cell A1 I want A2 to have a different piece of text inside it depending on the range of A1.

For example:
if A1 was between 0-20 A2 should say Low
If A1 was between 21-50 A2 should say Medium
etc

Is there an easy way to do this equation?

Thank you for any help.
pizzaboy's Avatar
Junior Member with 20 posts.
 
Join Date: Apr 2008
Experience: Intermediate
30-May-2009, 08:34 PM #2
=if($a1<=20,"Low",if($a1<=50,"Medium",""))

This formula assumes that A1 is always greater than 0, otherwise it gets more complicated, let me know if thats the case though. Also, inside the "", you can place text if none of the conditions are met.

As you can see it can get a little messy to read, so you could name the table column and reference the column in the formula or if its not part of a table name the particular cell.

In Excel 2007, it's easier to refer to columns using [] without the need to name them (this is a lot easier to maintain and read should you need to change column references in the future).
Reply

Tags
between values, data, excel, formular, macro

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 03:33 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.