Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Adding Cells


Hi,

Does anyone have any suggestions for the following:

I would like to add the last cell in column B (The row varies daily) o
sheet 1 to the existing amount on Sheet 2 Cell A2.

For example the last cell on Sheet 1 column B is $100. The amount o
Sheet 2 Cell A2 is $5. I would like a Macro that would find the las
cell on Sheet 1 Column B and add it to the existing value of Cell A
Sheet 2 to create a new cell value of $105.

Any help would be greatly appreciated

--
STEVE
-----------------------------------------------------------------------
STEVEB's Profile: http://www.excelforum.com/member.php...nfo&userid=187
View this thread: http://www.excelforum.com/showthread.php?threadid=48329

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Adding Cells

Try this

Sub test()
Sheets("sheet2").Range("A2").Value = Sheets("sheet2").Range("A2").Value + _
Sheets("sheet1").Range("B" & Rows.Count).End(xlUp).Value
End Sub


--
Regards Ron de Bruin
http://www.rondebruin.nl


"STEVEB" wrote in message
...

Hi,

Does anyone have any suggestions for the following:

I would like to add the last cell in column B (The row varies daily) on
sheet 1 to the existing amount on Sheet 2 Cell A2.

For example the last cell on Sheet 1 column B is $100. The amount on
Sheet 2 Cell A2 is $5. I would like a Macro that would find the last
cell on Sheet 1 Column B and add it to the existing value of Cell A2
Sheet 2 to create a new cell value of $105.

Any help would be greatly appreciated.


--
STEVEB
------------------------------------------------------------------------
STEVEB's Profile: http://www.excelforum.com/member.php...fo&userid=1872
View this thread: http://www.excelforum.com/showthread...hreadid=483297



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Adding Cells


Thanks Ron,

Everything worked great! I really appreciate your help!


--
STEVEB
------------------------------------------------------------------------
STEVEB's Profile: http://www.excelforum.com/member.php...fo&userid=1872
View this thread: http://www.excelforum.com/showthread...hreadid=483297

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Adding Cells

You are welcome

--
Regards Ron de Bruin
http://www.rondebruin.nl


"STEVEB" wrote in message
...

Thanks Ron,

Everything worked great! I really appreciate your help!


--
STEVEB
------------------------------------------------------------------------
STEVEB's Profile: http://www.excelforum.com/member.php...fo&userid=1872
View this thread: http://www.excelforum.com/showthread...hreadid=483297



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding Cells stkrka Excel Discussion (Misc queries) 4 February 2nd 10 03:17 AM
Need help w/ adding cells and dividing SUM by number of cells lnbegin Excel Worksheet Functions 4 September 26th 07 04:26 PM
Sum not adding cells. carrera Excel Discussion (Misc queries) 3 June 12th 07 10:27 PM
ADDING CELLS Scott Excel Discussion (Misc queries) 1 March 15th 07 05:37 PM
Adding colour to a range of cells based on one of the cells v... McKenna Excel Discussion (Misc queries) 4 March 11th 05 02:25 PM


All times are GMT +1. The time now is 12:43 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"