Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Formula or VBA code help

Hi!
I am new to excel and I need some generous help to solve my problem.
Hopefully there are someone kind in enough to help me.
Any way I thank you in advance.
I like Excel to count using only the unrepeated nos in Row1(A1:A4) are
repeating against the unrepeated nos in the range (A3:D6).

e.g.

A B C D E
Row1 0 0 1 2

Row3 0 0 0 0 1x
Row4 0 0 0 1 2x
Row5 0 0 0 2 2x
Row6 0 1 2 3 3x

How can I let excel to compare between Row1 against each row (Row3 to
Row6) and give me the answer in E3:E6



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Formula or VBA code help

You have already been given an answer to this question or a very similar
question.

Why not start with why that solution does not work.

--
Regards,
Tom Ogilvy

"Michael168" wrote in message
...
Hi!
I am new to excel and I need some generous help to solve my problem.
Hopefully there are someone kind in enough to help me.
Any way I thank you in advance.
I like Excel to count using only the unrepeated nos in Row1(A1:A4) are
repeating against the unrepeated nos in the range (A3:D6).

e.g.

A B C D E
Row1 0 0 1 2

Row3 0 0 0 0 1x
Row4 0 0 0 1 2x
Row5 0 0 0 2 2x
Row6 0 1 2 3 3x

How can I let excel to compare between Row1 against each row (Row3 to
Row6) and give me the answer in E3:E6



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Formula or VBA code help

The formula you give calculate wrongly if the nos in A1:D1 are repeating
or duplicate.

That's why I am seeking for help again.

Plse try to help me again.

Thank you to Tom.

With Regards.
Michael168



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Formula or VBA code help

OK - but it is best to remain in the same thead and provide that type of
feedback - then people can begin to work from that solution as a
possibility.

=(COUNTIF($A3:$D3,$A$1)0)+IF($A$1<$B$1,(COUNTIF( $A3:$D3,$B$1)0),0)+IF(COU
NTIF($A$1:$B$1,$C$1)=0,(COUNTIF($A3:$D3,$C$1)0),0 )+IF(COUNTIF($A$1:$C$1,$D$
1)=0,(COUNTIF($A3:$D3,$D$1)0),0)

in E3, then drag fill down to E6
provides the counts you show.

--
Regards,
Tom Ogilvy

"Michael168" wrote in message
...
The formula you give calculate wrongly if the nos in A1:D1 are repeating
or duplicate.

That's why I am seeking for help again.

Plse try to help me again.

Thank you to Tom.

With Regards.
Michael168



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/



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
formula code nobbyknownowt Excel Discussion (Misc queries) 5 August 10th 06 05:40 PM
formula or code Monty Excel Worksheet Functions 10 January 10th 05 09:06 AM
SUM Formula using code Sony[_2_] Excel Programming 1 August 27th 03 09:34 AM
Formula or code Jim[_15_] Excel Programming 0 July 9th 03 05:51 PM
Formula or code John Gittins Excel Programming 0 July 9th 03 04:16 PM


All times are GMT +1. The time now is 12:25 AM.

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

About Us

"It's about Microsoft Excel"