macgyver1985
New Member
- Joined
- May 31, 2013
- Messages
- 4
Hello,
I really hope someone can help me or get me going in the right direction. I have a large project that I am working on but I do not imagine that it is all that difficult, I've just hit a brick wall in my thinking. The project is this: I have a spreadsheet of data provided to me containing information such as name, course number, and date completed, among others. I have a spreadsheet set up that have the names and course number already set up as a table with Name vs Course number and what I need is the date completed part filled in automatically, either by VBA, macro, or equation. The problem for what I can see boils down to essentially this:
How can I get a table of data like this:
[TABLE="width: 235"]
<TBODY>[TR]
[TD]Cookie</SPAN>
[/TD]
[TD]Month</SPAN>
[/TD]
[TD]Revenue</SPAN>
[/TD]
[/TR]
[TR]
[TD]Chocolate Chip</SPAN>
[/TD]
[TD]January</SPAN>
[/TD]
[TD="align: right"]2047</SPAN>
[/TD]
[/TR]
[TR]
[TD]Chocolate Chip</SPAN>
[/TD]
[TD]February</SPAN>
[/TD]
[TD="align: right"]1987</SPAN>
[/TD]
[/TR]
[TR]
[TD]Chocolate Chip</SPAN>
[/TD]
[TD]March</SPAN>
[/TD]
[TD="align: right"]1999</SPAN>
[/TD]
[/TR]
[TR]
[TD]Oatmeal</SPAN>
[/TD]
[TD]January</SPAN>
[/TD]
[TD="align: right"]1250</SPAN>
[/TD]
[/TR]
[TR]
[TD]Oatmeal</SPAN>
[/TD]
[TD]February</SPAN>
[/TD]
[TD="align: right"]1345</SPAN>
[/TD]
[/TR]
[TR]
[TD]Oatmeal</SPAN>
[/TD]
[TD]March</SPAN>
[/TD]
[TD="align: right"]1287</SPAN>
[/TD]
[/TR]
[TR]
[TD]Peanut Butter</SPAN>
[/TD]
[TD]January</SPAN>
[/TD]
[TD="align: right"]1292</SPAN>
[/TD]
[/TR]
[TR]
[TD]Peanut Butter</SPAN>
[/TD]
[TD]February</SPAN>
[/TD]
[TD="align: right"]1156</SPAN>
[/TD]
[/TR]
[TR]
[TD]Peanut Butter</SPAN>
[/TD]
[TD]March</SPAN>
[/TD]
[TD="align: right"]1208</SPAN>
[/TD]
[/TR]
</TBODY>[/TABLE]
To look like this:
[TABLE="width: 291"]
<TBODY>[TR]
[TD][/TD]
[TD]January</SPAN>
[/TD]
[TD]February</SPAN>
[/TD]
[TD]March</SPAN>
[/TD]
[/TR]
[TR]
[TD]Chocolate Chip</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Oatmeal</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Peanut Butter</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</TBODY>[/TABLE]
With the sales revenue automatically being filled in? I have tried using VLOOKUP function with an imbeded match function, but that seems to work best performing the reverse of what I want. Also I could only get it to work on the first row. The above is just a simple example, my actual data is quite comprehensive, containing thousands of rows and many columns, and the tables of sorted data will be spread across several tabs.
Can anyone help me or at least get me going in the right direction?
Thank you,
MacGyver
I really hope someone can help me or get me going in the right direction. I have a large project that I am working on but I do not imagine that it is all that difficult, I've just hit a brick wall in my thinking. The project is this: I have a spreadsheet of data provided to me containing information such as name, course number, and date completed, among others. I have a spreadsheet set up that have the names and course number already set up as a table with Name vs Course number and what I need is the date completed part filled in automatically, either by VBA, macro, or equation. The problem for what I can see boils down to essentially this:
How can I get a table of data like this:
[TABLE="width: 235"]
<TBODY>[TR]
[TD]Cookie</SPAN>
[/TD]
[TD]Month</SPAN>
[/TD]
[TD]Revenue</SPAN>
[/TD]
[/TR]
[TR]
[TD]Chocolate Chip</SPAN>
[/TD]
[TD]January</SPAN>
[/TD]
[TD="align: right"]2047</SPAN>
[/TD]
[/TR]
[TR]
[TD]Chocolate Chip</SPAN>
[/TD]
[TD]February</SPAN>
[/TD]
[TD="align: right"]1987</SPAN>
[/TD]
[/TR]
[TR]
[TD]Chocolate Chip</SPAN>
[/TD]
[TD]March</SPAN>
[/TD]
[TD="align: right"]1999</SPAN>
[/TD]
[/TR]
[TR]
[TD]Oatmeal</SPAN>
[/TD]
[TD]January</SPAN>
[/TD]
[TD="align: right"]1250</SPAN>
[/TD]
[/TR]
[TR]
[TD]Oatmeal</SPAN>
[/TD]
[TD]February</SPAN>
[/TD]
[TD="align: right"]1345</SPAN>
[/TD]
[/TR]
[TR]
[TD]Oatmeal</SPAN>
[/TD]
[TD]March</SPAN>
[/TD]
[TD="align: right"]1287</SPAN>
[/TD]
[/TR]
[TR]
[TD]Peanut Butter</SPAN>
[/TD]
[TD]January</SPAN>
[/TD]
[TD="align: right"]1292</SPAN>
[/TD]
[/TR]
[TR]
[TD]Peanut Butter</SPAN>
[/TD]
[TD]February</SPAN>
[/TD]
[TD="align: right"]1156</SPAN>
[/TD]
[/TR]
[TR]
[TD]Peanut Butter</SPAN>
[/TD]
[TD]March</SPAN>
[/TD]
[TD="align: right"]1208</SPAN>
[/TD]
[/TR]
</TBODY>[/TABLE]
To look like this:
[TABLE="width: 291"]
<TBODY>[TR]
[TD][/TD]
[TD]January</SPAN>
[/TD]
[TD]February</SPAN>
[/TD]
[TD]March</SPAN>
[/TD]
[/TR]
[TR]
[TD]Chocolate Chip</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Oatmeal</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Peanut Butter</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</TBODY>[/TABLE]
With the sales revenue automatically being filled in? I have tried using VLOOKUP function with an imbeded match function, but that seems to work best performing the reverse of what I want. Also I could only get it to work on the first row. The above is just a simple example, my actual data is quite comprehensive, containing thousands of rows and many columns, and the tables of sorted data will be spread across several tabs.
Can anyone help me or at least get me going in the right direction?
Thank you,
MacGyver