+ Reply to Thread
Results 1 to 3 of 3

Countif to to choose number of items?

  1. #1
    Forum Contributor
    Join Date
    09-19-2003
    Posts
    226

    Countif to to choose number of items?

    Hi

    I have attached my example.

    Is there a simpler formula I can use that combines IF and COUNT functions. CountIf, maybe?

    I have, let's say, 17 items and I want to choose 5 items out of them. Each time I pick one I am told how many I have chosen. When I reach 5, I am told that I have chosen too many.

    Thanks

    Patish
    Attached Files Attached Files
    Patish

  2. #2
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Countif to to choose number of items?

    this should work....also depends on the version of XL

    Please Login or Register  to view this content.
    or

    Please Login or Register  to view this content.
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Countif to to choose number of items?

    One way...

    =IF(COUNT(B2:B18)>3,"CHOOSE ONLY 3 ITEMS","Items Chosen: "&COUNT(B2:B18))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 8
    Last Post: 06-21-2013, 04:35 PM
  2. Userform Combobox - Choose Multiple Items from list and input on seperate lines
    By CRIMEDOG in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-30-2012, 04:09 PM
  3. Help To Lookup Items And If I Choose An Item Send The Info To My Database
    By fetoo in forum Access Programming / VBA / Macros
    Replies: 3
    Last Post: 11-26-2011, 07:50 PM
  4. Replies: 1
    Last Post: 11-26-2011, 03:29 AM
  5. How do I compare two lists and choose the items that are in both?
    By laurabailey8 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-03-2006, 07:35 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1