#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 50
Default Auto numbering

Dear all
I need assist for couple of functions.
Two same problems with different perspective:
1) I have in column B sum entries like
B1 Aplle
B2 Orange
B3
B4 Apple

How is it possible in column A to run a function which will count
automaticaly only the rows of column B that have input. In the previous
example i want to get for B1=1, B2=2, B3, B4=3

Also 2) There is the possibility to have
B1 Aplle
B2 Orange
B3 NO
B4 Apple

In column A to count again the liines of COlumn B but not those that have
the "NO" and not duplicate in column B
So as a result again
A1=1
A2=2
A3
A4

Thanks in advance
Manos

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Auto numbering

.. is it possible in column A to run a function which will count
automatically only the rows of column B that have input


In A2: =IF(B2="","",COUNTA(B$2:B2))
Copy down
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:20,000 Files:362 Subscribers:62
xdemechanik
---
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Auto numbering

... to count again the lines of Column B
but not those that have the "NO"
and not duplicate in column B


In C2:
=IF(B2="","",IF(SUMPRODUCT((B$2:B2<"No")*(B$2:B2= B2))<1,"",SUMPRODUCT((B$2:B2<"No")*(B$2:B2=B2))) )

In D2:
=IF(C2="","",COUNT(C$2:C2))
Select C2:D2, copy down as far as required
Results that you seek will appear in col D
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:20,000 Files:362 Subscribers:62
xdemechanik
---
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 50
Default Auto numbering

Sorry i am comfuse

I want to count the previous and if No just not to count.
the cell could be either empyt or no


"Max" wrote:

... to count again the lines of Column B
but not those that have the "NO"
and not duplicate in column B


In C2:
=IF(B2="","",IF(SUMPRODUCT((B$2:B2<"No")*(B$2:B2= B2))<1,"",SUMPRODUCT((B$2:B2<"No")*(B$2:B2=B2))) )

In D2:
=IF(C2="","",COUNT(C$2:C2))
Select C2:D2, copy down as far as required
Results that you seek will appear in col D
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:20,000 Files:362 Subscribers:62
xdemechanik
---

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Auto numbering

Think it works ok. Why don't you just try it out?
Separately, you asked 2 questions, and I gave you 2 suggestions
Empty cells are taken care of. These won't show up.
And do take a moment to press the "Yes" buttons (like the ones below).
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:20,000 Files:362 Subscribers:62
xdemechanik
---
"Manos" wrote:
Sorry i am confuse

I want to count the previous and if No just not to count.
the cell could be either empty or no


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
Auto Numbering Excel Man Excel Discussion (Misc queries) 11 February 14th 08 12:35 AM
auto numbering Joe Black Excel Discussion (Misc queries) 2 January 19th 06 02:27 AM
Auto Numbering Andy JL New Users to Excel 3 November 23rd 05 05:09 AM
Auto Numbering jharkins Excel Discussion (Misc queries) 2 July 28th 05 11:46 PM
auto numbering Tricky Nicky Excel Discussion (Misc queries) 2 December 29th 04 05:44 PM


All times are GMT +1. The time now is 11:06 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"