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


Hey,

I need a statement to put in a macro that will find two cells and sum
them putting the result in cell d4. The first cell is always d7 but the
second cell moves about every time the data is updated.

I'm at a bit of a loss as to how to find the second cell, it is always
3 to the left of a cell named sales so I thought I may be search for
the cell 'sales' and then use then use offset to get the cell 3 to the
left and then define a name for it so I could use it in the sum... but
this doesn't work as it gives the cell a reference rather then calling
it active.cell.

Can anyone this of a way of doing this? As I am a wee bit stumped.

Cheers

Hayley


--
Hru48
------------------------------------------------------------------------
Hru48's Profile: http://www.excelforum.com/member.php...o&userid=24895
View this thread: http://www.excelforum.com/showthread...hreadid=542085

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default finding two cells to sum


Works grand cheers


--
Hru48
------------------------------------------------------------------------
Hru48's Profile: http://www.excelforum.com/member.php...o&userid=24895
View this thread: http://www.excelforum.com/showthread...hreadid=542085

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default finding two cells to sum

glad one of them helped

--
Don Guillett
SalesAid Software

"Hru48" wrote in message
...

Works grand cheers


--
Hru48
------------------------------------------------------------------------
Hru48's Profile:
http://www.excelforum.com/member.php...o&userid=24895
View this thread: http://www.excelforum.com/showthread...hreadid=542085



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
Finding matching cells GARY Excel Discussion (Misc queries) 1 March 6th 09 07:40 AM
Finding Cells C. Brown Excel Worksheet Functions 3 March 29th 06 09:37 AM
Finding days between cells C and L where the cells may be empty Jack Excel Worksheet Functions 1 January 9th 06 06:47 PM
Finding Cells Bill[_30_] Excel Programming 1 September 30th 05 04:48 PM
Finding cells and summing variable cells Chris M.[_3_] Excel Programming 3 August 21st 03 09:13 PM


All times are GMT +1. The time now is 01:03 AM.

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"