Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Calculate by Date
I need to make a formula that will multiply an amount in a cell by 25% if the
date in that row is within 6 months of todays date or multiply by 15% if over 6 months. Thanks for all your help! |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Calculate by Date
.... misread your posting ....
=IF(MONTH(A1)=MONTH(TODAY())-6,B1*0.25,B1*0.15) "Toppers" wrote: =IF(MONTH(A1)=MONTH(TODAY())-6,B1*1.25,B1*1.15) Date in A1 B1= value to be updated (Depends how you define 6 months!) HTH "gregatvrm" wrote: I need to make a formula that will multiply an amount in a cell by 25% if the date in that row is within 6 months of todays date or multiply by 15% if over 6 months. Thanks for all your help! |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Calculate by Date
Six months past from todays date is correct, if it is off by a day it won't
matter. The third post from Toppers works except if I change the date in A1 the amount for B1 stays the same. When using Dukes code it askes for #NAME. What could I be Doing wrong? "Duke Carey" wrote: what do you mean by 6 months? Earlier than the same day in the month 6 months earlier, i.e., for today that means 6 months ago was 2/16/07, even tho that was only 181 days ago. Or do you mean 182.5 days ago, i.e., half of 365 days. Also, what if last week the calculation yielded 25%, but when you opened it today the passage of time changed it to 15%. Will that re-calculated & changed result screw you up? This will calculate the date 6 months ago - 2/16/07 for today - and compare it to your other date. =if(DATE(YEAR(TODAY()),MONTH(TODAY())-6,DAY(TODAY()))<=comparison date,.25,.15)*some value "gregatvrm" wrote: I need to make a formula that will multiply an amount in a cell by 25% if the date in that row is within 6 months of todays date or multiply by 15% if over 6 months. Thanks for all your help! |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Calculate by Date
=IF(MONTH(A1)=MONTH(TODAY())-6,B1*1.25,B1*1.15)
Date in A1 B1= value to be updated (Depends how you define 6 months!) HTH "gregatvrm" wrote: I need to make a formula that will multiply an amount in a cell by 25% if the date in that row is within 6 months of todays date or multiply by 15% if over 6 months. Thanks for all your help! |
#5
Posted to microsoft.public.excel.misc
|
|||
|
|||
Calculate by Date
Ignore both postings .... brain dead again!
"Toppers" wrote: ... misread your posting .... =IF(MONTH(A1)=MONTH(TODAY())-6,B1*0.25,B1*0.15) "Toppers" wrote: =IF(MONTH(A1)=MONTH(TODAY())-6,B1*1.25,B1*1.15) Date in A1 B1= value to be updated (Depends how you define 6 months!) HTH "gregatvrm" wrote: I need to make a formula that will multiply an amount in a cell by 25% if the date in that row is within 6 months of todays date or multiply by 15% if over 6 months. Thanks for all your help! |
#6
Posted to microsoft.public.excel.misc
|
|||
|
|||
Calculate by Date
try (again!)
=IF(DATE(YEAR(A1),MONTH(A1)+6,DAY(TODAY()))=TODAY (),B1*0.25,B1*0.15) "gregatvrm" wrote: Six months past from todays date is correct, if it is off by a day it won't matter. The third post from Toppers works except if I change the date in A1 the amount for B1 stays the same. When using Dukes code it askes for #NAME. What could I be Doing wrong? "Duke Carey" wrote: what do you mean by 6 months? Earlier than the same day in the month 6 months earlier, i.e., for today that means 6 months ago was 2/16/07, even tho that was only 181 days ago. Or do you mean 182.5 days ago, i.e., half of 365 days. Also, what if last week the calculation yielded 25%, but when you opened it today the passage of time changed it to 15%. Will that re-calculated & changed result screw you up? This will calculate the date 6 months ago - 2/16/07 for today - and compare it to your other date. =if(DATE(YEAR(TODAY()),MONTH(TODAY())-6,DAY(TODAY()))<=comparison date,.25,.15)*some value "gregatvrm" wrote: I need to make a formula that will multiply an amount in a cell by 25% if the date in that row is within 6 months of todays date or multiply by 15% if over 6 months. Thanks for all your help! |
#7
Posted to microsoft.public.excel.misc
|
|||
|
|||
Calculate by Date
what do you mean by 6 months?
Earlier than the same day in the month 6 months earlier, i.e., for today that means 6 months ago was 2/16/07, even tho that was only 181 days ago. Or do you mean 182.5 days ago, i.e., half of 365 days. Also, what if last week the calculation yielded 25%, but when you opened it today the passage of time changed it to 15%. Will that re-calculated & changed result screw you up? This will calculate the date 6 months ago - 2/16/07 for today - and compare it to your other date. =if(DATE(YEAR(TODAY()),MONTH(TODAY())-6,DAY(TODAY()))<=comparison date,.25,.15)*some value "gregatvrm" wrote: I need to make a formula that will multiply an amount in a cell by 25% if the date in that row is within 6 months of todays date or multiply by 15% if over 6 months. Thanks for all your help! |
#8
Posted to microsoft.public.excel.misc
|
|||
|
|||
Calculate by Date
Hi,
You didn't say future, past or both so in the past is assumed he- =IF((MONTH(TODAY())-MONTH(A1)<=6),B1*0.15,IF(MONTH((TODAY())-MONTH(A1)6),B1*0.25)) Mike "gregatvrm" wrote: I need to make a formula that will multiply an amount in a cell by 25% if the date in that row is within 6 months of todays date or multiply by 15% if over 6 months. Thanks for all your help! |
#9
Posted to microsoft.public.excel.misc
|
|||
|
|||
Calculate by Date
Figured out my mistake and Duke's code works flawlessly. Thanks so much.
"gregatvrm" wrote: Six months past from todays date is correct, if it is off by a day it won't matter. The third post from Toppers works except if I change the date in A1 the amount for B1 stays the same. When using Dukes code it askes for #NAME. What could I be Doing wrong? "Duke Carey" wrote: what do you mean by 6 months? Earlier than the same day in the month 6 months earlier, i.e., for today that means 6 months ago was 2/16/07, even tho that was only 181 days ago. Or do you mean 182.5 days ago, i.e., half of 365 days. Also, what if last week the calculation yielded 25%, but when you opened it today the passage of time changed it to 15%. Will that re-calculated & changed result screw you up? This will calculate the date 6 months ago - 2/16/07 for today - and compare it to your other date. =if(DATE(YEAR(TODAY()),MONTH(TODAY())-6,DAY(TODAY()))<=comparison date,.25,.15)*some value "gregatvrm" wrote: I need to make a formula that will multiply an amount in a cell by 25% if the date in that row is within 6 months of todays date or multiply by 15% if over 6 months. Thanks for all your help! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Tricky Date calculation: How to calculate a future date | Excel Discussion (Misc queries) | |||
Auto calculate for date + days forward to yield new date | Excel Worksheet Functions | |||
formula to calculate age using birth date and current date | Excel Worksheet Functions | |||
formula to calculate future date from date in cell plus days | Excel Worksheet Functions | |||
Calculate month-end date from date in adjacent cell? | Excel Worksheet Functions |