Best formula to use

excellrookie

New Member
Joined
Mar 23, 2011
Messages
17
I am having a complete brain fart at work and cant think of the right formula to use.

Any help would be appreciated. Here is what i have.

Row 1 are dates, increasing by one month for every cell. for example
a2= jan 2009
b2= feb 2009
c2= mar 2009


Row 2 is a % amount corresponding to the month. For example:
A3= 34%
B3= 21%
C3= 13%

Row 3 is a value. For example:
A4= $10
B4= $25
C4= $30





So, I am completely spacing on a formula that does the following:

When i type in the date 1/1/2010 into cell a1, the formula looks up the right date in row 2, and returns me the value from row 3.

and

Another formula that does exactly the same thing but returns the value in Row 3


Thanks for your help. Coffee machine broke today so I have been dead on arrival at work.
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Row 1 are dates, increasing by one month for every cell. for example
a2= jan 2009
b2= feb 2009
c2= mar 2009

When i type in the date 1/1/2010 into cell a1, the formula looks up the right date in row 2, and returns me the value from row 3.
Are the dates in row 2 the 1st of the month dates? For example, is the date in A2 1/1/2009?

When you enter a date in cell A1 will there always be an exact date match on row 2?
 
Upvote 0
Are the dates in row 2 the 1st of the month dates? For example, is the date in A2 1/1/2009?

When you enter a date in cell A1 will there always be an exact date match row 2?


The dates are set to 1/1/2009, but i would ultimately like to type in just 2010 in A1 and have excel find that 2010 begins at cell D2...
 
Upvote 0
The dates are set to 1/1/2009, but i would ultimately like to type in just 2010 in A1 and have excel find that 2010 begins at cell D2...
But if you have monthly data how can you tell what month should be returned when you're only entering the year number?
 
Upvote 0
I am having a complete brain fart at work and cant think of the right formula to use.

Any help would be appreciated. Here is what i have.

Row 1 are dates, increasing by one month for every cell. for example
a2= jan 2009
b2= feb 2009
c2= mar 2009


Row 2 is a % amount corresponding to the month. For example:
A3= 34%
B3= 21%
C3= 13%

Row 3 is a value. For example:
A4= $10
B4= $25
C4= $30





So, I am completely spacing on a formula that does the following:

When i type in the date 1/1/2010 into cell a1, the formula looks up the right date in row 2, and returns me the value from row 3.

and

Another formula that does exactly the same thing but returns the value in Row 3


Thanks for your help. Coffee machine broke today so I have been dead on arrival at work.
If A2:C2 sorted in ascending order and consists of the first day dates of mont/year pairs...

=LOOKUP(A1,A2:C2,A3:C3)

=LOOKUP(A1,A2:C2,A4:C4)

Or equivalently...

=INDEX(A3:C3,MATCH(A1,A2:C2,1))

=INDEX(A4:C4,MATCH(A1,A2:C2,1))

If A1 must exactly match a date value in A2:C2, invoke:

=INDEX(A3:C3,MATCH(A1,A2:C2,0))

=INDEX(A4:C4,MATCH(A1,A2:C2,0))
 
Upvote 0
Thanks a bunch, I will test this out and let you know how it goes :)

@Valko, my monthly data is in this format 1/1/2009 - 1/1/2011. So there is a cell for every month, for 2009, 2010 and 2011
 
Upvote 0
Thanks a bunch, I will test this out and let you know how it goes :)

@Valko, my monthly data is in this format 1/1/2009 - 1/1/2011. So there is a cell for every month, for 2009, 2010 and 2011
OK, see if this is what you had in mind...

Let's assume this is your data:

Book1
ABCD
12/1/2009
21/1/20092/1/20093/1/2009
334%21%13%
4102530
Sheet1


Enter this formula in A10:

=INDEX(B3:D3,MATCH(A$1,B$2:D$2,0))

Copy down to A11.

Format cell A10 as Percentage.
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,297
Members
452,903
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top