to get the values from data file to format file, based on sheet name, reference column and date

ashwinashes

New Member
Joined
Nov 12, 2019
Messages
1
I have two excel files, one is file named data and other one is flile named format. The data file has multiple sheet named as "north" ,"south" and "west", each of these sheets have a reference column containing values a, b,c,d,e as values of first column and dates from Nov 4 to Nov 10 as values of first row. And corresponding to these dates and reference column, there are numerical values in the cells. Similarly, in the file named format, the first column has these values which are the sheet names of data files, like north south west, second column is the reference values from first column of data file, a, b, c, d, e, and the first row has dates, as same as in the other file, now I need to get the values from data file to format file, based on this sheet name, reference column and date, something like a lookup but a complicated. Pls help me out. i need the vba script for doing this

data file : (considering the sheet name is north)
reference
2019-11-04

<tbody>
</tbody>
2019-11-05

<tbody>
</tbody>
2019-11-06

<tbody>
</tbody>
a123
b456
c789
d101112
e131415

<tbody>
</tbody>

format file :
sheetreference
2019-11-04

<tbody>
</tbody>
2019-11-05

<tbody>
</tbody>
2019-11-06

<tbody>
</tbody>
westb
westc
northb
northc
southb
southc

<tbody>
</tbody>

expected output:
sheetreference
2019-11-04

<tbody>
</tbody>
2019-11-05

<tbody>
</tbody>
2019-11-06

<tbody>
</tbody>
westb
westc
northb456
northc789
southb
southc

<tbody>
</tbody>
 

Forum statistics

Threads
1,077,822
Messages
5,336,564
Members
399,088
Latest member
Swindlestikz

Some videos you may like

This Week's Hot Topics

Top