English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have a conditional statement that's too long for Excel's logical function limit of eight.

A simplified example of the formula I'm trying to write is the report card example. A score between 90 and 100 is an A, between 80 and 89 is a B, between 70 and 79 is a C, etc.

Only I've got 19 of these different ranges that I'd like to apply to one cell. So say I enter a raw number in cell A1. I'd like B1 for example to contain the formula and display the converted data point.

I've read that using Named Ranges is the way to get around the 8 function limit which is what I need to do. Here is a site that describes it: http://www.cpearson.com/excel/nested.htm

But I just can't seem to get it to work. Can someone help me out or point me in the right direction? Thank you.

2007-03-27 14:57:29 · 3 answers · asked by man 1 in Computers & Internet Software

3 answers

I can help here, but I need you to send me more details on this
It seams you need something I am doing for 6 years

mail me here in Y! Answers

YES

I am the VBAXLMan here

2007-03-28 02:10:59 · answer #1 · answered by Anonymous · 0 0

A "workaround" solution might be to create a cell for each condition such that the cell is populated only if THAT ONE condition is true and is left blank if not.

Then you can scan those 19 cells for a value (use concatenate?) and result is your desired value.

So:
a1 you enter 43
b1: =if(a1>=90,"A","")
c1: =if(a1<90,if(a1>=80,"B",""),"")

etc across the cells (yes you can combine those)

Then in t1: =concatenate(b1,c1,....) and the value in t1 should be what you want (?)

clunky, yes. but gets you through Excel's frustrating limitations

Now... what can be done about only having 3 conditional formats?!

2007-03-29 14:22:27 · answer #2 · answered by cat n 3 · 0 0

The example you give can be done using simple vlookups.

The next thing you want to learn is to use VBA to create user defined functions. They are not difficult to master and easier to debug errors.

2007-03-28 00:18:20 · answer #3 · answered by unnga 6 · 0 1

fedest.com, questions and answers