The Match() function will return the relative column for the date matching the 
header.So: Your array of data is in E1:AI1 and if you're looking for the date 
in cell C1, you would use:MATCH(C$1,$E$1:$AI$1)(the "$" will be necessary for 
when you copy the formulas)
In this case, the function returns 31, which is the number of columns beginning 
from column E.The index() function starts with the entire array of data 
(E1:AI7)and uses a row,column offset into this array.
In cell C2, use the formula:=INDEX($E$1:$AI$7,ROW(),MATCH(C$1,$E$1:$AI$1))
the row() function returns the current row.You can then copy this function to 
the rows in column C and D.
Paul-----------------------------------------
“Do all the good you can,
By all the means you can,
In all the ways you can,
In all the places you can,
At all the times you can,
To all the people you can,
As long as ever you can.” - John Wesley
----------------------------------------- 

    On Tuesday, February 7, 2017 10:34 AM, Amit Desai (MERU) 
<amit.de...@merucabs.com> wrote:
 

  <!--#yiv2797144059 _filtered #yiv2797144059 {font-family:Calibri;panose-1:2 
15 5 2 2 2 4 3 2 4;} _filtered #yiv2797144059 {font-family:Tahoma;panose-1:2 11 
6 4 3 5 4 4 2 4;}#yiv2797144059 #yiv2797144059 p.yiv2797144059MsoNormal, 
#yiv2797144059 li.yiv2797144059MsoNormal, #yiv2797144059 
div.yiv2797144059MsoNormal 
{margin:0cm;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Calibri", 
"sans-serif";}#yiv2797144059 a:link, #yiv2797144059 
span.yiv2797144059MsoHyperlink 
{color:blue;text-decoration:underline;}#yiv2797144059 a:visited, #yiv2797144059 
span.yiv2797144059MsoHyperlinkFollowed 
{color:purple;text-decoration:underline;}#yiv2797144059 
p.yiv2797144059MsoAcetate, #yiv2797144059 li.yiv2797144059MsoAcetate, 
#yiv2797144059 div.yiv2797144059MsoAcetate 
{margin:0cm;margin-bottom:.0001pt;font-size:8.0pt;font-family:"Tahoma", 
"sans-serif";}#yiv2797144059 span.yiv2797144059EmailStyle17 
{font-family:"Calibri", "sans-serif";color:windowtext;}#yiv2797144059 
span.yiv2797144059BalloonTextChar {font-family:"Tahoma", 
"sans-serif";}#yiv2797144059 .yiv2797144059MsoChpDefault 
{font-family:"Calibri", "sans-serif";} _filtered #yiv2797144059 {margin:72.0pt 
72.0pt 72.0pt 72.0pt;}#yiv2797144059 div.yiv2797144059WordSection1 {}-->Dear 
Friends,    I am stuck while preparing a dashboard. I need auto pickup of data 
based (in cell highlighted yellow) on model & date from the right side. If I 
change date (from 31-Jan-17 to 27-Jan-17) the data should change..    I think 
Index/Match with vlookup should work.. but not sure how to use it.. please 
help.              Best Regards, Amit Desai Contact: - 09867232534    
Disclaimer: This message and its attachments contain confidential information 
and may also contain legally privileged information. This message is intended 
solely for the named addressee. If you are not the addressee indicated in this 
message (or authorized to receive for addressee), you may not copy or deliver 
any part of this message or its attachments to anyone or use any part of this 
message or its attachments. Rather, you should permanently delete this message 
and its attachments (and all copies) from your system and kindly notify the 
sender by reply e-mail. Any content of this message and its attachments that 
does not relate to the official business of Meru Cab Company Pvt. Ltd. must be 
taken not to have been sent or endorsed by any of them. Email communications 
are not private and no warranty is made that e-mail communications are timely, 
secure or free from computer virus or other defect.-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel
 
FORUM RULES
 
1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.
 
NOTE : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


   

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.

Reply via email to