Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / November 2007

Tip: Looking for answers? Try searching our database.

Data Form, Countif and Macro

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
helen wheels - 23 Nov 2007 21:16 GMT
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 -
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.