#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Multiple "If"

I am trying to write a formula that will multiple the numbers between 4 and
10 by $2.43 and add that to the numbers between 11 and 100 that is multiplied
by $1.75.
Example: A1 = 61 and the total in B1 would be 4 thru 10 multilplied by 2.43
and then added to 11 thru 61 that has been multiplied by 1.75
--
LindaM
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Multiple "If"

Do you mean that you want 4*2.43 + 5*2.43 + 6*2.43 + 7*2.43 + 8*2.43 +
9*2.43 + 10*2.43 + 11*1.75 + 12*1.75 +13*1.75 etc up to 61*1.75 ? (and
whatever for ?) Or, could it be that you want (10-4)*2.43 +
(61-11)*1.75 ?

Please explain.

Pete

On Jul 22, 10:53*am, LindaM wrote:
I am trying to write a formula that will multiple the numbers between 4 and
10 by $2.43 and add that to the numbers between 11 and 100 that is multiplied
by $1.75.
Example: A1 = 61 and the total in B1 would be 4 thru 10 multilplied by 2.43
and then added to 11 thru 61 that has been multiplied by 1.75
--
LindaM


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Multiple "If"

One way would be this as an array formula (entered with Control shift
Enter), but there are other ways which may well be simpler.

=2.43*SUM(ROW(A1:INDIRECT("A"&MIN(10,A1))))+1.75*S UM(ROW(A11:INDIRECT("A"&A1)))*(A1=11)

I'm guessing that you probably want to count only as far as your A1, even if
that is below 11.
--
David Biddulph

"LindaM" wrote in message
...
I am trying to write a formula that will multiple the numbers between 4 and
10 by $2.43 and add that to the numbers between 11 and 100 that is
multiplied
by $1.75.
Example: A1 = 61 and the total in B1 would be 4 thru 10 multilplied by
2.43
and then added to 11 thru 61 that has been multiplied by 1.75
--
LindaM



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default Multiple "If"

=SUMPRODUCT(ROW(INDIRECT("4:10"))*2.73)+SUMPRODUCT (ROW(INDIRECT("11:"&A1)))*1.75

--
__________________________________
HTH

Bob

"LindaM" wrote in message
...
I am trying to write a formula that will multiple the numbers between 4 and
10 by $2.43 and add that to the numbers between 11 and 100 that is
multiplied
by $1.75.
Example: A1 = 61 and the total in B1 would be 4 thru 10 multilplied by
2.43
and then added to 11 thru 61 that has been multiplied by 1.75
--
LindaM



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default Multiple "If"

Typo

=SUMPRODUCT(ROW(INDIRECT("4:10"))*2.43)+SUMPRODUCT (ROW(INDIRECT("11:"&A1)))*1.75

--
__________________________________
HTH

Bob

"Bob Phillips" wrote in message
...
=SUMPRODUCT(ROW(INDIRECT("4:10"))*2.73)+SUMPRODUCT (ROW(INDIRECT("11:"&A1)))*1.75

--
__________________________________
HTH

Bob

"LindaM" wrote in message
...
I am trying to write a formula that will multiple the numbers between 4
and
10 by $2.43 and add that to the numbers between 11 and 100 that is
multiplied
by $1.75.
Example: A1 = 61 and the total in B1 would be 4 thru 10 multilplied by
2.43
and then added to 11 thru 61 that has been multiplied by 1.75
--
LindaM







  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Multiple "If"

I mean the numbers between 4 and 10 which is 7*2.43 added to the numbers
between 11 and the total count up to 100 *1.75. If the total number is 61 it
would be 4-10 = 7 * 2.43 + 11-61=51*1.75. The total amount should equal
$106.25.

--
LindaM


"Pete_UK" wrote:

Do you mean that you want 4*2.43 + 5*2.43 + 6*2.43 + 7*2.43 + 8*2.43 +
9*2.43 + 10*2.43 + 11*1.75 + 12*1.75 +13*1.75 etc up to 61*1.75 ? (and
whatever for ?) Or, could it be that you want (10-4)*2.43 +
(61-11)*1.75 ?

Please explain.

Pete

On Jul 22, 10:53 am, LindaM wrote:
I am trying to write a formula that will multiple the numbers between 4 and
10 by $2.43 and add that to the numbers between 11 and 100 that is multiplied
by $1.75.
Example: A1 = 61 and the total in B1 would be 4 thru 10 multilplied by 2.43
and then added to 11 thru 61 that has been multiplied by 1.75
--
LindaM



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Multiple "If"

Hi,

With 61 in A1 try this, or have I misunderstood?

=MAX(0,(MAX(0,(A1-10)*1.75))+(A1-MAX(0,(A1-10))-3)*2.43)

Mike

"LindaM" wrote:

I mean the numbers between 4 and 10 which is 7*2.43 added to the numbers
between 11 and the total count up to 100 *1.75. If the total number is 61 it
would be 4-10 = 7 * 2.43 + 11-61=51*1.75. The total amount should equal
$106.25.

--
LindaM


"Pete_UK" wrote:

Do you mean that you want 4*2.43 + 5*2.43 + 6*2.43 + 7*2.43 + 8*2.43 +
9*2.43 + 10*2.43 + 11*1.75 + 12*1.75 +13*1.75 etc up to 61*1.75 ? (and
whatever for ?) Or, could it be that you want (10-4)*2.43 +
(61-11)*1.75 ?

