Seems like you have to search for 5/1 and insert the FIRST formula in the next cell, then search for 5/2 and insert the SECOND formula in the next cell, then search for 5/3 and insert the THIRD formula in the next cell, and keep doing that until there are no more 5/1, 5/2 or 5/3.
If that's the drill, please ALSO post these details in Forum707 when you repost your question.
Skip, Just traded in my old subtlety... for a NUANCE!
There are EVENTS that can be used like the worksheet change event, but I don't see how you would use a sheet event to call a procedure, unless it were one particular cell.
Please explain what your business case is.
Skip, Just traded in my old subtlety... for a NUANCE!
Your data need to be organized like a proper table
[tt]
1 5/1 5
2 5/1 6
3 5/1 7
4 5/2 8
5 5/2 9
6 5/2 10
7 5/2 11
8 5/3 12
9 5/3 13
[/tt]
You can do this with a simple formula in the column C, But FIRST, you need a row of headings, which every proper table ought to have. Then in C2...
[tt]
=if(a2=a1,c1,a2)
[/tt]
and copy down thru all rows of data.
Copy column C and Edit > Paste Special - VALUES in column A. The delect column C
Make sure you have the Column A & B headings in row 1.
Select in your table.
Data > Subtotals is one way.
The SUMIF function is another way.
[tt]
C2: =SUMIF($A$2:$A$10,A2,$B$2:$B$10)
[/tt]
Of course, if your table goes to a column other than 10, use that column.
Skip, Just traded in my old subtlety... for a NUANCE!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.