+ Reply to Thread
Results 1 to 27 of 27

IFs formula for google sheet

  1. #1
    Forum Contributor
    Join Date
    09-20-2018
    Location
    Jakarta
    MS-Off Ver
    google
    Posts
    102

    Wink IFs formula for google sheet

    Hi,

    I need to know a simple ifs formula, by multiple condition. Please check this sheet :
    https://docs.google.com/spreadsheets...nxk/edit#gid=0

    Result in D5, should be 0 because If C is more than 1, then result should be 0.
    I guess it's conflicted with formula for column A & B's condition, because if it's 'N' then it should be 1.

    "The goal is to check if it's Y (in colomn A&B) or if it's more than 1 (in colomn C), then result should be 0

    Thank You
    Last edited by maniacs205; 08-01-2022 at 01:49 AM.

  2. #2
    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,461

    Re: IFs formula for google sheet

    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    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


  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,461

    Re: IFs formula for google sheet

    Or
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    09-20-2018
    Location
    Jakarta
    MS-Off Ver
    google
    Posts
    102

    Re: IFs formula for google sheet

    Hi

    Thank you very much, it was very nice of you, but actually there are three criteria. I have added one more colomn although the result in last colomn (E) is still same.

    Thank you

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,911

    Re: IFs formula for google sheet

    "The goal is to check if it's Y (in colomn A&B) or if it's more than 1 (in colomn C), then result should be 0
    Try this:

    =IF(OR(A2="Y",B2>1),0,1)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  6. #6
    Forum Contributor
    Join Date
    09-20-2018
    Location
    Jakarta
    MS-Off Ver
    google
    Posts
    102

    Re: IFs formula for google sheet

    Hi

    Thank you, but di not worked, because colomn B is not a number.

  7. #7
    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,461

    Re: IFs formula for google sheet

    What three conditions?

    =if(B2="Y", 0, If(C2>1, 0, 1))

    =ifs(B2="Y", 0, C2>1, 0, true, 1)

    =if(or(B2="Y", C2>1), 0, 1)

  8. #8
    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,461

    Re: IFs formula for google sheet

    Ali was replying to the original question before you restructured the worksheet.

    Again, what is the third condition?

  9. #9
    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,461

    Re: IFs formula for google sheet

    Is this what you want:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,911

    Re: IFs formula for google sheet

    There is NO worksheet ...

    EDIT: It's reappeared.

  11. #11
    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,461

    Re: IFs formula for google sheet

    It's a Google sheet with a link in the OP. Interesting experience as he restructured the worksheet while I was working on it.

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,911

    Re: IFs formula for google sheet

    OK, well if this is a case of shifting sands, then I'll leave it be.

  13. #13
    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,461

    Re: IFs formula for google sheet

    I think they're still now
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  14. #14
    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,461

    Re: IFs formula for google sheet

    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.

  15. #15
    Forum Contributor
    Join Date
    09-20-2018
    Location
    Jakarta
    MS-Off Ver
    google
    Posts
    102

    Re: IFs formula for google sheet

    Quote Originally Posted by TMS View Post
    Is this what you want:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Thank you very much it worked now

  16. #16
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,911

    Re: IFs formula for google sheet

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

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

  17. #17
    Forum Contributor
    Join Date
    09-20-2018
    Location
    Jakarta
    MS-Off Ver
    google
    Posts
    102

    Re: IFs formula for google sheet

    actually, the formula still did not worked well...

    Please check colomn E in red

  18. #18
    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,461

    Re: IFs formula for google sheet

    I think you are wrong. PICNIC.

  19. #19
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,911

    Re: IFs formula for google sheet

    I think those sands have shifted again - column A seems to have come into play!!!

  20. #20
    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,461

    Re: IFs formula for google sheet

    @Ali: the edited OP stated
    The goal is to check if it's Y (in colomn A&B) or if it's more than 1 (in colomn C), then result should be 0
    Post #9:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Post #13:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  21. #21
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,911

    Re: IFs formula for google sheet

    OK - however the formula in the sheet when I looked at it did not look at column A - that was my point (perhaps poorly made).

    Anyway - hope it's sorted now.

  22. #22
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: IFs formula for google sheet

    it seems from your notes that your actually requirement is if A OR B is Y, then be 0...

    so i propose this arrayformula:

    Please Login or Register  to view this content.
    As a gesture off appreciation, you can click * Add Reputation at the foot of any of the posts of members who helped you reach a solution.

    And finally, was your problem solved? if so, please click Thread Tools above the first post of your enquiry, then select [Solved]

  23. #23
    Forum Contributor
    Join Date
    09-20-2018
    Location
    Jakarta
    MS-Off Ver
    google
    Posts
    102

    Re: IFs formula for google sheet

    It seems almost correct, but kind of messed up the sheet hence did not worked in my original source google sheet

  24. #24
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,911

    Re: IFs formula for google sheet

    Define "kind of messed up" and "did not work".
    Last edited by AliGW; 08-01-2022 at 05:26 AM. Reason: Typo corrected.

  25. #25
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: IFs formula for google sheet

    @ maniacs205

    we can only make formulas based on the information you give us and in the structure you give it to us in.

    so, either you give us the information we need to help you, or you find some way to modify the formulas for yourself.

  26. #26
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,911

    Re: IFs formula for google sheet

    Sigh ...

    @maniacs205

    SHIFTING SANDS + VAGUE FEEDBACK = (FRUSTRATED HELPERS * WASTED TIME)

    This is why I chose to step away.

  27. #27
    Forum Contributor
    Join Date
    09-20-2018
    Location
    Jakarta
    MS-Off Ver
    google
    Posts
    102

    Re: IFs formula for google sheet

    Actually, let us consider it solved. Sorry for the frustration.
    Just was my actual sheet needs to follow the formula.


    Thank You

+ 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. Google SHeets: Count Checked checkboxes in filtered data of google sheet
    By Faizan Naseem in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 1
    Last Post: 07-07-2022, 05:42 AM
  2. Google Sheets formula for bringing in checkbox info from sheet B to sheet A
    By wolverineandrew in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 6
    Last Post: 02-14-2022, 08:00 AM
  3. Replies: 0
    Last Post: 02-13-2022, 05:51 PM
  4. Locations in Google Sheet to Google Maps with markers and lines
    By Enounce in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 05-19-2021, 01:57 PM
  5. Google sheet formula
    By cyee in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 03-25-2021, 08:14 AM
  6. Google sheet: Help to attachment file from Google Drive and send email fill in Google Form
    By sbv1986 in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 03-01-2021, 10:47 PM
  7. Google Sheets: Condition formatting in Google sheet
    By cyee in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 4
    Last Post: 02-18-2021, 05:35 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