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,078,520
Messages
5,340,922
Members
399,399
Latest member
SravanaSandhya

Some videos you may like

This Week's Hot Topics

  • Problem with Radio Button's format control
    I am creating an employee evaluation template (a sample is below) Column A is the category Column B, C D, E and F will be ratings (unacceptable...
  • Last Display on userform to a Listbox
    [CODE=vba] lstdisplay.ColumnCount = 15 lstdisplay.RowSource = "A1:O600000" [/CODE] So when i do this it Displays everything on the sheet i am...
  • Rename and move files to a new location
    Dear all, I have an excel file with the following information. The actual file name is at column A but i want to rename it using the following...
  • Help with True/False Formula
    Hello! Am stumped how to fix this formula, in which my result returns 'True', but it should return False. =IF(AG2=True...
  • Clear extra characters from a provided range of cells
    Dear All, I have following code which gives me desired output to remove extra characters from a provided range. But it takes too much time when...
  • Help with Current and highest streaks
    Hi there, I've just joined the forum and this is my first post. I've already spent quite a bit of time searching the net and this forum for a...
Top