WednesdayC
Board Regular
- Joined
- Nov 7, 2010
- Messages
- 201
- Office Version
- 2016
- Platform
- MacOS
Hi All
I found the following formula which almost gives the results I require:-
<style>table { }.font5 { color: black; font-size: 9pt; font-weight: 700; font-style: normal; text-decoration: none; font-family: Arial, serif; }.font6 { color: black; font-size: 9pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: Arial, serif; }td { padding: 0px; color: windowtext; font-size: 11pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: Arial, serif; vertical-align: bottom; border: medium none; white-space: nowrap; }.xl102 { background: rgb(216, 228, 188) none repeat scroll 0% 0%; }.xl103 { font-family: Calibri; }.xl104 { font-family: Calibri; }</style> [TABLE="width: 75"]
<colgroup><col style="width:75pt" width="75"> </colgroup><tbody>[TR]
[TD="class: xl102, width: 75"]=IF(A3<>A2,SUM($M$2:M2)-SUM($N$1:N1),"")
[/TD]
[/TR]
</tbody>[/TABLE]
However, this places the result on the last entry of N before the values in column A changes.
I need the result to be in the first cell of N per group i.e. the first entry of any batch of identical cell values in A, and I can't work out how to adapt this.
I do not wish to use the sub-total function.
Can this be achieved please?
Many thanks
Wednesday
I found the following formula which almost gives the results I require:-
<style>table { }.font5 { color: black; font-size: 9pt; font-weight: 700; font-style: normal; text-decoration: none; font-family: Arial, serif; }.font6 { color: black; font-size: 9pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: Arial, serif; }td { padding: 0px; color: windowtext; font-size: 11pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: Arial, serif; vertical-align: bottom; border: medium none; white-space: nowrap; }.xl102 { background: rgb(216, 228, 188) none repeat scroll 0% 0%; }.xl103 { font-family: Calibri; }.xl104 { font-family: Calibri; }</style> [TABLE="width: 75"]
<colgroup><col style="width:75pt" width="75"> </colgroup><tbody>[TR]
[TD="class: xl102, width: 75"]=IF(A3<>A2,SUM($M$2:M2)-SUM($N$1:N1),"")
[/TD]
[/TR]
</tbody>[/TABLE]
However, this places the result on the last entry of N before the values in column A changes.
I need the result to be in the first cell of N per group i.e. the first entry of any batch of identical cell values in A, and I can't work out how to adapt this.
I do not wish to use the sub-total function.
Can this be achieved please?
Many thanks
Wednesday