LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Worksheet_BeforeDoubleClick subtract sum of cells below top cell

Hello All,

My first post on this forum.

In cells B2 to X21 I have a range of calculations that I use to work out the axle spacings of trucks.

Column B Column C Column D Column E Column F Column G
3885 1370 8200 1220 1220 = 4810 + 1000
= 1370/2 50 1220
3200 = 1370/2 = 1380/2
1220 3900
6245

Whe
Axle 1 to 2 = 3885 - 685 = 3200
Axle 2 to 3 = 1370
Axle 3 to 4 = 8200 - 50 - 685 - 1220 = 6245 OR 8200 - SUM(D3:D5) = 6245
Axle 4 to 5 = 1220
Axle 5 to 6 = 1220
Axle 6 to 7 = 5810 - 1220 - 690 = 3900 OR 5810 - SUM(G3:G4) = 3900

The first/top cell is the overall spacing between the axle groups.
A truck operator may just provide the spacing to the centre of the dolly or truck body, which means I need to work out the spacing for each of the axle groups.

I have found many, many instances of Worksheet_BeforeDoubleClick macros where you select the cell below and the double click will SUM all of the values above to a blank cell.

As some of my spacing calculations are formulas some of these SUM macros do not work.

I have other calculations below the range B2 to X21 so I would like to restrict the Worksheet_BeforeDoubleClick to just this range and also only apply to the double clicked cell.

The Worksheet_BeforeDoubleClick should use the top/first cell of each contiguous range and subtract the sum of all the values below.

I am hoping this all makes sense.

Regards, Dave
 
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
subtract a single cell from range of cells and then count tworrall Excel Worksheet Functions 8 October 16th 09 01:45 PM
Quick ? - Worksheet_BeforeDoubleClick Adam Excel Programming 2 September 29th 09 09:08 AM
Worksheet_BeforeDoubleClick() Jock Excel Programming 2 April 30th 09 02:58 PM
Worksheet_beforedoubleclick KC Excel Programming 2 October 11th 07 12:40 PM
Sub Worksheet_BeforeDoubleClick from elsewhere? Jack Sons Excel Discussion (Misc queries) 2 November 1st 05 08:22 PM


All times are GMT +1. The time now is 08:08 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"