Please explain.

Pete

On Jul 22, 10:53 am, LindaM wrote:
I am trying to write a formula that will multiple the numbers between 4 and
10 by $2.43 and add that to the numbers between 11 and 100 that is multiplied
by $1.75.
Example: A1 = 61 and the total in B1 would be 4 thru 10 multilplied by 2.43
and then added to 11 thru 61 that has been multiplied by 1.75
--
LindaM



  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Multiple "If"

Sorry, should have been
=2.43*SUM(ROW(A4:INDIRECT("A"&MIN(10,A1))))+1.75*S UM(ROW(A11:INDIRECT("A"&A1)))*(A1=11)

I'd missed the fact that you were starting from 4, not from 1.

You may want to look at how it behaves, and how you want it to behave, if A1
is less than 4.
--
David Biddulph

"David Biddulph" <groups [at] biddulph.org.uk wrote in message
...
One way would be this as an array formula (entered with Control shift
Enter), but there are other ways which may well be simpler.

=2.43*SUM(ROW(A1:INDIRECT("A"&MIN(10,A1))))+1.75*S UM(ROW(A11:INDIRECT("A"&A1)))*(A1=11)

I'm guessing that you probably want to count only as far as your A1, even
if that is below 11.
--
David Biddulph

"LindaM" wrote in message
...
I am trying to write a formula that will multiple the numbers between 4
and
10 by $2.43 and add that to the numbers between 11 and 100 that is
multiplied
by $1.75.
Example: A1 = 61 and the total in B1 would be 4 thru 10 multilplied by
2.43
and then added to 11 thru 61 that has been multiplied by 1.75
--
LindaM





  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Multiple "If"

In that case, Linda, you can try this:

=IF(A1<4,0,IF(A1<11,(A1-3)*2.43,7*2.43+(A1-10)*1.75))

with 61 in cell A1.

Hope this helps.

Pete

On Jul 22, 11:53*am, LindaM wrote:
I mean the numbers between 4 and 10 which is 7*2.43 added to the numbers
between 11 and the total count up to 100 *1.75. *If the total number is 61 it
would be 4-10 = 7 * 2.43 + 11-61=51*1.75. *The total amount should equal
$106.25.

--
LindaM



"Pete_UK" wrote:
Do you mean that you want 4*2.43 + 5*2.43 + 6*2.43 + 7*2.43 + 8*2.43 +
9*2.43 + 10*2.43 + 11*1.75 + 12*1.75 +13*1.75 etc up to 61*1.75 ? (and
whatever for ?) Or, could it be that you want (10-4)*2.43 +
(61-11)*1.75 ?


Please explain.


Pete


On Jul 22, 10:53 am, LindaM wrote:
I am trying to write a formula that will multiple the numbers between 4 and
10 by $2.43 and add that to the numbers between 11 and 100 that is multiplied
by $1.75.
Example: A1 = 61 and the total in B1 would be 4 thru 10 multilplied by 2.43
and then added to 11 thru 61 that has been multiplied by 1.75
--
LindaM- Hide quoted text -


- Show quoted text -


  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Multiple "If"

Mike you are awesome, thank you so much. I thought that you had to use "If".

--
LindaM


"Mike H" wrote:

Hi,

With 61 in A1 try this, or have I misunderstood?

=MAX(0,(MAX(0,(A1-10)*1.75))+(A1-MAX(0,(A1-10))-3)*2.43)

Mike

"LindaM" wrote:

I mean the numbers between 4 and 10 which is 7*2.43 added to the numbers
between 11 and the total count up to 100 *1.75. If the total number is 61 it
would be 4-10 = 7 * 2.43 + 11-61=51*1.75. The total amount should equal
$106.25.

--
LindaM


"Pete_UK" wrote:

Do you mean that you want 4*2.43 + 5*2.43 + 6*2.43 + 7*2.43 + 8*2.43 +
9*2.43 + 10*2.43 + 11*1.75 + 12*1.75 +13*1.75 etc up to 61*1.75 ? (and
whatever for ?) Or, could it be that you want (10-4)*2.43 +
(61-11)*1.75 ?

Please explain.

Pete

On Jul 22, 10:53 am, LindaM wrote:
I am trying to write a formula that will multiple the numbers between 4 and
10 by $2.43 and add that to the numbers between 11 and 100 that is multiplied
by $1.75.
Example: A1 = 61 and the total in B1 would be 4 thru 10 multilplied by 2.43
and then added to 11 thru 61 that has been multiplied by 1.75
--
LindaM


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
Multiple "source" workbooks linked to single "destination" workboo DAVEJAY Excel Worksheet Functions 1 September 17th 07 05:33 PM
Combining formulas, "and" & "or" to verify content of multiple cel Shu of AZ Excel Discussion (Misc queries) 15 October 15th 06 11:22 PM
"Control" plus "click" doesn't allow me to select multiple cells Ken Cooke New Users to Excel 0 September 25th 06 04:46 PM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM
freeze window creates multiple "views" suffixed with ":n" dgaex001 Excel Discussion (Misc queries) 5 March 22nd 06 05:28 PM


All times are GMT +1. The time now is 06:05 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"