Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default Creating Ranges Easily

Hi there,

I was wondering if you guys can come up with a easier and quicker solution
to work with ranges in Excel.
For example:

I need to classify prices ranges.
PRICE
$2.50
$1.72
$12.00
$4.50

RANGES
<$1.00
$1.00 AND <$5.00
$5.00 AND <$10.00
$10.00


I can do this, using IFs but if you dramatically changes the ranges and
include many, it's very time consuming.

How can I do this on a more automated fashion?

Btw, Excel could provide some wizard tool to create those ranges as it has
for subtotals, pivot tables, etc.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default Creating Ranges Easily

Try something like this:

Enter this list in A1:B4
0____<1
1____1 to 4.99
5____5 to 9.99
10__10 and over

Then
C1: (a price)

This formula returns the range category for that price:
D1: =VLOOKUP(C1,A1:B4,2,1)

That formula translates into:
Find the price (C1)
in the left column of the lookup range A1:B4
Then return the corresponding item from the 2nd column

The last function parameter (1) indicates:
....If no exact match use the largest value that is smaller than the price

See VLOOKUP in Excel Help.
Post back if you have more questions.

Is that something you can work with?
--------------------------

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)
"Guilherme Loretti" wrote in
message ...
Hi there,

I was wondering if you guys can come up with a easier and quicker solution
to work with ranges in Excel.
For example:

I need to classify prices ranges.
PRICE
$2.50
$1.72
$12.00
$4.50

RANGES
<$1.00
$1.00 AND <$5.00
$5.00 AND <$10.00
$10.00


I can do this, using IFs but if you dramatically changes the ranges and
include many, it's very time consuming.

How can I do this on a more automated fashion?

Btw, Excel could provide some wizard tool to create those ranges as it has
for subtotals, pivot tables, etc.

Thanks



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
Creating ranges in closed workbooks without #REF errors Conor Excel Discussion (Misc queries) 0 June 26th 07 04:22 PM
Creating sheet specific names ranges Barb Reinhardt Excel Discussion (Misc queries) 1 October 27th 06 08:12 PM
Creating a list (data validation) fromt wo different source ranges tony Excel Discussion (Misc queries) 1 August 1st 06 03:40 AM
creating a pivot table w/ ranges from 2 worksheets tl Excel Discussion (Misc queries) 1 August 20th 05 07:16 PM
Creating drop down list for multiple cell ranges Aaron Saulisberry Excel Discussion (Misc queries) 2 May 1st 05 06:47 PM


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