Need a code modified

ipbr21054

Well-known Member
Joined
Nov 16, 2010
Messages
5,832
Office Version
  1. 2007
Platform
  1. Windows
Hi,
I have the following code which works well but i need it altered so i can subtract another figure from another excel worksheet.
The code i currently use is as follows,
=SUM('INCOME (1)'!G32 -'EXPENSES (2)'!K32)

This is a very simple code in that it just subtracts the figure on my expenses sheet from the figure on my income sheet.
The extra bit of code i need added etc is a figure from my mileage sheet in cell c32
What i am currently doing is taking my original figure then manualy subtracting the figure in the cell c32 on the mileage sheet.Just thought it would be good if the figures would do the magic as input is added.
Been trying to work it out but no luck so far.
Thanks
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
If the patter follows on the sheetnames, your description would suggest

=SUM('INCOME (1)'!G32 -'EXPENSES (2)'!K32)-'MILEAGE (3)'!C32
 
Upvote 0
Hi
When i enter that code i get a box appear asking to update values ?
 
Upvote 0
You didn't give the exact name of the mileage sheet so i had to guess.

=SUM('INCOME (1)'!G32 -'EXPENSES (2)'!K32)-'MILEAGE (3)'!C32

you need to edit that to match your sheet name
 
Upvote 0
Now sorted
I removed the (3) as the others were page (1) on income and (2) on expenses,and i only have 1 mileage sheet.

Thanks for the quick reply
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,850
Members
452,948
Latest member
UsmanAli786

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