Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
LAF
 
Posts: n/a
Default Checking if different items are in a list


I have a range with 1 column and 100 rows. Sometimes the range has some
blank cells and sometimes it has items in it that may be the same or
different. Is there a function that I can use to tell if the range has
more than 1 different type value in it, excluding the blank cells? For
example, if I have 5 rows with "apple" in that range and the rest are
blank, I don't need to do anything. If I have 5 rows with "apple" and
3 rows with "grapes" in that range, then I want to know that does exist
and display a message.


--
LAF
------------------------------------------------------------------------
LAF's Profile: http://www.excelforum.com/member.php...fo&userid=9656
View this thread: http://www.excelforum.com/showthread...hreadid=500164

  #2   Report Post  
Posted to microsoft.public.excel.misc
Ron Coderre
 
Posts: n/a
Default Checking if different items are in a list


If the range is A1:A100...try this:

B1: =SUMPRODUCT((A1:A100<"")/COUNTIF(A1:A100,A1:A100&""))
That function counts the number of non-blank unique values.

Does that help?

Regards,
Ron


--
Ron Coderre
------------------------------------------------------------------------
Ron Coderre's Profile: http://www.excelforum.com/member.php...o&userid=21419
View this thread: http://www.excelforum.com/showthread...hreadid=500164

  #3   Report Post  
Posted to microsoft.public.excel.misc
LAF
 
Posts: n/a
Default Checking if different items are in a list


Yes, that worked. Thank you!


--
LAF
------------------------------------------------------------------------
LAF's Profile: http://www.excelforum.com/member.php...fo&userid=9656
View this thread: http://www.excelforum.com/showthread...hreadid=500164

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
Make typing "jump" to matching item(s) in drop-down list? Kathy Excel Discussion (Misc queries) 4 November 22nd 05 10:25 PM
Checking for duplicate items in list TheRobsterUK Excel Worksheet Functions 3 November 10th 05 06:03 PM
Numbering items from a list in order Natalie Excel Discussion (Misc queries) 8 October 30th 05 10:43 PM
named range, data validation: list non-selected items, and new added items KR Excel Discussion (Misc queries) 1 June 24th 05 05:21 AM
Making list of items to truck monthly usage Yarek Excel Discussion (Misc queries) 0 June 23rd 05 10:37 AM


All times are GMT +1. The time now is 02:45 PM.

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"