Google Sheets IF THEN Formula

Поделиться
HTML-код
  • Опубликовано: 30 ноя 2024
  • НаукаНаука

Комментарии • 109

  • @etiennebesson6586
    @etiennebesson6586 4 года назад +15

    I heard a rumor that Etienne's Actual Revenue was 85k, so I think he should still get a bonus ;-)

    • @saperis
      @saperis  4 года назад +4

      Really? Well then for sure we will give him his bonus. 😉- Chanel

  • @adventuremitchde
    @adventuremitchde 3 дня назад

    Thank You for the tuto 🙂
    How can i insert several options into the formula? Like achived, overachieved?

  • @michaelpavlovich5288
    @michaelpavlovich5288 2 месяца назад

    Nice video! I was wondering how I could use a dropdown menu to subtotal all the cells in the column next to it in each category. Example: travel expense is subcategorized into lodging, entertainment, transportation etc...by using a drop down menu in the cell to the left of the expense amount. I want it to total all transportation ... into a single cell. Thank you so much in advance.

  • @wDec149
    @wDec149 3 года назад +5

    hey, great tutorial! I was wondering if you could colour fill a cell for the "true" and "false" values? i.e. set a cell to 'green fill', if the value is true

    • @saperis
      @saperis  3 года назад +2

      Yes, that's possible and I would use conditional formatting to do so: support.google.com/docs/answer/78413?co=GENIE.Platform%3DDesktop&hl=en

    • @wDec149
      @wDec149 3 года назад

      @@saperis that's really helpful, thanks!

  • @awodako1799
    @awodako1799 4 месяца назад +1

    How can i make it so the text "Yes" is in green color and "No" in red color, of course using if formula. And how can i make it so if the cell value is none it says "0", but when it changes to other value it says "Yes" or "No"

  • @oddvagsmyr2086
    @oddvagsmyr2086 6 месяцев назад

    Thanks for the tutorial. However, I need information on how to write the formula in this case: If the expression A3 (as in paper format) occurs among other words in one cell, then I want an other cell (same sheet) to respond with a number (for instance 20). Can that be done?

  • @kelseapiquette8566
    @kelseapiquette8566 Месяц назад

    Is it possible to use this or IFS formula for multiple values? For example, I am working on a tip calculator sheet where if the tips are up to $375, 10% would be allocated to the kitchen, if the tips are $376-475, 15% would be allocated to the kitchen, and if the tips are $476+ the kitchen would get 20%. I feel like it should be possible but I tried nesting the formula and keep getting an error.

    • @rumblewraps
      @rumblewraps 26 дней назад

      Hey trying to do something similar just figured I would try to help! It only takes 3 arguments unfortunately but you can use this formula: IF(cell

    • @rumblewraps
      @rumblewraps 26 дней назад

      I'm trying to do something really complex for bids where I'm writing like 12 rules but it only takes 3 which sucks but trying to figure out a workaround haha

  • @LuisVillanueva45
    @LuisVillanueva45 2 года назад +2

    Very helpful video. Thank you for sharing!

    • @saperis
      @saperis  2 года назад

      Thanks for watching! 👍

  • @jaysonsales3005
    @jaysonsales3005 Год назад

    Thank you mam. i have a question, can i add "or" statement on if statement? like for example =if(A3="Restday" or "Absent", 0, 65) ?

    • @saperis
      @saperis  Год назад

      Maybe you should check out the OR formula instead of using the IF formula: support.google.com/docs/answer/3093306?hl=en

    • @jaysonsales3005
      @jaysonsales3005 Год назад

      @@saperis thank you so much :)

  • @painfullyhonest
    @painfullyhonest 9 месяцев назад

    what if I want the true/false answer to be determined by subtracting two fields? for example Field A and B if B>A then I want it to say "gain" and subtract A from B If A>B I want it to say "loss" and subtract B from A would it look something like =if(B>A,"gain"A-B,"Loss"B-A) needless to say this didn';t work. What am I missing?

    • @saperis
      @saperis  9 месяцев назад +1

      I don't know what you are missing. I'm terrible at just looking at a formula and seeing the mistake. The only solution for me is to A) check the Sheets formula documentation and B) do a Google search to see if others have achieved what I'm looking to do.

  • @ignaciotorresbarsanti8810
    @ignaciotorresbarsanti8810 Год назад

    What if i want to add a numeric value in the "bonus" cells, for example IF a "x" do the job, profit is "% of the price", if not, is "other % of the price", is that possible?

    • @saperis
      @saperis  Год назад

      The value can be either text or numeric. So you should be able to achieve want you want to do.

  • @TheresaSmith-qy8sv
    @TheresaSmith-qy8sv Год назад

    Hello - I need to build something on a separate tab that says if email is xxxx, then the name on another tab will equal xxx name. Multiple names, multiple email addresses. I just can't think of the name of the function in Google Sheets. Thanks

    • @saperis
      @saperis  Год назад

      You want a formula to rename a tab? That doesn't exists.

  • @ronaldhawkins2680
    @ronaldhawkins2680 Год назад

    Morning...Is there a formula that can queue automation? Essentially, if a student scores X then it would queue up a certificate of achievement.

    • @saperis
      @saperis  Год назад

      I don't think such a formula exists in Sheets.

  • @dentalelements
    @dentalelements 2 года назад

    Great Video! How do I create a formula for COLUMN C that reads: If COLUMN B is NOT EMPTY, THEN copy contents of COLUMN A to COLUMN C

    • @saperis
      @saperis  2 года назад

      Maybe try =if(B1, A1).
      That would copy the content of A1 if B1 weren't empty.
      Please check the specs to see that you reference a cell and not a column: support.google.com/docs/answer/3093364?hl=en

  • @johnnyanderson2-roblox185
    @johnnyanderson2-roblox185 8 месяцев назад

    This helped tons, but when I put it into my sheet I think it is interfering with my other script. I have a script that checks the total time someone was on the clock and totals it up and puts it into a column, and I am trying to get the script to check if the total time is over a certain amount of minutes, and its giving a false true.

    • @saperis
      @saperis  7 месяцев назад

      If you are running an Apps Script script to evaluate times, then maybe something is wrong with the date format.
      Apps Script is essentially JavaScript and in JavaScript dates and times are notoriously difficult to work with. developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date

  • @DerekPierce
    @DerekPierce Год назад

    What if I want an If function for the a cell being populated with anything? I want to run a script but it only needs to run once the cell is filled.

    • @saperis
      @saperis  Год назад +1

      If with "run a script" you mean run Apps Script I would suggest you use the onEdit() trigger. Find out more about triggers: ruclips.net/video/KC7pBjD3GGw/видео.html

  • @phoebetheimer2877
    @phoebetheimer2877 Год назад +1

    Wow, you're amazing!

  • @synkconsultancy5460
    @synkconsultancy5460 9 месяцев назад

    how will we use if then if we want to check an one variable is greater than second and third by specific %then yes or no

    • @saperis
      @saperis  9 месяцев назад

      Sounds more like something IFS would take care of which checks for multiple variables.

  • @DavidWilliams-yz7uh
    @DavidWilliams-yz7uh 3 года назад

    I've created a staff league table a d depending on actions they take they get points, then I have a column that totals up that staffs points.
    I need a cell to populate with (their name) whoever has the most points. Is this some thing that can be done with IF function?

    • @saperis
      @saperis  3 года назад +1

      Not really. An IF function is great when your looking at a per row basis.
      But what you're looking for is more like a VLOOKUP(support.google.com/docs/answer/3093318?hl=en-GB) where you want all score in a column to be analyzed and then give back the name of a person, which is in a different column.

    • @DavidWilliams-yz7uh
      @DavidWilliams-yz7uh 3 года назад

      @@saperis you are a star, it seems easy but knowing me it's more complicated 😢

    • @saperis
      @saperis  3 года назад +1

      I'm not really spreadsheet expert myself either. I would have to invest some time into getting this done.
      Why don't you contact a Google Sheets freelancer if you need some help on this one: www.upwork.com/hire/google-spreadsheet-freelancers/

  • @buzznorcal
    @buzznorcal 2 года назад

    Here's what I'm trying to do.
    If B2 is equal or less than 2 then return the value of (B2+C2)*100), else return the value of (B2+C2)*50)
    Thank you, your video almost got me there but I still need a bit of help :)

    • @saperis
      @saperis  2 года назад

      Maybe this? =IF(B2

    • @buzznorcal
      @buzznorcal 2 года назад

      @@saperis It worked, thank you so much. Now I understand how this works :)

  • @TimmerTheChipper
    @TimmerTheChipper 2 года назад

    Really good tutorial. Thanks

    • @saperis
      @saperis  2 года назад

      You're welcome! 😀

  • @elusive.firstname.lastname
    @elusive.firstname.lastname 2 года назад

    Is there a way to say if a number is less than a certain number it makes that field of one or zero for a subtotal tally?

    • @saperis
      @saperis  2 года назад

      Hm...sorry, but I don't understand your question.

    • @elusive.firstname.lastname
      @elusive.firstname.lastname 2 года назад

      @@saperis so I want to put a number in column one and in column two and three a zero or a one will show up so that I can get a tally down below how many we above 25 and how many were above 25

    • @saperis
      @saperis  2 года назад

      @@elusive.firstname.lastname I still don't understand what you're trying to achieve. But if the IF function doesn't do the trick maybe check out the IFS as you can chain conditionals to be checked.

  • @shrikantnikam2426
    @shrikantnikam2426 4 года назад +1

    I want to make formula suppose I am entering value '1.15' it is less than 1.5 so considered as 1, if it is greater than 1.5 considered as 2
    Like
    1.25 as 1
    1.75 as 2
    44.25 as 44
    44.80 as 45 please help me

    • @saperis
      @saperis  4 года назад

      Hi Shrikant. Sound like you're looking for one of the following function: ROUND, ROUNDUP or ROUNDDOWN.
      Read the official documentation to figure out how to use it for your needs: support.google.com/docs/answer/3093440?hl=en-GB

    • @shrikantnikam2426
      @shrikantnikam2426 4 года назад

      @@saperis thank you solved

  • @emmanlopez8623
    @emmanlopez8623 2 года назад

    I am trying to figure out if there's a formula that I could use for ranges of data. Like the condition is 1 - 19 Facebook Reactions = 10 points, so if I will type values between 1 and 19 on a specified cell, next cell would return 10. Been trying to figure this out but can't find any.

    • @saperis
      @saperis  2 года назад

      I would suggest you give the IFS formula a try. It should work.
      support.google.com/docs/answer/7014145?hl=en

  • @dreamscapechronicles11
    @dreamscapechronicles11 2 года назад

    hi thanks for explaining it so simple way, also can you please tell how to insert a check box instead of "yes" or "no"?

    • @saperis
      @saperis  2 года назад

      Substitute the "YES" for TRUE (without quotation marks!) and the "NO" for FALSE.
      Then you have to select the column with the TRUE / FALSE and from the menu choose Insert > Tick box.
      The cells with the TRUE values will be ticked, the ones with FALSE will be unticked.

  • @anubhatia1147
    @anubhatia1147 3 года назад

    if we use if function that this value is equals to this and this value is equals to that then ow can we subtract value with if and function is it possible

    • @saperis
      @saperis  3 года назад

      Do you want to do something like this?
      =IF(C32>D32, C32-D32 , "do nothing because it is false")

    • @anubhatia1147
      @anubhatia1147 3 года назад

      @@saperis if A=A:A AND B=B:B THEN D2-D

  • @sahilkisanthakur
    @sahilkisanthakur 2 года назад

    please tell about equal to
    if 105=105 i need command nill instead of getting yes or no
    help me with this or or give me another formula which gives result yes no nil to same example you explained

    • @saperis
      @saperis  2 года назад

      Do you want a string "nil"? In that case just write that as the last parameter of the IF formula.

    • @sahilkisanthakur
      @sahilkisanthakur 2 года назад

      @@saperis not understood
      i will give example help me
      (B3) (C3) (output)
      10 10 yes
      33 55 yes
      50 10 no
      100 120 yes
      formUla i used is =if(B3>C3,"no","Yes")
      but when 10 = 10 it gives "yes" which is wrong
      but i want to wright "Nill" is both are same
      how i can do that
      so give me new formula which has output
      yes , no , Nill

    • @saperis
      @saperis  2 года назад

      @@sahilkisanthakur Try the following =IFS(B3>C3, "no", B3

    • @sahilkisanthakur
      @sahilkisanthakur 2 года назад

      @@saperis thankyou

  • @kasaluv
    @kasaluv 3 года назад

    thank you so much!! this was so helpful!

    • @saperis
      @saperis  3 года назад

      Glad it was helpful!

  • @simpforyongbokk
    @simpforyongbokk 2 года назад

    is there a way to have more than 2 conditions? eg
    if B3 = x, then D3 = y
    if B3 = p, then D3 = q
    if B3 = r, then D3 = s

    • @saperis
      @saperis  2 года назад

      You should check out the IFS formula for multiple conditions.

  • @kriztenkk
    @kriztenkk 3 года назад

    Hi, is it possible to add current time in 24 hours format?
    example, if A1>1, then set B1=current time?

    • @saperis
      @saperis  3 года назад

      I would suggest you try out the =NOW() function in Google Sheets.

  • @AlexandraBaza-es2ce
    @AlexandraBaza-es2ce 2 года назад

    Thank you. So clear

    • @saperis
      @saperis  2 года назад

      You're welcome 😀

  • @enedinacuetlach229
    @enedinacuetlach229 Год назад

    How do I write the formula if I want the cell to be a certain color instead of a word?

    • @saperis
      @saperis  Год назад

      If you want to format a cell by changing its color, I would use conditional formatting and not an IF formular. Find out more here: support.google.com/docs/answer/78413?hl=en&co=GENIE.Platform%3DDesktop

  • @rimanabelsi613
    @rimanabelsi613 4 года назад

    Okay I do have a question, let's say that we need to display the word "temporary" if true and the word "permanent" of false how do we write that?

    • @saperis
      @saperis  4 года назад

      Check out the IFS function that checks for multiple values: support.google.com/docs/answer/7014145?hl=en
      That allows you to check for two separate values and then print either "temporary" or "permanent".

    • @vianca811
      @vianca811 4 года назад

      @@saperis omg thank you this was really helpful!

  • @siebevermijs3756
    @siebevermijs3756 3 года назад

    Thanks for the help!!!

    • @saperis
      @saperis  3 года назад

      Happy to help! 😀

  • @mohammedmuzammilyaseenece9914
    @mohammedmuzammilyaseenece9914 2 года назад

    How do you get the average of all "YES" and all "NO" from this ?

    • @saperis
      @saperis  2 года назад

      Maybe try AVERAGE.
      support.google.com/docs/answer/3093615?hl=en

  • @oduartube
    @oduartube 2 года назад

    AWESOME!!!!

    • @saperis
      @saperis  2 года назад

      Glad you think so!

  • @cheeseburger6924
    @cheeseburger6924 3 года назад

    Hi, I have a question:
    how do do conditional substraction?
    for example, if the value is equal or less than 100,000. I need to substraction it to 50.
    if A1 =< 100,000. then B1 = A1 - 50. thank you ❤️

    • @saperis
      @saperis  3 года назад

      You're condition is wrong (A1 =< 100,000). You have to check for A1

  • @rickengelhard208
    @rickengelhard208 8 месяцев назад

    How about an IF then zero formula so the cell doesn't show #DIV/0!? Thanks

    • @saperis
      @saperis  8 месяцев назад

      Maybe? I don't know. I usually have to write formulas myself to see if they work.

  • @nebojsa1976
    @nebojsa1976 Год назад

    Million dollar question. I have this kind of If statement in Google Sheets: if(ISNUMBER(B9), INDEX(B:B,9,1), "") . Now, if it is Number in Cell B9, it will enter the number in another cell (C9), but if it is not number, it will not show anything, or it will show FALSE (if I remove ""). What I need is if it is FALSE, then don't do anything, just exit, don't show empty or FALSE, keep the previous number. So, if B9 is number 3, I want it to show up in C9 cell number 3, and it does that, but if B9 shows maybe text "home" (before it was number 3), I don't want it to show text "FALSE" or empty in C9, but keep previous number (number 3). So, essentially, exit right away after TRUE statement.

    • @saperis
      @saperis  Год назад

      Sounds like a case for the IF formula: support.google.com/docs/answer/3093364?hl=en

  • @mezoori
    @mezoori 9 месяцев назад

    Thanks!!!

    • @saperis
      @saperis  9 месяцев назад

      Welcome! 😃

  • @Humanbeing01919
    @Humanbeing01919 14 дней назад

    I enterred this formula EXACTLY and it still gives me the "#ERROR!"

  • @asymmetricmarketing
    @asymmetricmarketing Год назад

    @ 4:00 * Yes and No in "quotation marks"

  • @frankie4073
    @frankie4073 3 года назад

    How do I make this happen:
    Box 1 is TRUE.
    Box 2 is FALSE.
    Box 3 is TRUE
    Box 4 then checks if box 1 is true, then takes 10 from 30, and then shows 20 in box 4, box 2 is false so nothing happens, box 3 is true so it takes another 5 from the 20 to make it 15.
    How do I do that?

    • @saperis
      @saperis  3 года назад

      Sorry, but you totally lost me after your third line.

    • @frankie4073
      @frankie4073 3 года назад

      @@saperis No worries, I figured it out 2 hours after posting the comment! :P

  • @alex_crane
    @alex_crane 4 месяца назад

    Hi! FYI now it's ; symbol instead of , symbol

  • @raymond2869
    @raymond2869 2 года назад

    Hi, I have a question:
    So I know how to print text if it is an if-then statement, but I want it to Highlight a column instead of printing text. How do I do that?

    • @saperis
      @saperis  2 года назад

      You would have to use conditional formatting for that. You can't highlight cell values with a formula as far as I'm aware.

  • @juliusfreund7477
    @juliusfreund7477 3 года назад

    merci

    • @saperis
      @saperis  3 года назад

      De rien. 😀

  • @jamesschuldes181
    @jamesschuldes181 Год назад

    itym: "yes or no in quotes" not parenthesis (at 4:03) syntax is syntax and words have meaning and a picture is worth a thousand dollars if you sell your feet pics... 😂

  • @outoftheblue5550
    @outoftheblue5550 5 месяцев назад

    My version: =IF(J5>10; "GOOD"; "BAD")

  • @usdaprime1092
    @usdaprime1092 Год назад

    THOSE ARE FUCKING QUOTATION MARKS

    • @saperis
      @saperis  Год назад

      Thank you for pointing that out. 👍

  • @Bannedbooks440
    @Bannedbooks440 10 месяцев назад

    I need the digits...

    • @saperis
      @saperis  10 месяцев назад

      Which digits?

  • @JacobsenBros
    @JacobsenBros 2 года назад

    I want B3-C3 only if there is a number in b3. But if it doesn't I don't want it to calculate anything because I don't want to have a -200 for example when b3 has nothing and c3 has 200. Can I do that?

    • @JacobsenBros
      @JacobsenBros 2 года назад

      I think I figured it out. =if(IFBLANK(B3),"",B3-C3) I understand it as saying if cell B3 is blank, then enter in nothing, but if it has something in it, then B3-C3.
      Thank you. Your video really helped me problem solve this.

    • @saperis
      @saperis  2 года назад +1

      Happy to hear that 😀