moving numbers from one sheet to another sheet in a work book

peugenej

New Member
Joined
Dec 14, 2008
Messages
17
Im using excell 2007.I have a number total in cell b40 sheet #2 I would like to copy that number to cell g5 sheet # 1 to be added to a total on that sheet and I am not sure how to do this. Would someone be able to help me with this. Thank you
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Try

Code:
With Sheet1.Range("G5")
.Value = .Value + Sheet2.range("B40").Value
End With
 
Upvote 0
I enter sheet2!b40 and I got #ref!. I didnt get the number that was in b40. Im using excell 2007 with windows xp I thought that would work.I think its something like that. Thank you
 
Upvote 0
You need to use VBA for this type of thing. This is not something a worksheet function can do.
 
Upvote 0
this formula worked =sheet2!B40. I changed the sheet name to budget and when I change to =budget2!b40 it worked fine. Sorry i left that change out. Thank you very much.
 
Upvote 0

Forum statistics

Threads
1,224,550
Messages
6,179,463
Members
452,915
Latest member
hannnahheileen

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