#1   Report Post  
vipa2000
 
Posts: n/a
Default count problem

I am trying to setup a spreadsheet where data will be imported in from
another package into a sheet within the spreadsheet on a monthly basis. On
another sheet I am trying to setup various formula that will analyse this
data automatically. Normally i would use Access but other people within the
company do not understand Access. The issue:-

I can't get the count function or any derivative to do what i want. Example
of problem below.
A b c d e
120873 50183368 6 blank REL NMAT PRC SETC
120873 50183299 4 blank CLSD PRT NMAT PRC
122873 50185108 3 blank PCNF NMAT PRC SETC
122873 50178522 3 HUDS002277 TECO PCNF PRT NMAT
122873 50147658 5 HUDS003115 REL NMAT PRC SETC

I want to total the no of records in column A but deduct those records in
column d where a record is found with a hud prefix

--
Regards vipa
  #2   Report Post  
KL
 
Posts: n/a
Default

Hi vipa,

Try this:

=COUNT($A$2:$A$6)-COUNTIF($D$2:$D$6,"HUD*")

Regards,
KL


"vipa2000" wrote in message
...
I am trying to setup a spreadsheet where data will be imported in from
another package into a sheet within the spreadsheet on a monthly basis. On
another sheet I am trying to setup various formula that will analyse this
data automatically. Normally i would use Access but other people within
the
company do not understand Access. The issue:-

I can't get the count function or any derivative to do what i want.
Example
of problem below.
A b c d
e
120873 50183368 6 blank REL NMAT PRC SETC
120873 50183299 4 blank CLSD PRT NMAT PRC
122873 50185108 3 blank PCNF NMAT PRC SETC
122873 50178522 3 HUDS002277 TECO PCNF PRT NMAT
122873 50147658 5 HUDS003115 REL NMAT PRC SETC

I want to total the no of records in column A but deduct those records in
column d where a record is found with a hud prefix

--
Regards vipa



  #3   Report Post  
KL
 
Posts: n/a
Default

sorry, actually meant this:

=COUNTA($A$2:$A$6)-COUNTIF($D$2:$D$6,"HUD*")

KL



"KL" wrote in message
...
Hi vipa,

Try this:

=COUNT($A$2:$A$6)-COUNTIF($D$2:$D$6,"HUD*")

Regards,
KL


"vipa2000" wrote in message
...
I am trying to setup a spreadsheet where data will be imported in from
another package into a sheet within the spreadsheet on a monthly basis.
On
another sheet I am trying to setup various formula that will analyse this
data automatically. Normally i would use Access but other people within
the
company do not understand Access. The issue:-

I can't get the count function or any derivative to do what i want.
Example
of problem below.
A b c d e
120873 50183368 6 blank REL NMAT PRC SETC
120873 50183299 4 blank CLSD PRT NMAT PRC
122873 50185108 3 blank PCNF NMAT PRC SETC
122873 50178522 3 HUDS002277 TECO PCNF PRT NMAT
122873 50147658 5 HUDS003115 REL NMAT PRC SETC

I want to total the no of records in column A but deduct those records in
column d where a record is found with a hud prefix

--
Regards vipa





  #4   Report Post  
Sandy Mann
 
Posts: n/a
Default

"KL" wrote in message
...
Hi vipa,

Try this:

=COUNT($A$2:$A$6)-COUNTIF($D$2:$D$6,"HUD*")


Assumes that every entry in column D with "Hud*" has a corresponding entry
in Column A which may or may not be true. I would suggest:

=SUMPRODUCT(--(A1:A5<""),--(LEFT(D1:D5,3)="HUD"))
--
HTH

Sandy

Replace@mailinator with @tiscali.co.uk



  #5   Report Post  
CLR
 
Posts: n/a
Default

One way would be to Autofilter Custom "does not equal"
HUD*..........and then use =SUBTOTAL,2,A:A)

Vaya con Dios,
Chuck CABGx3



"vipa2000" wrote in message
...
I am trying to setup a spreadsheet where data will be imported in from
another package into a sheet within the spreadsheet on a monthly basis. On
another sheet I am trying to setup various formula that will analyse this
data automatically. Normally i would use Access but other people within

the
company do not understand Access. The issue:-

I can't get the count function or any derivative to do what i want.

Example
of problem below.
A b c d

e
120873 50183368 6 blank REL NMAT PRC SETC
120873 50183299 4 blank CLSD PRT NMAT PRC
122873 50185108 3 blank PCNF NMAT PRC SETC
122873 50178522 3 HUDS002277 TECO PCNF PRT NMAT
122873 50147658 5 HUDS003115 REL NMAT PRC SETC

I want to total the no of records in column A but deduct those records in
column d where a record is found with a hud prefix

--
Regards vipa





  #7   Report Post  
vipa2000
 
Posts: n/a
Default

Thanks KL. worked fine.
--
Regards vipa


"KL" wrote:

sorry, actually meant this:

=COUNTA($A$2:$A$6)-COUNTIF($D$2:$D$6,"HUD*")

KL



"KL" wrote in message
...
Hi vipa,

Try this:

=COUNT($A$2:$A$6)-COUNTIF($D$2:$D$6,"HUD*")

Regards,
KL


"vipa2000" wrote in message
...
I am trying to setup a spreadsheet where data will be imported in from
another package into a sheet within the spreadsheet on a monthly basis.
On
another sheet I am trying to setup various formula that will analyse this
data automatically. Normally i would use Access but other people within
the
company do not understand Access. The issue:-

I can't get the count function or any derivative to do what i want.
Example
of problem below.
A b c d e
120873 50183368 6 blank REL NMAT PRC SETC
120873 50183299 4 blank CLSD PRT NMAT PRC
122873 50185108 3 blank PCNF NMAT PRC SETC
122873 50178522 3 HUDS002277 TECO PCNF PRT NMAT
122873 50147658 5 HUDS003115 REL NMAT PRC SETC

I want to total the no of records in column A but deduct those records in
column d where a record is found with a hud prefix

--
Regards vipa






Reply
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
count function problem nkidd Excel Worksheet Functions 4 July 7th 05 08:55 PM
Count With Date Problem rbdude Excel Worksheet Functions 2 June 8th 05 02:47 AM
Count Position of Filtered TEXT cells in a column Sam via OfficeKB.com Excel Worksheet Functions 8 May 18th 05 04:23 AM
Count and Sum with Conditional Formatting Problem pmahajan Excel Worksheet Functions 1 December 14th 04 05:30 AM
Count data entries and date problem Gef Excel Worksheet Functions 5 November 4th 04 02:30 PM


All times are GMT +1. The time now is 06:35 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"