Excel Grid lookup with extra functionality

autumndev

New Member
Joined
Dec 15, 2014
Messages
1
Hi All,

First time poster and am really stuck on getting a solution for the following:

I have an excel sheet that needs exporting into MYSQL. This sheet contains a grid with the rows being components and columns being products.
Column A holds the component name with columns b onwards using row 1 as product names.
The grid is a grid of components that make up that product in row 1 of the column. not all components are used in a product, for example:

<code style="margin: 0px; padding: 1px 5px; border: 0px; vertical-align: baseline; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; white-space: pre-wrap; background: rgb(238, 238, 238);">xxxxxxxxxxx | product 1 | product 2
component 1 | 1 | 0
component 2 | 0 | 1
component 3 | 0 | 10

</code>and so on. I am trying to get a formula that can check each column against each row, if the column has a value > 0 or not blank then grab the product name, component name and the value ready to be used to generate SQL (i already have component ids etc)

is this possible? I have seen reverse lookups and lookups using grids but not to this level..
would be very grateful to any excel wizards out there that can save me hours of manually doing this (there are 102 products with ~ 1000 different components..)

I have no idea where to start but all the grid lookups i have seen give you the row/column value only not everything..
 
Last edited:

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,631
Latest member
a_potato

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top