Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default How do I identify a number in a range and then multiply?

Under tight deadline - please help!!!!!

I have developed an excel spreadsheet to cost out different options based on
the number of groups selected. The price per group goes down the more groups
that are selected based on a predetermined range. I need to figure out how
to get the number of groups to multiply by the correct price for that range.

Here are my ranges:
<20
21-39
40-59
60-79
80-99
100


I got the 100 group to work by using:
=IF(D799,(D7*'fee schedule'!A28)
but can't get past that.

Please help if you can!
Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default How do I identify a number in a range and then multiply?


check out select case instead of if then

http://www.ozgrid.com/VBA/select-case.htm
--


Gary


"Leigh" wrote in message
...
Under tight deadline - please help!!!!!

I have developed an excel spreadsheet to cost out different options based on
the number of groups selected. The price per group goes down the more groups
that are selected based on a predetermined range. I need to figure out how
to get the number of groups to multiply by the correct price for that range.

Here are my ranges:
<20
21-39
40-59
60-79
80-99
100


I got the 100 group to work by using:
=IF(D799,(D7*'fee schedule'!A28)
but can't get past that.

Please help if you can!
Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default How do I identify a number in a range and then multiply?

One way, set up your table like this (let's call it FeeSchedule)

Range Fee
0 1
21 2
40 3
60 4
80 5
100 6


=VLookup(D7, FeeSchedule, 2)*D7


"Leigh" wrote:

Under tight deadline - please help!!!!!

I have developed an excel spreadsheet to cost out different options based on
the number of groups selected. The price per group goes down the more groups
that are selected based on a predetermined range. I need to figure out how
to get the number of groups to multiply by the correct price for that range.

Here are my ranges:
<20
21-39
40-59
60-79
80-99
100


I got the 100 group to work by using:
=IF(D799,(D7*'fee schedule'!A28)
but can't get past that.

Please help if you can!
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
HOW DO I MULTIPLY BY A VALUE NOT MORE THAN A CERTAIN NUMBER Mnas Excel Discussion (Misc queries) 7 March 10th 08 12:59 AM
Identify the column of a range by letter instead of number Peter Rooney Excel Programming 9 January 10th 06 10:29 AM
How do I multiply the whole sheet by a number Ed1939 Excel Discussion (Misc queries) 2 August 28th 05 08:18 PM
multiply a row by a certain number? multiply a row by a certain number? Excel Discussion (Misc queries) 2 March 7th 05 09:18 PM
how can i multiply a number in each cell? jay Excel Discussion (Misc queries) 3 February 3rd 05 04:52 PM


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