Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default Struggling for a formula

Hi

I've tried this and tried this and just can't work out how to do it.
And advice would be hugely appreciated.

Is there an easy way of having the following decided in a single cell:

K16 contains age, rangename cltage
K17 contains partner's age, if there is one, rangename ptnrage

I need a value in a third cell, P17 which conforms to the following
rules:

both aged under 18 = £70.70
at least one aged 18+ but both under 60 = £92.82
at least one aged 60+ but both under 65 = £181.70
at least one aged 65+ = £207.00

Thanks in advance

Steve

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Struggling for a formula

Maybe:-

=IF(AND(cltage<18,ptnrage<18),70.7,IF(AND(OR(cltag e18,ptnrage18),cltage<60,ptnrage<60),92.82,IF(AN D(OR(cltage60,ptnrage60),cltage<65,ptnrage<65),1 81.7,207)))


Format cell as currency.

Mike

"Steve" wrote:

Hi

I've tried this and tried this and just can't work out how to do it.
And advice would be hugely appreciated.

Is there an easy way of having the following decided in a single cell:

K16 contains age, rangename cltage
K17 contains partner's age, if there is one, rangename ptnrage

I need a value in a third cell, P17 which conforms to the following
rules:

both aged under 18 = £70.70
at least one aged 18+ but both under 60 = £92.82
at least one aged 60+ but both under 65 = £181.70
at least one aged 65+ = £207.00

Thanks in advance

Steve


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Struggling for a formula

Hi,

Forgot to mention that while this satisifes the table you posted it will
fail when (say) both are 18 so you need to decide when and where to change
the to =

you might consider this modification to your logic:-

=IF(AND(cltage<=18,ptnrage<=18),70.7,IF(AND(OR(clt age18,ptnrage18),cltage<=60,ptnrage<=60),92.82,I F(AND(OR(cltage60,ptnrage60),cltage<=65,ptnrage< =65),181.7,207)))

Mike
"Mike H" wrote:

Maybe:-

=IF(AND(cltage<18,ptnrage<18),70.7,IF(AND(OR(cltag e18,ptnrage18),cltage<60,ptnrage<60),92.82,IF(AN D(OR(cltage60,ptnrage60),cltage<65,ptnrage<65),1 81.7,207)))


Format cell as currency.

Mike

"Steve" wrote:

Hi

I've tried this and tried this and just can't work out how to do it.
And advice would be hugely appreciated.

Is there an easy way of having the following decided in a single cell:

K16 contains age, rangename cltage
K17 contains partner's age, if there is one, rangename ptnrage

I need a value in a third cell, P17 which conforms to the following
rules:

both aged under 18 = £70.70
at least one aged 18+ but both under 60 = £92.82
at least one aged 60+ but both under 65 = £181.70
at least one aged 65+ = £207.00

Thanks in advance

Steve


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default Struggling for a formula

Mike H wrote:

you might consider this modification to your logic:-

=IF(AND(cltage<=18,ptnrage<=18),70.7,IF(AND(OR(clt age18,ptnrage18),cltage-<=60,ptnrage<=60),92.82,IF(AND(OR(cltage60,ptnrag e60),cltage<=65,ptnrage<-=65),181.7,207)))


That's great; thanks Mike.
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
Struggling with IF formula...is it even the right one for me? Corradus New Users to Excel 2 April 12th 07 02:44 AM
Struggling to plot where I want Scooby Jones Charts and Charting in Excel 3 October 31st 06 12:46 PM
Struggling IF value Rebecca Excel Discussion (Misc queries) 5 April 6th 06 09:52 PM
Struggling for a solution Baz Excel Worksheet Functions 2 November 21st 05 05:26 PM
Help, I'm Struggling! Fybo New Users to Excel 1 March 4th 05 07:57 PM


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