Using formula how to extract data depending on two values

sprakash1704

New Member
Joined
Mar 5, 2015
Messages
28
Dear Experts!

Relatively I am new to this forum, when I say relatively, I have been using this forum just to search and get answers for all my excel related queries for almost 6 years now and haven't posted anything or even registered. Thanks to all the experts who have helped me so for!

The question I have here is based on the table provided below. The data and headers in the column is fluctuating as this is a pivot, I will need to refer the pivot and will be extracting the required data based on "Emp ID". Need Help in doing this by formula, as I am not coding expert and I love working with formulas.

Experts I require this quite urgently, so please help!!!!!



Emp IDJanFebMarJulAugSepOctNovDec
227054888.47 195.35170.185635.555263.226038.224787.535081.35
31799 5487.5 1388.691314.111182.741311.87712.11807.24
399744063.28 6090.464595.357673.247280.153753.644459.22
576834212.66159.42 4363.844372.544251.255323.534084.274063.28
57794 5569.825751.95696.696038.894378.914467.81
61546 40.19 4733.944664.963729.115026.334609.515487.5
615472435.05 5086.475191.554810.993932.634715.964212.66
667514467.81 5979.455475.142220.975752.753794.564888.47
71060 5512.42 2014.37 1786.682434.342175.931375.38
77571 50.21 4799.737239.916204.315383.254883.975300.31
90537 126.444909.144511.425032.85749.052075.375066.75

<colgroup><col><col span="9"></colgroup><tbody>
</tbody>


Kind Regards,
Prakash
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Just to add below is the data sample

Sheet 1

NameJanuaryFebruaryMarchApril
A 12.00 99.00 102.00 114.00
B 17.00 99.00 181.00 263.00
C 22.00 104.00 186.00 268.00
D 27.00 109.00 191.00 273.00
E 32.00 114.00 196.00 278.00
F 44.00 126.00 208.00 290.00
G 56.00 138.00 220.00 302.00
H 68.00 150.00 232.00 314.00
I 69.00 151.00 233.00 315.00
J 70.00 152.00 234.00 316.00
K 78.00 160.00 242.00 324.00
L 86.00 168.00 250.00 332.00
M 94.00 176.00 258.00 340.00

<colgroup><col width="80" span="5" style="width:60pt"> </colgroup><tbody>
</tbody>


Sheet 2

NameJanApril
A 12.00 114.00
B 17.00 263.00
C 22.00 268.00
D 27.00 273.00
E 32.00 278.00
F 44.00 290.00
G 56.00 302.00
H 68.00 314.00
I 69.00 315.00
J 70.00 316.00
K 78.00 324.00
L 86.00 332.00
M 94.00 340.00

<colgroup><col width="80" span="3" style="width:60pt"> </colgroup><tbody>
</tbody>
 
Upvote 0
We need to add left to extract the 1st 3 char of month then match.
What are the data ranges?
 
Upvote 0
No , Gaz, this is the sample data that I have posted.

for instance if in sheet 1 its "Walmart", in sheet 2 it would be "Supercenter"
 
Upvote 0
Sorry Gaz, for the confusion.

I'll rephrase the table.

Sheet 1Sheet 2
Walmart=Supercenter
Amazon=Online store
Target=Superstore
Bestbuy=Consumer Electronics

<colgroup><col><col><col></colgroup><tbody>
</tbody>

Sheet1

NameWalmartAmazonTargetBestbuy
A 12.00 99.00 102.00 114.00
B 17.00 99.00 181.00 263.00
C 22.00 104.00 186.00 268.00
D 27.00 109.00 191.00 273.00
E 32.00 114.00 196.00 278.00
F 44.00 126.00 208.00 290.00
G 56.00 138.00 220.00 302.00
H 68.00 150.00 232.00 314.00
I 69.00 151.00 233.00 315.00
J 70.00 152.00 234.00 316.00
K 78.00 160.00 242.00 324.00
L 86.00 168.00 250.00 332.00
M 94.00 176.00 258.00 340.00

<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>

Sheet2

NameSupercenterConsumer Electronics
A 12.00 114.00
B 17.00 263.00
C 22.00 268.00
D 27.00 273.00
E 32.00 278.00
F 44.00 290.00
G 56.00 302.00
H 68.00 314.00
I 69.00 315.00
J 70.00 316.00
K 78.00 324.00
L 86.00 332.00
M 94.00 340.00

<colgroup><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
sheet2 B2 =INDEX(Sheet1!$A$1:$E$14,MATCH($A2,Sheet1!$A$1:$A$14,0),MATCH(VLOOKUP(B$1,$H$1:$I$5,2,0),Sheet1!$A$1:$E$1,0))

H1:I5 changes in the names Sheet2 (H-New name) Sheet1 (L-Old name)

Sridhar
 
Upvote 0

Forum statistics

Threads
1,216,080
Messages
6,128,692
Members
449,464
Latest member
againofsoul

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