+ Reply to Thread
Results 1 to 7 of 7

Weird If/Then help needed

Hybrid View

  1. #1
    Registered User
    Join Date
    09-30-2016
    Location
    Detroit, MI
    MS-Off Ver
    Mac Office 2016
    Posts
    5

    Weird If/Then help needed

    I am making a weighted grade-book but am having an issue finding the right formula. Basically I have weights laid out for each each student, but if a student doesn't get a grade in any of the applicable fields, then I want the weight to be 0 instead of 10%.

    Is there a way I can automate that if there are values in ANY of these cells A4, G4, M4, then the value of cell Y4 = 10%. If no values in A4, G4, M4 then Y4 = 0.

    Anyone know what I can do here? Thanks in advance for the help.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,717

    Re: Weird If/Then help needed

    Try

    =IF(COUNT(A4,G4,M4),0.1,0)

    Y formatted as %

  3. #3
    Registered User
    Join Date
    09-30-2016
    Location
    Detroit, MI
    MS-Off Ver
    Mac Office 2016
    Posts
    5

    Re: Weird If/Then help needed

    Quote Originally Posted by JohnTopley View Post
    Try

    =IF(COUNT(A4,G4,M4),0.1,0)

    Y formatted as %
    This worked perfectly! Thank you very much!

  4. #4
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,277

    Re: Weird If/Then help needed

    Also try.
    =IF(AND(A4>1,G4>1,M4>1),10)
    & y formatted as percentage %

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,717

    Re: Weird If/Then help needed

    @AVK: should be OR
    ANY of these cells A4, G4, M4
    =IF(OR(A4>0,G4>0,M4>0),0.1,0)

    y formatted as percentage %
    Last edited by JohnTopley; 11-11-2016 at 04:11 PM.

  6. #6
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,277

    Re: Weird If/Then help needed

    Quote Originally Posted by JohnTopley View Post
    @AVK: should be OR

    =IF(OR(A4>0,G4>0,M4>0),0.1,0)

    y formatted as percentage %
    yes john.
    =IF(OR(A4>0,G4>0,M4>0),10,0)

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,717

    Re: Weird If/Then help needed

    Very welcome.

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

+ 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. weird one this is
    By gazza uk in forum Excel General
    Replies: 4
    Last Post: 02-19-2012, 03:01 PM
  2. Excel 2007 : Weird looking #'s
    By stevetothink in forum Excel General
    Replies: 1
    Last Post: 09-02-2011, 02:02 PM
  3. Weird Bug
    By jillteresa in forum Excel General
    Replies: 1
    Last Post: 01-22-2007, 03:02 PM
  4. this is weird
    By sa02000 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-18-2006, 07:10 PM
  5. Weird
    By jhill in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 08-10-2005, 12:05 PM
  6. [SOLVED] Weird Problem
    By Patrick in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-27-2005, 10:06 PM

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.6.0 RC 1