Hi all,
I need help with coming up with a formula for Excel to return what I am looking for based on 2 inputs.
I have 3 columns: Start Date, End Date and B. Start Date and End Date are the same, while B has the values that I want to find based on the Start and End dates. Please see below for a snapshot of my data:
[TABLE="width: 278"]
<colgroup><col span="2"><col></colgroup><tbody>[TR]
[TD]Start Date[/TD]
[TD]End Date[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD="align: right"]4/30/2007[/TD]
[TD="align: right"]4/30/2007[/TD]
[TD="align: right"]1.87%[/TD]
[/TR]
[TR]
[TD="align: right"]5/31/2007[/TD]
[TD="align: right"]5/31/2007[/TD]
[TD="align: right"]3.56%[/TD]
[/TR]
[TR]
[TD="align: right"]6/30/2007[/TD]
[TD="align: right"]6/30/2007[/TD]
[TD="align: right"]5.72%[/TD]
[/TR]
[TR]
[TD="align: right"]7/31/2007[/TD]
[TD="align: right"]7/31/2007[/TD]
[TD="align: right"]5.58%[/TD]
[/TR]
[TR]
[TD="align: right"]8/31/2007[/TD]
[TD="align: right"]8/31/2007[/TD]
[TD="align: right"]4.62%[/TD]
[/TR]
[TR]
[TD="align: right"]9/30/2007[/TD]
[TD="align: right"]9/30/2007[/TD]
[TD="align: right"]9.88%[/TD]
[/TR]
[TR]
[TD="align: right"]10/31/2007[/TD]
[TD="align: right"]10/31/2007[/TD]
[TD="align: right"]11.66%[/TD]
[/TR]
[TR]
[TD="align: right"]11/30/2007[/TD]
[TD="align: right"]11/30/2007[/TD]
[TD="align: right"]9.36%[/TD]
[/TR]
[TR]
[TD="align: right"]12/31/2007[/TD]
[TD="align: right"]12/31/2007[/TD]
[TD="align: right"]9.30%[/TD]
[/TR]
[TR]
[TD="align: right"]1/31/2008[/TD]
[TD="align: right"]1/31/2008[/TD]
[TD="align: right"]5.32%[/TD]
[/TR]
[TR]
[TD="align: right"]2/29/2008[/TD]
[TD="align: right"]2/29/2008[/TD]
[TD="align: right"]5.95%[/TD]
[/TR]
[TR]
[TD="align: right"]3/31/2008[/TD]
[TD="align: right"]3/31/2008[/TD]
[TD="align: right"]3.44%[/TD]
[/TR]
[TR]
[TD="align: right"]4/30/2008[/TD]
[TD="align: right"]4/30/2008[/TD]
[TD="align: right"]1.35%[/TD]
[/TR]
[TR]
[TD="align: right"]5/31/2008[/TD]
[TD="align: right"]5/31/2008[/TD]
[TD="align: right"]2.27%[/TD]
[/TR]
</tbody>[/TABLE]
I made another table and validated Start Date and End Date so that Excel will return the B value that I want based on the Start and End dates.
[TABLE="width: 120"]
<tbody>[TR]
[TD="width: 60"]<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}o\:* {behavior:url(#default#VML);}x\:* {behavior:url(#default#VML);}.shape {behavior:url(#default#VML);}</style><![endif]-->[TABLE="width: 120"]
<!--StartFragment--> <colgroup><col width="60" span="2" style="width:45pt"> </colgroup><tbody>[TR]
[TD="width: 60"]Year[/TD]
[TD="width: 60, align: right"]2007[/TD]
[/TR]
[TR]
[TD]Start Date[/TD]
[TD="class: xl63, align: right"]04/30/07[/TD]
[/TR]
[TR]
[TD]End Date[/TD]
[TD="class: xl63, align: right"]09/30/07[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="class: xl64, align: right"]9.88%[/TD]
[/TR]
<!--EndFragment--></tbody>[/TABLE]
[/TD]
[TD="class: xl63, width: 60, align: right"][/TD]
[/TR]
</tbody>[/TABLE]
For example, if I choose 4/30/2007 as Start Date and 9/30/2007 as End Date, the formula should return 9.88%. Therefore, the "answer" should always be in the same row as the End Date.
Another complexity that I face is that the Start Date must always be 4/30 (30 April) of every year and can only go up to 4/31 (31 May) of the next year (our year starts in April and ends May the year after). I was thinking of first choosing the year (Again, I used cell validation), and the Start Date will automatically choose 4/30 of whichever year it is, and the End Date will be a dropdown of up till 4/31 of the next year.
I suppose I will need a formula for Start Date, End Date and B. Please kindly advise! If there is an easier way to do it, please also do let me know - I am flexible. And not very good with Excel.
Thank you in advance!
I need help with coming up with a formula for Excel to return what I am looking for based on 2 inputs.
I have 3 columns: Start Date, End Date and B. Start Date and End Date are the same, while B has the values that I want to find based on the Start and End dates. Please see below for a snapshot of my data:
[TABLE="width: 278"]
<colgroup><col span="2"><col></colgroup><tbody>[TR]
[TD]Start Date[/TD]
[TD]End Date[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD="align: right"]4/30/2007[/TD]
[TD="align: right"]4/30/2007[/TD]
[TD="align: right"]1.87%[/TD]
[/TR]
[TR]
[TD="align: right"]5/31/2007[/TD]
[TD="align: right"]5/31/2007[/TD]
[TD="align: right"]3.56%[/TD]
[/TR]
[TR]
[TD="align: right"]6/30/2007[/TD]
[TD="align: right"]6/30/2007[/TD]
[TD="align: right"]5.72%[/TD]
[/TR]
[TR]
[TD="align: right"]7/31/2007[/TD]
[TD="align: right"]7/31/2007[/TD]
[TD="align: right"]5.58%[/TD]
[/TR]
[TR]
[TD="align: right"]8/31/2007[/TD]
[TD="align: right"]8/31/2007[/TD]
[TD="align: right"]4.62%[/TD]
[/TR]
[TR]
[TD="align: right"]9/30/2007[/TD]
[TD="align: right"]9/30/2007[/TD]
[TD="align: right"]9.88%[/TD]
[/TR]
[TR]
[TD="align: right"]10/31/2007[/TD]
[TD="align: right"]10/31/2007[/TD]
[TD="align: right"]11.66%[/TD]
[/TR]
[TR]
[TD="align: right"]11/30/2007[/TD]
[TD="align: right"]11/30/2007[/TD]
[TD="align: right"]9.36%[/TD]
[/TR]
[TR]
[TD="align: right"]12/31/2007[/TD]
[TD="align: right"]12/31/2007[/TD]
[TD="align: right"]9.30%[/TD]
[/TR]
[TR]
[TD="align: right"]1/31/2008[/TD]
[TD="align: right"]1/31/2008[/TD]
[TD="align: right"]5.32%[/TD]
[/TR]
[TR]
[TD="align: right"]2/29/2008[/TD]
[TD="align: right"]2/29/2008[/TD]
[TD="align: right"]5.95%[/TD]
[/TR]
[TR]
[TD="align: right"]3/31/2008[/TD]
[TD="align: right"]3/31/2008[/TD]
[TD="align: right"]3.44%[/TD]
[/TR]
[TR]
[TD="align: right"]4/30/2008[/TD]
[TD="align: right"]4/30/2008[/TD]
[TD="align: right"]1.35%[/TD]
[/TR]
[TR]
[TD="align: right"]5/31/2008[/TD]
[TD="align: right"]5/31/2008[/TD]
[TD="align: right"]2.27%[/TD]
[/TR]
</tbody>[/TABLE]
I made another table and validated Start Date and End Date so that Excel will return the B value that I want based on the Start and End dates.
[TABLE="width: 120"]
<tbody>[TR]
[TD="width: 60"]<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}o\:* {behavior:url(#default#VML);}x\:* {behavior:url(#default#VML);}.shape {behavior:url(#default#VML);}</style><![endif]-->[TABLE="width: 120"]
<!--StartFragment--> <colgroup><col width="60" span="2" style="width:45pt"> </colgroup><tbody>[TR]
[TD="width: 60"]Year[/TD]
[TD="width: 60, align: right"]2007[/TD]
[/TR]
[TR]
[TD]Start Date[/TD]
[TD="class: xl63, align: right"]04/30/07[/TD]
[/TR]
[TR]
[TD]End Date[/TD]
[TD="class: xl63, align: right"]09/30/07[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="class: xl64, align: right"]9.88%[/TD]
[/TR]
<!--EndFragment--></tbody>[/TABLE]
[/TD]
[TD="class: xl63, width: 60, align: right"][/TD]
[/TR]
</tbody>[/TABLE]
For example, if I choose 4/30/2007 as Start Date and 9/30/2007 as End Date, the formula should return 9.88%. Therefore, the "answer" should always be in the same row as the End Date.
Another complexity that I face is that the Start Date must always be 4/30 (30 April) of every year and can only go up to 4/31 (31 May) of the next year (our year starts in April and ends May the year after). I was thinking of first choosing the year (Again, I used cell validation), and the Start Date will automatically choose 4/30 of whichever year it is, and the End Date will be a dropdown of up till 4/31 of the next year.
I suppose I will need a formula for Start Date, End Date and B. Please kindly advise! If there is an easier way to do it, please also do let me know - I am flexible. And not very good with Excel.
Thank you in advance!