No video

Google Sheets IF THEN Formula

  Рет қаралды 100,639

saperis

saperis

Күн бұрын

Google Sheets If Then Formula: The IF THEN formula in any spreadsheet program is super useful. In in this video tutorial I’ll show you how you can use the built-in Google Sheets IF function.
#IFThenFormula #GoogleSheets #GoogleSheetsIFThenFormula
-----
Want to learn how to be more productive with Google Workspace? 🤩
bit.ly/product...
saperis - Helping you become a G Suite Pro!
Sign up to our KZbin channel for more G Suite, Gmail, Google Docs, Google Drive, etc. videos: / @saperis
saperis website: saperis.io/
saperis Linkedin: / saperis
saperis Twitter: / saperis_io

Пікірлер: 103
@awodako1799
@awodako1799 Ай бұрын
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"
@etiennebesson6586
@etiennebesson6586 4 жыл бұрын
I heard a rumor that Etienne's Actual Revenue was 85k, so I think he should still get a bonus ;-)
@saperis
@saperis 4 жыл бұрын
Really? Well then for sure we will give him his bonus. 😉- Chanel
@wDec149
@wDec149 3 жыл бұрын
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 жыл бұрын
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!
@oddvagsmyr2086
@oddvagsmyr2086 3 ай бұрын
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?
@johnnyanderson2-roblox185
@johnnyanderson2-roblox185 5 ай бұрын
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 4 ай бұрын
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
@painfullyhonest
@painfullyhonest 6 ай бұрын
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 6 ай бұрын
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.
@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 Жыл бұрын
If with "run a script" you mean run Apps Script I would suggest you use the onEdit() trigger. Find out more about triggers: kzbin.info/www/bejne/gXSaoXWgeZh6fdk
@LuisVillanueva45
@LuisVillanueva45 2 жыл бұрын
Very helpful video. Thank you for sharing!
@saperis
@saperis 2 жыл бұрын
Thanks for watching! 👍
@synkconsultancy5460
@synkconsultancy5460 7 ай бұрын
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 6 ай бұрын
Sounds more like something IFS would take care of which checks for multiple variables.
@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.
@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.
@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.
@shrikantnikam2426
@shrikantnikam2426 3 жыл бұрын
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 3 жыл бұрын
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 3 жыл бұрын
@@saperis thank you solved
@asymmetricmarketing
@asymmetricmarketing 10 ай бұрын
@ 4:00 * Yes and No in "quotation marks"
@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 :)
@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
@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 :)
@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
@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.
@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 жыл бұрын
Happy to hear that 😀
@simpforyongbokk
@simpforyongbokk Жыл бұрын
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 Жыл бұрын
You should check out the IFS formula for multiple conditions.
@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.
@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
@phoebetheimer2877
@phoebetheimer2877 Жыл бұрын
Wow, you're amazing!
@saperis
@saperis Жыл бұрын
Thank you! 😊
@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 жыл бұрын
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 жыл бұрын
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/
@anubhatia1147
@anubhatia1147 2 жыл бұрын
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 2 жыл бұрын
Do you want to do something like this? =IF(C32>D32, C32-D32 , "do nothing because it is false")
@anubhatia1147
@anubhatia1147 2 жыл бұрын
@@saperis if A=A:A AND B=B:B THEN D2-D
@rickengelhard208
@rickengelhard208 5 ай бұрын
How about an IF then zero formula so the cell doesn't show #DIV/0!? Thanks
@saperis
@saperis 5 ай бұрын
Maybe? I don't know. I usually have to write formulas myself to see if they work.
@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.
@mohammedmuzammilyaseenece9914
@mohammedmuzammilyaseenece9914 Жыл бұрын
How do you get the average of all "YES" and all "NO" from this ?
@saperis
@saperis Жыл бұрын
Maybe try AVERAGE. support.google.com/docs/answer/3093615?hl=en
@rimanabelsi613
@rimanabelsi613 3 жыл бұрын
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 3 жыл бұрын
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 3 жыл бұрын
@@saperis omg thank you this was really helpful!
@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
@TimmerTheChipper
@TimmerTheChipper Жыл бұрын
Really good tutorial. Thanks
@saperis
@saperis Жыл бұрын
You're welcome! 😀
@alex_crane
@alex_crane Ай бұрын
Hi! FYI now it's ; symbol instead of , symbol
@kasaluv
@kasaluv 2 жыл бұрын
thank you so much!! this was so helpful!
@saperis
@saperis 2 жыл бұрын
Glad it was helpful!
@AlexandraBaza-es2ce
@AlexandraBaza-es2ce Жыл бұрын
Thank you. So clear
@saperis
@saperis Жыл бұрын
You're welcome 😀
@siebevermijs3756
@siebevermijs3756 2 жыл бұрын
Thanks for the help!!!
@saperis
@saperis 2 жыл бұрын
Happy to help! 😀
@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
@oduartube
@oduartube Жыл бұрын
AWESOME!!!!
@saperis
@saperis Жыл бұрын
Glad you think so!
@mezoori
@mezoori 6 ай бұрын
Thanks!!!
@saperis
@saperis 6 ай бұрын
Welcome! 😃
@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.
@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
@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 2 ай бұрын
My version: =IF(J5>10; "GOOD"; "BAD")
@juliusfreund7477
@juliusfreund7477 3 жыл бұрын
merci
@saperis
@saperis 3 жыл бұрын
De rien. 😀
@usdaprime1092
@usdaprime1092 Жыл бұрын
THOSE ARE FUCKING QUOTATION MARKS
@saperis
@saperis Жыл бұрын
Thank you for pointing that out. 👍
@Bannedbooks440
@Bannedbooks440 7 ай бұрын
I need the digits...
@saperis
@saperis 7 ай бұрын
Which digits?
@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
Google Sheets IF & IFS Functions - Formulas with If, Then, Else, Else If Statements
21:43
Learn Google Sheets & Excel Spreadsheets
Рет қаралды 572 М.
15 Functions in Google Sheets You NEED to know!
17:30
Flipped Classroom Tutorials
Рет қаралды 427 М.
❌Разве такое возможно? #story
01:00
Кэри Найс
Рет қаралды 6 МЛН
Incredible Dog Rescues Kittens from Bus - Inspiring Story #shorts
00:18
Fabiosa Best Lifehacks
Рет қаралды 34 МЛН
女孩妒忌小丑女? #小丑#shorts
00:34
好人小丑
Рет қаралды 98 МЛН
Google Sheets Macros - A detailed tutorial
8:44
saperis
Рет қаралды 19 М.
Make Your Google Sheets Look PRO in Under 10 Minutes!
9:25
Next Generation Teacher
Рет қаралды 348 М.
Google Sheets Formulas Tutorial
23:25
Kevin Stratvert
Рет қаралды 378 М.
Google Sheets - INDEX & MATCH  - Part 1
16:12
Learn Google Sheets & Excel Spreadsheets
Рет қаралды 189 М.
Using the IF Function on Text in Google Sheets
3:06
Farm Learning with Tim Thompson
Рет қаралды 32 М.
Google Sheets - Use ARRAYFORMULA Instead of Repeating Functions
3:59
Prolific Oaktree
Рет қаралды 66 М.
IF Function with Multiple Conditions in Excel & Google Sheets
23:37
Learn Google Sheets & Excel Spreadsheets
Рет қаралды 115 М.
Timestamp with Checkboxes in Google Sheets
6:06
Lean Strategies International LLC
Рет қаралды 26 М.
❌Разве такое возможно? #story
01:00
Кэри Найс
Рет қаралды 6 МЛН