#1   Report Post  
Posted to microsoft.public.excel.newusers
H H is offline
external usenet poster
 
Posts: 57
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   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,059
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% +


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
LOOKUP FUNCTION? (LOOKUP VALUE BEING A TIME RENERATED FROM A FORMU JCC Excel Discussion (Misc queries) 5 June 26th 09 09:15 PM
Lookup looks to the prior column if zero appears in the lookup col kenbquik Excel Discussion (Misc queries) 2 March 12th 09 03:41 AM
Get Cell Address From Lookup (Alternative to Lookup) ryguy7272 Excel Worksheet Functions 12 September 28th 07 10:36 PM
Join 2 Lists - Lookup value in 1 list & use result in 2nd lookup JBush Excel Worksheet Functions 3 January 3rd 07 11:14 PM
Sumproduct - Condition based on lookup of a Lookup Hari Excel Discussion (Misc queries) 12 May 31st 06 09:28 AM


All times are GMT +1. The time now is 12:31 AM.

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"