Formula to extract data based on Month & Year

howard

Well-known Member
Joined
Jun 26, 2006
Messages
6,603
Office Version
  1. 2021
Platform
  1. Windows
I have source data on Sheet1 for Jul 2017 (cell K1) on a particular workbook which is imported-see sample Data Below


I have July 2017 on another Workbook (K4) and would like to extract the figures for each dept pertaining to the month Applicable


I would like a formula to extract the data for the applicable month in J1 for e.g. data in row 2 applicable for Jul 2017 which in this example is-56,986, row3 which is -3,606 etc


It would be appreciated if someone can assist me






Book1
IJ
1BR1 NETT (PROFIT)/LOSS SUMMARY FOR Jul 2017
2Dept1-56,986
3Dept2-3,606
4Dept3-16,004
5Dept4-30,869
6Dept522,689
7
Sheet1
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
I don't understand, you want to have a function that after receiving the month tells you some data from other column based on the month it was given, right?
 
Upvote 0
I want a formula to extract the data from the source workbook (Sheet1) where the month and year are the same in both workbooks


For if the source Workbook contains Jul 2017 in say J1, then I want to extract the values from the source workbook that pertain to Jul 2017 in the destination workbook
 
Upvote 0
I have shown what the end result should look like. I have linked the cells in the source data.

I am look for a formula that extract the values in the source workbook sheet1 from J2:J6 pertaining to the same month



Excel 2012
ABCDEFGHIJK
4Oct 2016Nov 2016Dec 2016Jan 2017Feb 2017Mar 2017Apr 2017May 2017Jun 2017Jul 2017
5-56,986
6-3,606
7-16,004
8-30,869
922,689
Sheet1
Cell Formulas
RangeFormula
C4=+B4+31
 
Last edited:
Upvote 0
I have come up with a solution, but feel it can be improved upon. It would be appreciated if there is a better solution if someone come kindly assist me



Excel 2012
ABCDEFGHIJK
4Oct-2016Nov-2016Dec-2016Jan-2017Feb-2017Mar-2017Apr-2017May-2017Jun-2017Jul-2017
5-56,986
6-3,606
7-16,004
8-30,869
922,689
10
11
12
13
14
15
Sheet1
Cell Formulas
RangeFormula
C4=+B4+31
D4=+C4+31
E4=+D4+31
F4=+E4+31
G4=+F4+31
H4=+G4+31
I4=+H4+31
J4=+I4+31
K5=IF($K$4='[Branch Profits.xlsx]Sheet1'!$I$1,OFFSET('[Branch Profits.xlsx]Sheet1'!$J$1,ROW(1:1),0),0)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,021
Latest member
Mohamed Magdi Tawfiq Emam

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