+ Reply to Thread
Results 1 to 8 of 8

if statement help

  1. #1
    Registered User
    Join Date
    05-30-2016
    Location
    leicester, UK
    MS-Off Ver
    MS 2015
    Posts
    25

    if statement help

    have a list showing list of teams fixutures

    column a
    team a u14 v. ivy
    team a u15 v. abc
    efg. v fgm
    team a u12 v. who

    list goes on

    I only want to bring onto new sheet. if column A contains team 'a'


    I assume its a array/if statement

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: if statement help

    Take a look at the yellow banner at the top of the screen, and act upon it, i.e. attach a sample Excel file (not a picture of one) which will help us to see how your data is laid out as well as what you want to achieve.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    05-30-2016
    Location
    leicester, UK
    MS-Off Ver
    MS 2015
    Posts
    25

    Re: if statement help

    see attached

    'filter out' tab shows what I'm struggling with
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    05-30-2016
    Location
    leicester, UK
    MS-Off Ver
    MS 2015
    Posts
    25

    Re: if statement help

    ideally would like to do a pivot table but you can't add data validation to a pivot table

  5. #5
    Registered User
    Join Date
    05-30-2016
    Location
    leicester, UK
    MS-Off Ver
    MS 2015
    Posts
    25

    Re: if statement help

    I still can't get my head around it

    thought...filter formula?

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: if statement help

    Your raw data is a bit of a mess - blank rows everywhere!! Any reason whay you cannot consolidate it into a single list?

    Your "dates" are a mixture of real dates and text that look like dates...

    Use variants of this formula:
    =IFERROR(INDEX(Fixtures!C:C,AGGREGATE(15,6,ROW(Fixtures!$D$3:$D$1000)/((ISNUMBER(SEARCH("Coalville",Fixtures!$D$3:$D$1000)))*(Fixtures!$D$3:$D$1000<>"No data")),ROWS($1:1))),"")


    see sheet.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  7. #7
    Registered User
    Join Date
    05-30-2016
    Location
    leicester, UK
    MS-Off Ver
    MS 2015
    Posts
    25

    Re: if statement help

    thanks. that works a treat.

    raw data looks messy as sometimes the fixtures per age group increase hence few spaces in between

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: if statement help

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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. [SOLVED] i have an if then statement that works, how to make it work as a with or case statement
    By dmcgov in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 06-03-2016, 03:34 PM
  2. Replies: 2
    Last Post: 07-09-2015, 04:25 PM
  3. compile error expected line number statement end statement
    By mattress58 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-18-2014, 10:12 AM
  4. VBA Compile Error : line number or label or statement or end of statement
    By excellearner121 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-04-2013, 06:41 PM
  5. Replies: 4
    Last Post: 06-01-2012, 10:05 AM
  6. Replies: 4
    Last Post: 05-16-2012, 05:33 PM
  7. [SOLVED] Utilize a Select Case Statement in Target Intersect Statement
    By max57 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-29-2009, 08:55 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