need help with data that contains 2 set of columns that i need to pull data from

Taz Wolf

New Member
Joined
Jun 16, 2015
Messages
6
First off - thank you all for the great help this place provides. I am a self taught consumer of excel, and usually can find the answers I need after a bit (sometimes a lot) of research.
This time I am stuck and out of my league

I get data from several venders in multiple formats, and most of them I can get setup in a way that I can pull out what I need.
This vender is really frustrating me.
the data comes in with 2 sections side by side and I need to be able to pull numbers based upon the values in the first row and the 3rd or 6th row.

for example
(CO AURORA) + (MID GRD 3-WAY (RVP870) should return 3.207
(CO AURORA) + (ETHANOL) should return 2.72
(CO DUPONT) + (ETHANOL) should return 2.91

I can easily pull the mid grd numbers, but the ethanol from the 2nd set of columns is causing me to have fits.
in the example I am only using 2 locations, but in reality I have 7 locations with 10 different fuels each, so I really need to be able to pull the data as it is formatted if possible.

Code:
CO AURORA	2/17/2013	UL RVP 7.8# 10% ET850	-0.0150	3.095	E-85 70% Eth/30% U825	-0.0189	2.61
CO AURORA	2/18/2013	MID GRD 3-WAY (RVP870	-0.0100	3.207	PUL RVP 7.8#      885	-0.015	3.41
CO AURORA	2/19/2013	PUL RVP 7.8# 10% E910	-0.0150	3.4225	ETHANOL           	0	2.72
CO DUPONT	2/20/2013	UL RVP 7.8# 10% ET850	0.0000	5.16	E-85 70% Eth/30% U825	-0.015	3.25
CO DUPONT	2/21/2013	MID GRD 3-WAY (RVP870	-0.0150	3.0267	PUL RVP 7.8#      885	-0.015	3.25
CO DUPONT	2/22/2013	PUL RVP 7.8# 10% E910	-0.0150	3.0307	ETHANOL           	-0.015	2.91

looking for the code that I can use to pull from the above example to this new sheet I am making up

Code:
	(PUL RVP 7.8# 10% E910)	(BIO DIESEL)	(ETHANOL)  (and so on)
CO AURORA	
MN ALEXANDRIA			
CO DUPONT			
CO COMMERCE CITY

Thank you once again for any and all help / ideas.

Taz
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Are you trying to go from:

Code:
CO AURORA	2/17/2013	UL RVP 7.8# 10% ET850	-0.0150	3.095	E-85 70% Eth/30% U825	-0.0189	2.61
CO AURORA	2/18/2013	MID GRD 3-WAY (RVP870	-0.0100	3.207	PUL RVP 7.8#      885	-0.015	3.41
CO AURORA	2/19/2013	PUL RVP 7.8# 10% E910	-0.0150	3.4225	ETHANOL           	0	2.72
CO DUPONT	2/20/2013	UL RVP 7.8# 10% ET850	0.0000	5.16	E-85 70% Eth/30% U825	-0.015	3.25
CO DUPONT	2/21/2013	MID GRD 3-WAY (RVP870	-0.0150	3.0267	PUL RVP 7.8#      885	-0.015	3.25
CO DUPONT	2/22/2013	PUL RVP 7.8# 10% E910	-0.0150	3.0307	ETHANOL           	-0.015	2.91

to this:


Excel 2010
ABCDEFG
3Sum of No2Column Labels
4Row LabelsE-85 70% Eth/30% U825ETHANOLMID GRD 3-WAY (RVP870PUL RVP 7.8# 885PUL RVP 7.8# 10% E910UL RVP 7.8# 10% ET850
5CO AURORA2.612.723.2073.413.42253.095
6CO DUPONT3.252.913.02673.253.03075.16
Sheet8


?
 
Upvote 0
The number of locations/fuels isn't a problem, and if the number of column groups is just two, you can copy the second group, paste it under the first like this:


Excel 2010
ABCDE
1LocDateType1No1No2
2CO AURORA2/17/2013UL RVP 7.8# 10% ET850-0.0153.095
3CO AURORA2/18/2013MID GRD 3-WAY (RVP870-0.013.207
4CO AURORA2/19/2013PUL RVP 7.8# 10% E910-0.0153.4225
5CO DUPONT2/20/2013UL RVP 7.8# 10% ET85005.16
6CO DUPONT2/21/2013MID GRD 3-WAY (RVP870-0.0153.0267
7CO DUPONT2/22/2013PUL RVP 7.8# 10% E910-0.0153.0307
8CO AURORA2/17/2013E-85 70% Eth/30% U825-0.0192.61
9CO AURORA2/18/2013PUL RVP 7.8# 885-0.0153.41
10CO AURORA2/19/2013ETHANOL02.72
11CO DUPONT2/20/2013E-85 70% Eth/30% U825-0.0153.25
12CO DUPONT2/21/2013PUL RVP 7.8# 885-0.0153.25
13CO DUPONT2/22/2013ETHANOL-0.0152.91
Sheet6 (2)


then set a pivot table with loc as row, type1 as columns, No2 as values:


Excel 2010
ABCDEFG
3Sum of No2Column Labels
4Row LabelsE-85 70% Eth/30% U825ETHANOLMID GRD 3-WAY (RVP870PUL RVP 7.8# 885PUL RVP 7.8# 10% E910UL RVP 7.8# 10% ET850
5CO AURORA2.612.723.2073.413.42253.095
6CO DUPONT3.252.913.02673.253.03075.16
Sheet8


Tell me if I missed something, in which case you might need a macro to unpivot the original table.
 
Upvote 0
first off - thank you for the help :)
I was hoping NOT to have to move the data around like this, but I think it will have to be done...
so that being said... I just started researching getpivotdata function

How do I use this to pull custom data?

I have started with =GETPIVOTDATA("PRICE",Frontier!M5,"name",B$30,"PRODUCT - BRANDED",$A31)

the "A" column will have different locations and the "30" row will have different products NOT in the same order and fewer types then the pivot table(s) will have.

thank you again for the help and hand leading LOL :)
 
Upvote 0
ooppppsss... I made a major mistake and swapped my variable locations...

=GETPIVOTDATA("PRICE",Frontier!M5,"name",$A31,"PRODUCT - BRANDED",B$30
is now corrected

1 last question for the experts
I have a certain product lets say unleaded, which can also be known by NL, NL 10%, NL10%, 87NL10%, and so on.....
can I create a way / table that understands when looking for matching "Product" of Unleaded, it will also look up the aliases of it as well??
 
Upvote 0
Well you can't use wildcards in GETPIVOTDATA as far as I know, but you can with lookup and conditional sum/counting formulas.
 
Upvote 0
wildcards will not work for my issues as there are too many variables, I need to be able to use aliases for a single name as 1 name might have 6-10 different aliases depending on the number of different suppliers... and there might be more needed if a supplier is added or if they change their wording of a product..
In my mind cell A1 would have a name of "Unleaded" which could also mean NL, NL 10%, NL10%, 87NL10% which should be all listed in cells D4-D7 as the aliases of A1

not too sure if this is possible..
 
Upvote 0
If you have a table of aliases then a formula will work:


Excel 2010
ABCDEFG
1ColorNumberAliasColor
2Silver2SilverWhite
3Blue6WhiteWhite
4Orange5GrayGray
5White3LightGrayGray
6Gray2DarkGrayGray
7LightGray1TanTan
8DarkGray1BeigeTan
9Tan9LightBrownTan
10Beige6MediumBrownTan
11LightBrown2
12
13Gray4
Sheet12
Cell Formulas
RangeFormula
B13{=SUM(ISNUMBER(MATCH($A$2:$A$11,IF($G$2:$G$10=A13,$F$2:$F$10),0))*$B$2:$B$11)}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
i will look at implementing that as another step -
thanks to your help I have almost completed my project - then its verifying and tweaking :)
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,698
Members
448,979
Latest member
DET4492

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