Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Jim Jim is offline
external usenet poster
 
Posts: 615
Default More than 1 either or calulations

Hello, I'm a bit stuck as I have to find a formula to apply more than one
rule into the smae formula that i am unsure of a would appreaciate some
assistance, my prolem is as follows:
I have a table of information
1 A B
2 Date Weight
3 October 301
4 October 120
5 December 156
6 October 410
7 December 522

With this I need to find a formula that will apply the following rules for
October only:

-If the weight in column B is below 167 then a flat rate per line of 25 is
applied but if the weight is over 167 then the weight is to be multipied by
0.15

then that is to be added to the rule (using the same data)

-If the weight in column B is below 400 then a flat rate per line of 20 is
applied but if the weight is over 400 then the weight is to be multipied by
0.05

plus

- the number of 'Octobers' * 14

So for each caluation there would be 2 either or calulations that would be
added togetherand then added to a (flat number figure, number of Octobers,
mulitpied by 14) all from the listed table. I am not sure how to combine a
countif formula with one that would calulate the either or number that i am
looking for.

Can any one help?


--
Jim
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default More than 1 either or calulations

I'm a bit confused. Your first October weight is 301, which is more
than 165 so would have a factor of 0.15 applied to it (i.e. 45.15).
However, it is also less than 400, so it should be taken as a flat
value of 20.

So, what is it to be?

Pete

On Dec 7, 3:28*pm, Jim wrote:
*Hello, I'm a bit stuck as I have to find a formula to apply more than one
rule into the smae formula that i am unsure of a would appreaciate some
assistance, my prolem is as follows:
I have a table of information
1 * * A * * * * * * * * * * * * * *B
2 *Date * * * * Weight
3 *October * * *301
4 *October * * * * * * * * * * *120
5 *December * * * * * * *156
6 *October * * *410
7 *December * * 522

With this I need to find a formula that will apply the following rules for
October only:

-If the weight in column B is below 167 then a flat rate per line of 25 is
applied but if the weight is over 167 then the weight is to be multipied by
0.15

then that is to be added to the rule (using the same data)

-If the weight in column B is below 400 then a flat rate per line of 20 is
applied but if the weight is over 400 then the weight is to be multipied by
0.05

plus

- the number of 'Octobers' * 14

So for each caluation there would be 2 either or calulations that would be
added togetherand then added to a (flat number figure, number of Octobers,
mulitpied by 14) all from the listed table. I am not sure how to combine a
countif formula with one that would calulate the either or number that i am
looking for.

Can any one help?

--
Jim


  #3   Report Post  
Posted to microsoft.public.excel.misc
Jim Jim is offline
external usenet poster
 
Posts: 615
Default More than 1 either or calulations

Pete, thanks for looking at my question.
It is both the formula should be able use both to give, for the weight 301
it would be (301*0.15 as is above 167)+(flat 20 as is over 400)+(1*14 as it
is one 'october')

but for
October 120 would be ( 1*25 as it is below 167)+(1*20 as is below
400)+(1*14 as it is one 'october')

and

October 410 would be (410*0.15 as it is over 167)+(410*0.05 as it is over
400)+(1*14 as it is one 'october')

Does that clarify it any better? Sorry i haven't explained myself very well
as i am not too good at translating the information in to Excel lingo. Hope
this helps clarify?

--
Jim


"Pete_UK" wrote:

I'm a bit confused. Your first October weight is 301, which is more
than 165 so would have a factor of 0.15 applied to it (i.e. 45.15).
However, it is also less than 400, so it should be taken as a flat
value of 20.

So, what is it to be?

Pete

On Dec 7, 3:28 pm, Jim wrote:
Hello, I'm a bit stuck as I have to find a formula to apply more than one
rule into the smae formula that i am unsure of a would appreaciate some
assistance, my prolem is as follows:
I have a table of information
1 A B
2 Date Weight
3 October 301
4 October 120
5 December 156
6 October 410
7 December 522

With this I need to find a formula that will apply the following rules for
October only:

-If the weight in column B is below 167 then a flat rate per line of 25 is
applied but if the weight is over 167 then the weight is to be multipied by
0.15

then that is to be added to the rule (using the same data)

-If the weight in column B is below 400 then a flat rate per line of 20 is
applied but if the weight is over 400 then the weight is to be multipied by
0.05

plus

- the number of 'Octobers' * 14

So for each caluation there would be 2 either or calulations that would be
added togetherand then added to a (flat number figure, number of Octobers,
mulitpied by 14) all from the listed table. I am not sure how to combine a
countif formula with one that would calulate the either or number that i am
looking for.

Can any one help?

--
Jim


.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default More than 1 either or calulations

Okay, Jim, try this array* formula:

=SUM(IF(A3:A7="October",IF(B3:B7<167,25,0.15*B3:B7 )+IF
(B3:B7<400,20,0.05*B3:B7)+14,0))

You may need to change the ranges to suit your real data.

*An array formula needs to be committed using the key combination of
Ctrl-Shift-Enter (CSE) rather than the usual <Enter. If you do this
correctly then Excel will add curly braces { } around the formula when
viewed in the formula bar - do not type these yourself. If you need to
edit or amend the formula, you need to use CSE again.

