A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Lookup ?



 
 
Thread Tools Display Modes
  #1  
Old July 23rd, 2009, 10:09 PM posted to microsoft.public.excel.newusers
H
external usenet poster
 
Posts: 66
Default Lookup ?

is there a lookup function that I can use to categorize a column

In Column Q I have a percentage for example
ColumnQ ColumnR
22% 21-30%
4% 0-10%

So in Column R I need a formula that looks in column Q and then give R a value
of either
0-10%
11-20%
21-30%
31% +

  #2  
Old July 23rd, 2009, 11:05 PM posted to microsoft.public.excel.newusers
joeu2004
external usenet poster
 
Posts: 1,748
Default Lookup ?

"H" wrote:
is there a lookup function that I can use to categorize a column


If the values in column Q are numeric (i.e. not text), then:

=LOOKUP(Q1, {0,0.11,0.21,0.31}, {"0-10%","11-20%","21-30%","31%+"})

If the values in column Q are text (or some numeric and some text), then
change Q1 to --Q1 in the LOOKUP formula above.

Note that the percentages in the 2nd argument must be entered as decimal
fractions, not 0%, 11%, etc.


----- original message -----

"H" wrote in message
...
is there a lookup function that I can use to categorize a column

In Column Q I have a percentage for example
ColumnQ ColumnR
22% 21-30%
4% 0-10%

So in Column R I need a formula that looks in column Q and then give R a
value
of either
0-10%
11-20%
21-30%
31% +


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:15 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.