Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Scudo
 
Posts: n/a
Default help with formula please

I want to change how this works, I messed around a little but no joy.

In cells C6,D6,E6 I have words date, month, year, In cells G6,H6,I6 I
have words date, month, year,
In cells C7,D7,E7 Date is entered dd/mm/yy, In cells G7,H7,I7
Date is entered dd/mm/yy

The idea is a start date and a finish date, It is based on renting a
property and will be either one week or two weeks

If the dates equal one week only then I wish cell M7 to print £150
If the dates equal 2 weeks then cell M8 to equal £100

Thus giving a combined total of £250 for two weeks rental. (which is later
added together in another cell)

The formula at the moment in cell M7 is
=CHOOSE(MATCH(D7,{0;5;7;9},1),"",150,200,"")
The formula in cell M8 at the moment is
=CHOOSE(MATCH(H7,{0;5;7;11},1),"",125,150,"")
I previously wanted the formula to work on a `depending on month`basis

I hope this is clear.
thanks






  #2   Report Post  
Anne Troy
 
Posts: n/a
Default

Scudo: Put each date all in one cell. Excel can calc dates, but not if
they're in all those different cells. So, if your start date was C7 and your
end date was G7, you could have:
=IF(G7-C77,100,150) and have that cell formatted as £.

*******************
~Anne Troy

www.OfficeArticles.com
www.MyExpertsOnline.com


"Scudo" wrote in message
k...
I want to change how this works, I messed around a little but no joy.

In cells C6,D6,E6 I have words date, month, year, In cells G6,H6,I6 I
have words date, month, year,
In cells C7,D7,E7 Date is entered dd/mm/yy, In cells G7,H7,I7
Date is entered dd/mm/yy

The idea is a start date and a finish date, It is based on renting a
property and will be either one week or two weeks

If the dates equal one week only then I wish cell M7 to print £150
If the dates equal 2 weeks then cell M8 to equal £100

Thus giving a combined total of £250 for two weeks rental. (which is later
added together in another cell)

The formula at the moment in cell M7 is
=CHOOSE(MATCH(D7,{0;5;7;9},1),"",150,200,"")
The formula in cell M8 at the moment is
=CHOOSE(MATCH(H7,{0;5;7;11},1),"",125,150,"")
I previously wanted the formula to work on a `depending on month`basis

I hope this is clear.
thanks








  #3   Report Post  
JE McGimpsey
 
Posts: n/a
Default

Your problem statement is a bit ambiguous. You say M7 should equal 150
if one week only, and M8 should equal 100 if two weeks. But what should
M7 equal if two weeks?

Perhaps this will work:

M7: 150
M8: =100 * ((DATE(E7,D7,C7)-DATE(E6,D6,C6))7)




In article ,
"Scudo" wrote:

I want to change how this works, I messed around a little but no joy.

In cells C6,D6,E6 I have words date, month, year, In cells G6,H6,I6 I
have words date, month, year,
In cells C7,D7,E7 Date is entered dd/mm/yy, In cells G7,H7,I7
Date is entered dd/mm/yy

The idea is a start date and a finish date, It is based on renting a
property and will be either one week or two weeks

If the dates equal one week only then I wish cell M7 to print £150
If the dates equal 2 weeks then cell M8 to equal £100

Thus giving a combined total of £250 for two weeks rental. (which is later
added together in another cell)

The formula at the moment in cell M7 is
=CHOOSE(MATCH(D7,{0;5;7;9},1),"",150,200,"")
The formula in cell M8 at the moment is
=CHOOSE(MATCH(H7,{0;5;7;11},1),"",125,150,"")
I previously wanted the formula to work on a `depending on month`basis

I hope this is clear.
thanks

  #4   Report Post  
Scudo
 
Posts: n/a
Default

M18 is a total of M7 and M8 giving the total for the 2 weeks. I charge
£150 for one week and £250 for 2 weeks rental, a discount of £50 I (through
lack of computing skills) find it easier this way, the sum total is the
same.
I will give your formula a try.

thanks

"JE McGimpsey" wrote in message
...
Your problem statement is a bit ambiguous. You say M7 should equal 150
if one week only, and M8 should equal 100 if two weeks. But what should
M7 equal if two weeks?

Perhaps this will work:

M7: 150
M8: =100 * ((DATE(E7,D7,C7)-DATE(E6,D6,C6))7)




In article ,
"Scudo" wrote:

I want to change how this works, I messed around a little but no joy.

In cells C6,D6,E6 I have words date, month, year, In cells G6,H6,I6 I
have words date, month, year,
In cells C7,D7,E7 Date is entered dd/mm/yy, In cells G7,H7,I7
Date is entered dd/mm/yy

The idea is a start date and a finish date, It is based on renting a
property and will be either one week or two weeks

If the dates equal one week only then I wish cell M7 to print £150
If the dates equal 2 weeks then cell M8 to equal £100

Thus giving a combined total of £250 for two weeks rental. (which is

later
added together in another cell)

The formula at the moment in cell M7 is
=CHOOSE(MATCH(D7,{0;5;7;9},1),"",150,200,"")
The formula in cell M8 at the moment is
=CHOOSE(MATCH(H7,{0;5;7;11},1),"",125,150,"")
I previously wanted the formula to work on a `depending on month`basis

I hope this is clear.
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
referencing named formula using INDIRECT function [email protected] Excel Worksheet Functions 19 May 11th 05 09:48 AM
Simplify formula Luke Excel Worksheet Functions 37 May 6th 05 07:21 AM
put formula results into a different cell if it is empty PutFormula Excel Worksheet Functions 2 February 11th 05 03:31 AM
how do i write a formula and keep in in formula form, so it DOESN. norcalchick2207 Excel Discussion (Misc queries) 2 February 4th 05 08:38 PM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


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