Formula for copying data from one sheet to another

shamsu203

Board Regular
Joined
Jun 12, 2014
Messages
70
Office Version
  1. 365
Platform
  1. Windows
Hi
I have two worksheet as follows
1) Summary sheet 2 ) Expense sheet
Summary sheet
Cell B2 is a drop down list of items
Cell E2 drop down list of years ("yearly,2008,2009,2010)
Column B14 to B20 list of items ( same as b2 but not a drop down list)
Expense List
Column A 2 to A9 is a list of items same a B2 and B14 to B20
Row 2 C2 to Y2 is for dates in the format 1-04-20
row 3 c3 to Y3 contains values shown a negative to show as expense
I am trying to set a formula whereby based on cell B2 and E2 in the summary sheet relevent data would be copies to Cell ad 14 from the respective cell in the expense sheet
eg it b2 ="all" and E 2 is yearly the AD14=0,if B2 is="selfi",e2 ="yearly" then AD14 =0,if b2 =Selfi and e2 = 2010 the ad14 will show value of e3 from the expense sheet Clumn
Summary sheet column c and d are totals only . If e 2 is a specific year then AD 14 is apportioned for each month but if E 2 is yearly then the year total shown in the expense column will be shown in row row 14 and ad 14 will be blank/
Summary sheet
abceffad

MUNCIPAL TAX12
1​
2​
3​
4​
5​
6​
7​
8​
9​
10​
11​
12​
14
Selfi₹ 2,644.00₹ 2,644.00₹ 220.33₹ 220.33₹ 220.33₹ 220.33₹ 220.33₹ 220.33₹ 220.33₹ 220.33₹ 220.33₹ 220.33₹ 220.33₹ 220.33₹ 0.00₹ 2,644.00
15
₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00
₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 1,984.00
Selfi₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 1,404.00
2010₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 1,854.00
₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 1,686.00
₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00
MUNCIPAL TAX₹ 2,644.00₹ 2,644.00₹ 220.33₹ 220.33₹ 220.33₹ 220.33₹ 220.33₹ 220.33₹ 220.33₹ 220.33₹ 220.33₹ 220.33₹ 220.33₹ 220.33₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 0.00₹ 9,572.00
Expense sheet
PROPERTY TAXESTOTAL
01-04-08​
01-04-09​
01-04-10​
01-04-11​
01-04-12​
01-04-13​
01-04-14​
01-04-15​
01-04-16​
01-04-17​
01-04-18​
01-04-19​
01-04-20​
SELFI
₹ 33,938.00​
₹ 0​
₹ 0​
₹ 2,644​
₹ 2,644​
₹ 2,644​
₹ 3,614​
₹ 3,614​
₹ 3,614​
₹ 3,614​
₹ 3,616​
₹ 3,616​
704.00​
3614.00​
MAJOR
₹ 0.00​
₹ 0​
₹ 0​
₹ 0​
₹ 0​
₹ 0​
₹ 0​
₹ 0​
₹ 0​
₹ 0​
₹ 0​
₹ 0​
0.00​
0.00​
GLOBAL GF
₹ 25,122.00​
₹ 0​
₹ 0​
₹ 1,984​
₹ 1,984​
₹ 1,984​
₹ 3,195​
₹ 3,195​
₹ 3,195​
₹ 3,195​
₹ 3,195​
₹ 3,195​
0.00​
0.00​
GLOBAL 1
₹ 23,169.00​
₹ 0​
₹ 0​
₹ 1,404​
₹ 1,404​
₹ 1,404​
₹ 2,949​
₹ 2,949​
₹ 2,949​
₹ 2,949​
₹ 2,949​
₹ 2,949​
0.00​
1263.00​
GLOBAL 2
₹ 22,554.00​
₹ 0​
₹ 0​
₹ 1,854​
₹ 1,854​
₹ 1,854​
₹ 2,286​
₹ 2,286​
₹ 2,286​
₹ 2,286​
₹ 2,286​
₹ 2,286​
990.00​
2286.00​
GLOBAL 3
₹ 23,707.00​
₹ 0​
₹ 0​
₹ 1,686​
₹ 1,686​
₹ 1,686​
₹ 2,718​
₹ 2,718​
₹ 2,718​
₹ 2,718​
₹ 2,718​
₹ 2,718​
0.00​
2341.00​
CAPITAL MALL
₹ 84,329.00​
₹ 0​
₹ 0​
₹ 0​
₹ 0​
₹ 0​
₹ 0​
₹ 0​
₹ 10,390​
₹ 11,571​
₹ 17,341​
₹ 11,355​
16836.00​
16836.00​
TOTAL TAXES
₹ 212,819.00​
₹ 0.00​
₹ 0.00​
₹ 9,572.00​
₹ 9,572.00​
₹ 9,572.00​
₹ 14,762.00​
₹ 14,762.00​
₹ 25,152.00​
₹ 26,333.00​
₹ 32,105.00​
₹ 26,119.00​
₹ 18,530.00​
₹ 26,340.00​
I had tried to set up this formula which does not work any help provided would be appreicated . At the moment i am using nested if function in cell ad 14
IFERROR(IF(SUM(COUNTIF($B$2,{"all","selfi"})),IF($E$2<>"Yearly","",IF($E$2="yearly",0,INDEX(Expense!C3:Expense!Y3,(MATCH($E$2,INDEX(ROW($2009:$2025),0),0)*12+4)))),""),0)
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Forum statistics

Threads
1,215,038
Messages
6,122,798
Members
449,095
Latest member
m_smith_solihull

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