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

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Also Just to add, the input data from which I am going to Pivot will not have all 12 months and there where this query actually raised. However the (sheet Eg A) in which I lookup the data from the pivot is constant, say jun to july will be displayed in the column, so If I pivot with only Jun, jul and aug data, I am unable to extract it in the (Sheet Eg A) with relevent to the emp ID
 
Upvote 0
theres a function called Getpivotdata
You can use it to get data from the summary but perhaps your table dont have the values there.

Instead of using static values in the funtion you can refer to the cells like ive done in my example below.
Code:
=GETPIVOTDATA("Sålt",E7,""&R1&"",""&R2&"")
 
Upvote 0
This the formula i used, you will need to change the ranges to suit
=INDEX(E18:O35,MATCH(M7,D18:D29,0),MATCH(N7,E15:M15,0))

M7 = Emp ID
N7 = Month (e.g. Aug)
 
Upvote 0
Hey Gaz,

would you be able to share a file with example, coz I am unable to decode this formula, I am such a dumb.
I tried to upload a sample file but I dont know how ! :(

See this is sample 1 - Pivot in sheet 2

Emp IDSepOctNovDecGrand Total
227055263.226038.224787.535081.3537059.82
317991182.741311.87712.11807.2413204.25
399747673.247280.153753.644459.2237915.34
576834251.255323.534084.274063.2830830.79
577945696.696038.894378.914467.8131904.02
615463729.115026.334609.515487.528291.54
615474810.993932.634715.964212.6630385.31
667512220.975752.753794.564888.4732579.15
710601786.682434.342175.931375.3815299.12

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

This is input sheet where I would want to extract the data from Pivot sheet

Emp IDMayJunJulAugSepOct
22705
31799
39974
57683
57794
61546
61547
66751
71060
Grand Total

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

So, ideally I dont have data May to Aug, so from Sep I should be able to populate data, does this makes sense ? hope I am not confusing toooooo much! Thanks for your help mate!
 
Upvote 0
What are the data ranges of your pivot? Top left cell & bottom right cell?I did upload file to Dropbox!
 
Upvote 0

Forum statistics

Threads
1,214,805
Messages
6,121,665
Members
449,045
Latest member
Marcus05

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