I have a spreadsheet where I've used a form to enter a customer's
detail and the price of the ticket. I've got a macro that adds that
information to a worksheet.
I've then got a countif formula with absolute cell references to count
the number of people wanting which starter, starter 1, starter 2 or
starter 3.
The problem I have is that the macros is adding the data to the top of
the data in the worksheet by inserting a new row between the existing
data and below the heading, which means the countif isn't seeing the
newest data added to the sheet.
Any help would be greatly received.
Many thanks.
Pete_UK - 23 Nov 2007 22:29 GMT
Maybe you should change your COUNTIF formula so that it uses the full
column - instead of:
=COUNTIF(A$2:A$50,2)
change it to:
=COUNTIF($A:$A,2)
Hope this helps.
Pete
> I have a spreadsheet where I've used a form to enter a customer's
> detail and the price of the ticket. I've got a macro that adds that
[quoted text clipped - 12 lines]
>
> Many thanks.
helen wheels - 24 Nov 2007 11:05 GMT
Pete
Thank you so much for your help - it seems blindlingly obvious now!
Much appreciated - have a good weekend.
Helen
>Maybe you should change your COUNTIF formula so that it uses the full
>column - instead of:
[quoted text clipped - 25 lines]
>>
>> Many thanks.
Pete_UK - 24 Nov 2007 14:38 GMT
You're welcome, Helen - thanks for feeding back.
Pete
> Pete
>
[quoted text clipped - 38 lines]
>
> - Show quoted text -