+ Reply to Thread
Results 1 to 4 of 4

If range = text question

  1. #1
    Registered User
    Join Date
    01-25-2014
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    2

    If range = text question

    Hello,
    Long time reader, first time poster.


    I am creating a sports selection sheet for my school and students have to make 1st, 2nd and 3rd selections of sport on an online form.

    eg - 1. Baseball, 2. Tennis, 3. swimming.

    They submit this to my online form and I get a nice excel spreadsheet listing their choices. My problem is that I need to sort their selections based on first in best dressed and then start to cut off selections as the class becomes full.

    So, here is my question - is there an 'if' formula that I could write that would say 'if 'selection 1=baseball ... and baseball has already received 25 selections,somehow move on to the second selection... eg someone further down the list that missed out on a quota of 25 places, then their selection 2, Tennis would be selected.

    I hope that makes sense, please let me know if you need further clarification.

    Thanks,

    Dany

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.85 (24051214))
    Posts
    8,830

    Re: If range = text question

    can we see an example spreadsheet and how setout
    how do you assign the 25 - is it based on date/time received
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    01-25-2014
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: If range = text question

    No Problem Wayne,
    I will post the spreadsheet now. It is very basic as I'm still trying to work out where to put fields etc but yes it would be based on time received. Not sure how to assign the 25 places yet, I suppose it would need to work down a column...

    Thanks,

    Dany
    New Form 1_25_14.xls

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.85 (24051214))
    Posts
    8,830

    Re: If range = text question

    well, this is not the greatest formula and may not work

    =IF(COUNTIF($T$1:T1,E2)<=2,E2,IF(COUNTIF($T$1:T1,F2)<=2,F2,IF(COUNTIF($T$1:T1,G2)<=2,G2,"to many")))
    and it will assign one more that the criteria - IE allow 3 items

    the spreadsheet will need to be sorted into ascending date/time order, then the oldest is first

    it may not work completely - but appears to work with your data
    the issue of course will be if you have different volumes allowed for different courses , that's going to get a little complicated - probably can use a lookup table for each course to get the allowed volume
    i'm sure some on one more knowledgeable will help with a better equation

    will different courses have different volumes allowed?

    look at column T and you will see in last entry - 3rd selection made
    I did not sort by date at all - but that would give you the priority
    Attached Files Attached Files

+ 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: 5
    Last Post: 12-21-2013, 03:03 PM
  2. [SOLVED] Question regarding conditional format question that covers two range criteria
    By lilsnoop in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-06-2013, 12:32 PM
  3. [SOLVED] Sumif based on a text range, text criteria and and text sum range
    By ned0 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-18-2012, 07:45 PM
  4. Replies: 6
    Last Post: 01-30-2008, 01:30 PM
  5. [SOLVED] Range Question / error 1004: method Range of object Worksheet has failed
    By Paul in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-07-2005, 10:06 AM

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