Hope this helps.

Pete

On Dec 7, 5:05*pm, Jim wrote:
Pete, thanks for looking at my question.
It is both the formula should be able use both to give, for the weight 301
it would be (301*0.15 as is above 167)+(flat 20 as is over 400)+(1*14 as it
is one 'october')

but for
October *120 would be ( 1*25 as it is below 167)+(1*20 as is below
400)+(1*14 as it is one 'october')

and

October 410 would be (410*0.15 as it is over 167)+(410*0.05 as it is over
400)+(1*14 as it is one 'october')

Does that clarify it any better? Sorry i haven't explained myself very well
as i am not too good at translating the information in to Excel lingo. Hope
this helps clarify?

--
Jim



"Pete_UK" wrote:
I'm a bit confused. Your first October weight is 301, which is more
than 165 so would have a factor of 0.15 applied to it (i.e. 45.15).
However, it is also less than 400, so it should be taken as a flat
value of 20.


So, what is it to be?


Pete


On Dec 7, 3:28 pm, Jim wrote:
*Hello, I'm a bit stuck as I have to find a formula to apply more than one
rule into the smae formula that i am unsure of a would appreaciate some
assistance, my prolem is as follows:
I have a table of information
1 * * A * * * * * * * * * * * * * *B
2 *Date * * * * Weight
3 *October * * *301
4 *October * * * * * * * * * * *120
5 *December * * * * * * *156
6 *October * * *410
7 *December * * 522


With this I need to find a formula that will apply the following rules for
October only:


-If the weight in column B is below 167 then a flat rate per line of 25 is
applied but if the weight is over 167 then the weight is to be multipied by
0.15


then that is to be added to the rule (using the same data)


-If the weight in column B is below 400 then a flat rate per line of 20 is
applied but if the weight is over 400 then the weight is to be multipied by
0.05


plus


- the number of 'Octobers' * 14


So for each caluation there would be 2 either or calulations that would be
added togetherand then added to a (flat number figure, number of Octobers,
mulitpied by 14) all from the listed table. I am not sure how to combine a
countif formula with one that would calulate the either or number that i am
looking for.


Can any one help?


--
Jim


.- Hide quoted text -


- Show quoted text -


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 135
Default More than 1 either or calulations

Jim -

If you want to sum the three conditional parts, then here is what it looks
like:

=IF(B2<167,25,B2*0.15)+IF(B2<400,20,B2*0.05)+IF(A2 ="October",14,0)

I am not sure about where the 'number of Octobers' comes from, so I just
added the third piece to calculate as 14 if the month is October, and 0 if
not.

Is that what you are asking for?

--
Daryl S


"Jim" wrote:

Pete, thanks for looking at my question.
It is both the formula should be able use both to give, for the weight 301
it would be (301*0.15 as is above 167)+(flat 20 as is over 400)+(1*14 as it
is one 'october')

but for
October 120 would be ( 1*25 as it is below 167)+(1*20 as is below
400)+(1*14 as it is one 'october')

and

October 410 would be (410*0.15 as it is over 167)+(410*0.05 as it is over
400)+(1*14 as it is one 'october')

Does that clarify it any better? Sorry i haven't explained myself very well
as i am not too good at translating the information in to Excel lingo. Hope
this helps clarify?

--
Jim


"Pete_UK" wrote:

I'm a bit confused. Your first October weight is 301, which is more
than 165 so would have a factor of 0.15 applied to it (i.e. 45.15).
However, it is also less than 400, so it should be taken as a flat
value of 20.

So, what is it to be?

Pete

On Dec 7, 3:28 pm, Jim wrote:
Hello, I'm a bit stuck as I have to find a formula to apply more than one
rule into the smae formula that i am unsure of a would appreaciate some
assistance, my prolem is as follows:
I have a table of information
1 A B
2 Date Weight
3 October 301
4 October 120
5 December 156
6 October 410
7 December 522

With this I need to find a formula that will apply the following rules for
October only:

-If the weight in column B is below 167 then a flat rate per line of 25 is
applied but if the weight is over 167 then the weight is to be multipied by
0.15

then that is to be added to the rule (using the same data)

-If the weight in column B is below 400 then a flat rate per line of 20 is
applied but if the weight is over 400 then the weight is to be multipied by
0.05

plus

- the number of 'Octobers' * 14

So for each caluation there would be 2 either or calulations that would be
added togetherand then added to a (flat number figure, number of Octobers,
mulitpied by 14) all from the listed table. I am not sure how to combine a
countif formula with one that would calulate the either or number that i am
looking for.

Can any one help?

--
Jim


.



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
Timesheet Overtime Calulations - Excel 2002 Deborah Excel Discussion (Misc queries) 5 March 10th 08 08:18 PM
How do I use the number of minutes as a value in calulations? jetmendoza Excel Discussion (Misc queries) 3 April 20th 06 06:55 PM
How can I speed up calulations Andrew C Excel Discussion (Misc queries) 3 September 22nd 05 09:50 PM
when adding cells resulting from tax calulations they do not equa. Marty Excel Discussion (Misc queries) 1 March 14th 05 02:38 PM


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