+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    01-04-2010
    Location
    Ontario
    MS-Off Ver
    Excel 2007
    Posts
    12

    Sort or filter data

    Greetings,

    I have a workbook with 2 sheets that I'm using to track lottery winning numbers for my lottery group.

    Sheet 1 - Data
    The winning numbers plus bonus number.

    Row 1 - A1:AY1
    Date 1 2 3 .. 49 Bonus
    Row 2 - B2:I2 with winning numbers (note the last number (in I2) is the bonus number)



    Sheet 2 - Lottery
    Where I want to the winning numbers filtered ? / sorted ? to it's appropriate column.
    Row 1 - same as Row 1 in Data Sheet ( Date 1 2 3 .. 49 Bonus)


    I've attempted to make this work with the following and thought I was onto something until
    column H

    =IF(data!$B$2:data!$H$2>=F1,F1,"x") - this works but only too column H
    =IF(data!$B$2:data!$H$2<=I1,I1,"x") - this returns #VALUE! error


    =IF(data!B2:H2=1,1,"x") - it works .. sort of. Only returns X


    =IF(data!$B$2:data$H$2<=B1:AX1," ","x") - this seemed to make sense until I applied it. It's invalid - whatever that means at this point I haven't a clue.

    Any help / direction you can offer would be appreciated (not too mention relieving my frustration attempting to make this work).

    TIA
    Attached Files Attached Files
    Last edited by Ou812eh; 01-04-2010 at 04:03 PM. Reason: add example (attachment)
    John

    Marie von Ebner-Eschenbach - "Even a stopped clock is right twice a day."

  2. #2
    Forum Guru zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    Excel 2007
    Posts
    5,729

    Re: Sort or filter data

    Can you upload example?

    Avoid important data but keep correct formating
    "Relax. What is mind? No matter. What is matter? Never mind!"

  3. #3
    Registered User
    Join Date
    01-04-2010
    Location
    Ontario
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Sort or filter data

    I've added an attachment of the spreadsheet
    John

    Marie von Ebner-Eschenbach - "Even a stopped clock is right twice a day."

  4. #4
    Forum Guru zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    Excel 2007
    Posts
    5,729

    Re: Sort or filter data

    Hi, osrry I couldn't solve this yesterday.
    I'm not sure I getting what you up to...

    Is this it?

    if not, please in your example write more input parameters (for example I don't know why on first sheet COLUMNS (not rows) are up to AY1 while there can be only 7+1 number...

    Also, write in example desired output.

    lottery(1).xls
    "Relax. What is mind? No matter. What is matter? Never mind!"

  5. #5
    Registered User
    Join Date
    01-04-2010
    Location
    Ontario
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Sort or filter data

    Quote Originally Posted by zbor View Post
    Hi, osrry I couldn't solve this yesterday.
    I'm not sure I getting what you up to...

    Is this it?

    if not, please in your example write more input parameters (for example I don't know why on first sheet COLUMNS (not rows) are up to AY1 while there can be only 7+1 number...

    Also, write in example desired output.

    Zbor,

    Thank you for your efforts, I do appreciate it.

    You almost have what I have hoped for.

    Instead of the 'x' I had hoped for the value.
    i.e. on first row the first value is 5 then 5 would appear in F2 not 'x'


    The second part may be a little harder. The bonus number - on Sept 25 is 4 - I had hoped to have each bonus number appear in the COLUMN bonus

    I've provide an example in the file.

    Thanks again Zbor.
    John

    Marie von Ebner-Eschenbach - "Even a stopped clock is right twice a day."

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    MS 2007
    Posts
    4,972

    Re: Sort or filter data

    Sorry, don't have time to review your workbook right now but here is a MegaLottery (5 numbers and bonus ball) workbook I created. Maybe you can adapt.
    Attached Files Attached Files
    ChemistB
    My 2¢

    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

  7. #7
    Registered User
    Join Date
    01-04-2010
    Location
    Ontario
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Sort or filter data

    I've managed to get the desired result editing Zbor solution.

    Mods -- kindly marked solved. Thanks


    Thanks to Zbor for his efforts and ChemistB for suggestion
    John

    Marie von Ebner-Eschenbach - "Even a stopped clock is right twice a day."

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.2.0