+ Reply to Thread
Results 1 to 5 of 5

If Statement

  1. #1
    Registered User
    Join Date
    01-15-2019
    Location
    Burton On Trent
    MS-Off Ver
    2010
    Posts
    5

    If Statement

    Please can someone help with my If statement?

    Within a pivot table i have 388 football team names in my count and multiple dates in my columns, what i need to do is find out the teams that have recently registered and those who have dropped out. I have been using the following without much joy?? to find the drop outs, but the reverse does not seem to work for the new teams can you help?

    =if(=IF('Weekly Pivot'!C6="1",'Weekly Pivot'!C6="0",'Weekly Pivot'!B7)

    Thanks

  2. #2
    Registered User
    Join Date
    01-15-2019
    Location
    Burton On Trent
    MS-Off Ver
    2010
    Posts
    5

    Re: If Statement

    sorry correct formula i have been using is

    =IF('Weekly Pivot'!B6="1",'Weekly Pivot'!B6="0",'Weekly Pivot'!B7)

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,091

    Re: If Statement

    As IF formulae go, there seems to be a few things wrong.

    The basic format of an IF function is: =IF(condition, result if TRUE, result if FALSE).

    Your formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    doesn't seem to have a valid result for a TRUE condition ... it's another comparison, that is a condition ...
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Note also that if you put a number inside double quotes, for example, "1" and "0", it becomes text, not a number. And, if you compare a numeric value to a text value (even if it looks like a number), it will not match.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    01-15-2019
    Location
    Burton On Trent
    MS-Off Ver
    2010
    Posts
    5

    Re: If Statement

    Thanks for the feedback and advice I have now got it to work

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,091

    Re: If Statement

    You're welcome.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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. [SOLVED] If statement to select data - nested statement - assistance
    By petitesouris in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-29-2015, 09:55 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