Hi All,
I can't figure out how to word this to search properly, so I haven't found something even though I'm sure someone's posted this before...
I'm in the process of converting a list to a grid, based on the values in the grid. I've done this before matching 1 criteria, but having trouble matching to two criteria. Here's what I mean:
List:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Fruit[/TD]
[TD]Apple[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]Fruit[/TD]
[TD]Pear[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]Veggie[/TD]
[TD]Carrot[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]Veggie[/TD]
[TD]Kale[/TD]
[TD]25[/TD]
[/TR]
</tbody>[/TABLE]
Converting to Grid:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Fruit[/TD]
[TD]Fruit[/TD]
[TD]Fruit[/TD]
[TD]Veggie[/TD]
[TD]Veggie[/TD]
[TD]Carb[/TD]
[/TR]
[TR]
[TD]Pear[/TD]
[TD]Apple[/TD]
[TD]Orange[/TD]
[TD]Carrot[/TD]
[TD]Kale[/TD]
[TD]Pasta[/TD]
[/TR]
[TR]
[TD]20[/TD]
[TD]50[/TD]
[TD][/TD]
[TD]10[/TD]
[TD]25[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Very simple example, but essentially, I need the macro to loop over my list, and place the value in column 3 into by grid, based on looking up the 2-row headers.
If you can just help me identify the column number, I can do the rest. I have 99% of my macro built (much more complex than this), but just trying to figure out how to match a column based on 2 criteria.
Thoughts?
Thanks!
Alex
(Excel 2016)
I can't figure out how to word this to search properly, so I haven't found something even though I'm sure someone's posted this before...
I'm in the process of converting a list to a grid, based on the values in the grid. I've done this before matching 1 criteria, but having trouble matching to two criteria. Here's what I mean:
List:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Fruit[/TD]
[TD]Apple[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]Fruit[/TD]
[TD]Pear[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]Veggie[/TD]
[TD]Carrot[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]Veggie[/TD]
[TD]Kale[/TD]
[TD]25[/TD]
[/TR]
</tbody>[/TABLE]
Converting to Grid:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Fruit[/TD]
[TD]Fruit[/TD]
[TD]Fruit[/TD]
[TD]Veggie[/TD]
[TD]Veggie[/TD]
[TD]Carb[/TD]
[/TR]
[TR]
[TD]Pear[/TD]
[TD]Apple[/TD]
[TD]Orange[/TD]
[TD]Carrot[/TD]
[TD]Kale[/TD]
[TD]Pasta[/TD]
[/TR]
[TR]
[TD]20[/TD]
[TD]50[/TD]
[TD][/TD]
[TD]10[/TD]
[TD]25[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Very simple example, but essentially, I need the macro to loop over my list, and place the value in column 3 into by grid, based on looking up the 2-row headers.
If you can just help me identify the column number, I can do the rest. I have 99% of my macro built (much more complex than this), but just trying to figure out how to match a column based on 2 criteria.
Thoughts?
Thanks!
Alex
(Excel 2016)