Hi Guys, i'm trying to find a pretty long winded formula which hopefully will save me a few days work...
I will simplify everything as much as I can then show an example...
I have the following fields.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Type
[/TD]
[TD]Sku
[/TD]
[TD]Var1Name
[/TD]
[TD]Var1Value
[/TD]
[TD]Var2name
[/TD]
[TD]Var2Value
[/TD]
[TD]Var3name
[/TD]
[TD]Var3Value
[/TD]
[/TR]
[TR]
[TD]Variable
[/TD]
[TD]Tshirt1
[/TD]
[TD]Colour
[/TD]
[TD]White,Black
[/TD]
[TD]Size
[/TD]
[TD]Medium,Large
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]variation
[/TD]
[TD]TshirtWhiteM
[/TD]
[TD]Colour
[/TD]
[TD]White
[/TD]
[TD]Size[/TD]
[TD]Medium
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]variation
[/TD]
[TD]TshirtWhiteL
[/TD]
[TD]Colour
[/TD]
[TD]White
[/TD]
[TD]Size
[/TD]
[TD]Large
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]variation
[/TD]
[TD]TshirtBlackM
[/TD]
[TD]Colour
[/TD]
[TD]Black
[/TD]
[TD]Size
[/TD]
[TD]Medium
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]variation
[/TD]
[TD]TshirtBlackL
[/TD]
[TD]Colour
[/TD]
[TD]Black
[/TD]
[TD]Size
[/TD]
[TD]Large
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Variable
[/TD]
[TD]Jumper
[/TD]
[TD]Size
[/TD]
[TD]Small, Medium, Large
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]variation
[/TD]
[TD]JumperS
[/TD]
[TD]Size
[/TD]
[TD]Small
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]variation
[/TD]
[TD]JumperM
[/TD]
[TD]Size
[/TD]
[TD]Medium
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]variation
[/TD]
[TD]JumperL
[/TD]
[TD]Size
[/TD]
[TD]Large
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The bold fields are the data which i am missing on the spreadsheet. This is heald in another sheet, which is set up in a different format. Where the above table only shows variables for the products in question. This sheet i am working off has them layed out such as... (V1N = Variable 1 name, V1v = Variable 1 value)
V1N, V1V, V2N, V2V, V3N, V3V, V4N,V4V......... V15N, V15V...Variable name always contains a value, So V1 Name will say "Length" all the way down, V2 would be height all the way down.. When required to add a variable it is added next to the appropriate "value" collumn.
I am needing to do the following...
I need Sheet 1 to look at value "Sku" as a reference. Then if VAR1Name contains "colour".. Then look in sheet 2 for the same sku and find colour in there (say it found colour in cell P2. I want it then to select P3, and copy it into book 1 (under the collumn Var1value)
Then want it to procede to the next collumn (which would be var2Name) and do the same, to bring back a result for "Size" from sheet 2)
The only possible way i can think of this is with a vlookup and an if statement. the if statement assigns a number to every value.. then the vlookup looks for that value in the other sheet? but not show how it would work of it theres a less long winded way??
I will simplify everything as much as I can then show an example...
I have the following fields.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Type
[/TD]
[TD]Sku
[/TD]
[TD]Var1Name
[/TD]
[TD]Var1Value
[/TD]
[TD]Var2name
[/TD]
[TD]Var2Value
[/TD]
[TD]Var3name
[/TD]
[TD]Var3Value
[/TD]
[/TR]
[TR]
[TD]Variable
[/TD]
[TD]Tshirt1
[/TD]
[TD]Colour
[/TD]
[TD]White,Black
[/TD]
[TD]Size
[/TD]
[TD]Medium,Large
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]variation
[/TD]
[TD]TshirtWhiteM
[/TD]
[TD]Colour
[/TD]
[TD]White
[/TD]
[TD]Size[/TD]
[TD]Medium
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]variation
[/TD]
[TD]TshirtWhiteL
[/TD]
[TD]Colour
[/TD]
[TD]White
[/TD]
[TD]Size
[/TD]
[TD]Large
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]variation
[/TD]
[TD]TshirtBlackM
[/TD]
[TD]Colour
[/TD]
[TD]Black
[/TD]
[TD]Size
[/TD]
[TD]Medium
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]variation
[/TD]
[TD]TshirtBlackL
[/TD]
[TD]Colour
[/TD]
[TD]Black
[/TD]
[TD]Size
[/TD]
[TD]Large
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Variable
[/TD]
[TD]Jumper
[/TD]
[TD]Size
[/TD]
[TD]Small, Medium, Large
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]variation
[/TD]
[TD]JumperS
[/TD]
[TD]Size
[/TD]
[TD]Small
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]variation
[/TD]
[TD]JumperM
[/TD]
[TD]Size
[/TD]
[TD]Medium
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]variation
[/TD]
[TD]JumperL
[/TD]
[TD]Size
[/TD]
[TD]Large
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The bold fields are the data which i am missing on the spreadsheet. This is heald in another sheet, which is set up in a different format. Where the above table only shows variables for the products in question. This sheet i am working off has them layed out such as... (V1N = Variable 1 name, V1v = Variable 1 value)
V1N, V1V, V2N, V2V, V3N, V3V, V4N,V4V......... V15N, V15V...Variable name always contains a value, So V1 Name will say "Length" all the way down, V2 would be height all the way down.. When required to add a variable it is added next to the appropriate "value" collumn.
I am needing to do the following...
I need Sheet 1 to look at value "Sku" as a reference. Then if VAR1Name contains "colour".. Then look in sheet 2 for the same sku and find colour in there (say it found colour in cell P2. I want it then to select P3, and copy it into book 1 (under the collumn Var1value)
Then want it to procede to the next collumn (which would be var2Name) and do the same, to bring back a result for "Size" from sheet 2)
The only possible way i can think of this is with a vlookup and an if statement. the if statement assigns a number to every value.. then the vlookup looks for that value in the other sheet? but not show how it would work of it theres a less long winded way??