Video není dostupné.
Omlouváme se.

Everything You Need To Know About The If Formula In Excel

Sdílet
Vložit
  • čas přidán 14. 08. 2024
  • Learn how to use the IF Function to write formulas that return results based on a condition or logical test. TAKE THE CHALLENGE ► www.excelcampu...
    This tutorial also includes training on logical tests, comparison operators, nested IF formulas, multiple conditions with AND and OR functions, and common causes of formula errors. Accompanying blog post: www.excelcampu...
    🔗LINKS
    🔎 Get free weekly Excel tips: www.excelcampu...
    💡 Free 60-minute Excel training session: www.excelcampu...
    📖 Join Our Comprehensive Excel Training Program: www.excelcampu...
    Related Videos:
    ✅ IF vs VLOOKUP vs XLOOKUP - Commission & Tax Rate: • If Vs Vlookup Vs Xlook...
    ✅ Introduction to Pivot Tables, Charts, and Dashboards in Excel: • Introduction to Pivot ...
    ✅ Excel Tables Tutorial: Beginners Guide for Windows & Mac:
    • Excel Tables Tutorial:...
    ✅ VLOOKUP Tutorial for Excel - Everything You Need To Know:
    • Excel Vlookup Tutorial...
    00:00 Introduction
    00:40 If Formula Tutorial for Excel
    01:04 If Function Explained
    03:48 Write an If Formula
    05:01 Optional Arguments
    05:46 Grouping Data with IF
    07:47 Cell Reference Technique
    12:08 Nested IF Formulas
    15:53 Causes of Errors
    17:54 If Formula Challenge
    #MsExcel #ExcelCampus

Komentáře • 121

  • @MrBileDuct
    @MrBileDuct Před rokem +9

    Jon, I just have to say what an awesome tutor you are! It's partially about what you reveal but mostly about how you do it..... You are as logical as an Excel spreadsheet but > it is your ability to express the process with concise clarity that makes you excel. I have learned - and more importantly, understood, so much through your tutorials. Keep on, keeping on - ad infinitum!

  • @johnfox9780
    @johnfox9780 Před 2 lety +7

    As always Jon......excellent. You are a natural teacher. Just the right pace for newbies and no padding in there at all. Concise and easy to understand. Thank you.

  • @database_tips_tricks
    @database_tips_tricks Před 2 lety +2

    real excel expert this man, tks goodness for him

  • @lilminishlomit
    @lilminishlomit Před 2 lety +1

    Thank you Jon, you are truly a gift. I improved my excel skill by watching your tutorials. God bless you!

  • @aUgusTisGloOp
    @aUgusTisGloOp Před rokem +1

    I had to come comment because I couldn't find the answer for the nested IF statements for a project I am working on for a class, but you were able to make it very clear on how to write them. Thank you so much, I was getting so frustrated!

  • @angelikajoycequiogue7171
    @angelikajoycequiogue7171 Před 2 lety +1

    Thank you so much! You tutorials were better than the course I recently paid for.

  • @jessicaleng1840
    @jessicaleng1840 Před 2 lety +3

    Thank you Jon for showing how to use this really useful function on building simple report.

  • @beatricejerop2292
    @beatricejerop2292 Před rokem +2

    I always find your tutorials simple and easy to follow, Naturally a teacher keep it up

  • @JuniorKnowledge
    @JuniorKnowledge Před 2 lety +2

    thanks from somalia Jon, they helped me too much.

  • @jabsbabson5299
    @jabsbabson5299 Před 2 lety +1

    An excellent description of the IF formula usage. Thumb up!

  • @detroitresearcher
    @detroitresearcher Před rokem +1

    HOLY CRAP. THANK YOU! YOU ARE SO EASY TO FOLLOW!

  • @chrismead-ue2pr
    @chrismead-ue2pr Před 3 měsíci

    I have a job interview coming up that will include an Excel task, so I need to brush up on my skills and knowledge. This video, along with your others, is handy, clear and concise. Many thanks, Jon.

  • @fanp1188
    @fanp1188 Před 4 měsíci

    Formally studying Excel for an apprenticeship, and these videos are a real help. The videos on the apprenticeship aren't this good, and having missed a live session, I was really struggling

    • @ExcelCampus
      @ExcelCampus  Před 4 měsíci +1

      Great to hear your feedback about our videos. 😀

  • @valeriephillips1083
    @valeriephillips1083 Před 2 lety +1

    This is the best video I have seen on the topic. Great examples and easy to follow along!

  • @MrDhunpagla
    @MrDhunpagla Před 2 lety +2

    What a refreshing of knowledge !!! Thanks Jon ...keep sharing please

  • @jamiephillips6359
    @jamiephillips6359 Před 2 lety +4

    These are really helpful videos thank you. I’ve paid for a course recently and I find your videos much better and understand and practice with

  • @user-kl2jv1ps5p
    @user-kl2jv1ps5p Před rokem +1

    This is the best tutorial. Thank you

  • @donnachambers8063
    @donnachambers8063 Před 3 měsíci

    WOW! You explain the process brilliantly. Thank you!!

  • @darrylmorgan
    @darrylmorgan Před 2 lety +3

    Great Tutorial On What I Would Class As One Of The Most Important Functions To Learn In Excel..Thank You Jon :)

  • @XLLearner_Courses
    @XLLearner_Courses Před 10 měsíci +1

    Great explanation. Very detailed.

  • @PaulEBrownbill
    @PaulEBrownbill Před 2 lety +3

    Thanks for the video Jon, will definitely come in handy as a reference video.

    • @ExcelCampus
      @ExcelCampus  Před 2 lety

      Thanks Paul! I appreciate your support. 🙌

  • @Jay-ug7ni
    @Jay-ug7ni Před 2 lety +1

    This video is a life saver every time I needed a refresher on nested ifs. Thank you Jon!

  • @gautamkhandke7866
    @gautamkhandke7866 Před 2 lety +1

    Thanks for your video. It was very well explained and easy to understand.🙏

  • @ARIFSAIFIFARHAN
    @ARIFSAIFIFARHAN Před 2 lety +1

    Excellent Job!
    i learned clearly and sharply use of inbuilt function of IF

  • @yeshir2001
    @yeshir2001 Před 2 lety +1

    Thank you very much for this tutorial, I appreciate.

  • @minyongchen9748
    @minyongchen9748 Před 2 lety +1

    Thank you, Jon. Your videos are very helpful.

  • @kirstenholland5316
    @kirstenholland5316 Před 2 lety +1

    Really enjoyed this one and the pace of explanation.

  • @mss9466
    @mss9466 Před 2 lety +1

    Excellent tutorial! Thank you.

  • @mrs.billysanders6711
    @mrs.billysanders6711 Před 7 měsíci +1

    Needed this video! Thank you for sharing your knowledge.

  • @chrisskelly7913
    @chrisskelly7913 Před rokem +1

    An excellent video, Jon! You explained it all really clearly, thanks.

  • @sagararajapakse1974
    @sagararajapakse1974 Před 2 lety +1

    Thanks, Dear Jon. Good Luck, Go Ahead dear . . .

  • @jeffw6114
    @jeffw6114 Před 2 lety +1

    Jon, love your videos! Thanks!

  • @ajRo_
    @ajRo_ Před 2 lety +2

    Watching your videos always feel like having a teacher patiently teaching me one on one, thank you for all the clarity and contextual explanations, dear Professor Jon :)

  • @abuyousef9691
    @abuyousef9691 Před 2 lety +1

    Thanks for this training

  • @jo-anneventura4420
    @jo-anneventura4420 Před 2 lety +1

    Thank you for this video!

  • @ghaniksahni
    @ghaniksahni Před rokem +1

    thankyou sir your content is really amazing and helpful plz keep posting them

  • @TheDabovich
    @TheDabovich Před 2 lety +1

    You are a Rockstar! Thank You!

  • @user-oe8gq4rl5j
    @user-oe8gq4rl5j Před rokem

    what an amazing tutor, highly organised video, well explained, good demonstration, you have no idea how if feel owe to u

    • @ExcelCampus
      @ExcelCampus  Před rokem

      I appreciate that! Thanks for watching!

  • @35jays
    @35jays Před 2 lety +1

    Thanks for the video as it was very helpful!

  • @annapoornagajendra1687

    Thank you so much for such a discriptive video.

  • @msr4464
    @msr4464 Před 2 lety +1

    Really nice, have learned something new today✌✌

  • @kamebharrat
    @kamebharrat Před rokem +1

    Awesome toturial

  • @markpodesta4605
    @markpodesta4605 Před 2 lety +1

    Thank you Jon.

  • @user-jz6yl8cg8q
    @user-jz6yl8cg8q Před 11 měsíci +1

    thank you, excellent tutor.

    • @ExcelCampus
      @ExcelCampus  Před 11 měsíci

      You are welcome, @user-jz6yl8cg8q ! 😀

  • @harycan6923
    @harycan6923 Před 6 měsíci

    Fantastic video ,love you so much , 💖💖💖

  • @denkydoo6456
    @denkydoo6456 Před 2 lety +1

    thank you, Jon

  • @TireSpare
    @TireSpare Před 2 lety

    Oh you are the best formula instructor ever for me. contrary to your kind and step by step illustartions of formulas, other instructors just skipped them and i dont get what they are sayin. thank you . would you like to join in Excel Mos2016 pre exam instructors in Korea, YBM. i do believe they should all fire instructors with no english experiences of excel skills that cannot specify step by step formulas and their languages. i was listening to Korean Excel instructions but with no idea of what they are saying, then i googled here to find out and try to understand of formulas explained step by step here

  • @mutlaqsaud1028
    @mutlaqsaud1028 Před 2 lety +1

    Thank you Jon

  • @mohammedziyad1381
    @mohammedziyad1381 Před 2 lety +1

    Simple and great

  • @orelshema1149
    @orelshema1149 Před 2 lety +1

    Thank You 👍🏽

  • @wissembenkhaled5198
    @wissembenkhaled5198 Před 2 lety +1

    THANK YOU .

  • @MujelTech
    @MujelTech Před 2 lety +1

    this is a good tutorial, thank you sir

  • @therealrodmosby
    @therealrodmosby Před 2 lety +1

    Great Work!

  • @josealvesferreira1683
    @josealvesferreira1683 Před 2 lety +1

    very good, thanks.

  • @tsvs58
    @tsvs58 Před 2 lety +1

    Excellent

  • @olukunleogunniran4957
    @olukunleogunniran4957 Před 2 lety +1

    Nice work

  • @mustafayusuf4112
    @mustafayusuf4112 Před 11 měsíci +1

    thank yo Jon Acampora

    • @ExcelCampus
      @ExcelCampus  Před 11 měsíci

      You're welcome, @mustafayusuf4112 😀

  • @hmedh_Ath-Maksen
    @hmedh_Ath-Maksen Před 2 lety +2

    Great !!

  • @rafdehombre4952
    @rafdehombre4952 Před 2 lety +1

    Hi John nice video, so is the ( IF ) function one you would use if for example you wanted to check the value of say cell C1 $500 and cell C2 $400 , if the value's don't match then perform a calculation etc
    subtract G2 from G3 ??

  • @ahmedmokhtar190
    @ahmedmokhtar190 Před 2 lety +1

    Great work thanks pleas can you make in come and expenses daily report

  • @rafdehombre4952
    @rafdehombre4952 Před 2 lety +1

    PS i subscribed ... lots of videos to learn from 😀😀

  • @graysengalbraith2818
    @graysengalbraith2818 Před 2 lety +1

    Do you have a list of your simplified definitions? I would love that cheat sheet printed at my desk

  • @schannegrie
    @schannegrie Před 2 lety +1

    Can you please show us how to make Macros faster in a huge data.

  • @alwayspositive999
    @alwayspositive999 Před 2 lety +1

    Excellent explanation- how about comparing data on one sheet against info on another sheet ( normally I use the vlookup function- can u do it with the IF function too ?) thanks

  • @djgrahamfromca-za1673

    Hi Jon. Can I use the IF function to do a calculation if the logical test is yes. Example, if LT is yes A minus B if no B minus A.

  • @salehalavy
    @salehalavy Před 2 lety

    Hello Jon Good job man
    i have a question i formed as an excel file and I'm gonna send it later to if i can match multi different counter condition to give also different results . I know my question seems confusing but in xlsx file i explain it thoroughly

  • @afonsoosorio2099
    @afonsoosorio2099 Před 2 lety

    Hi Jon, tour tutorials are awesome.
    On nested If, where you have the second IF, after the argument "small", I suspected that you should close and end there. *13:55 to *14:15*.
    There is no room or option for "false" argument). I did try for the sake of clearing the doughty and it gave "you've entered too many arguments for this function"

  • @Ruby-zx8fk
    @Ruby-zx8fk Před rokem

    At the 4:45 mark, you say to get a number it doesnt need quotations. I tried and it gives me a false or true result. I need a formula that will provide the difference amount between two sets of numbers in certain columns. So if a number is greater than another number then the result should formulate the difference amount. Hope that makes sense.

  • @ncfundi
    @ncfundi Před 2 lety

    Hi Jon, thank you so much for these videos. They are definitely very helpful. Question for you though….is there a way to look at a group of logical test v. individual logical test to yield a result? I’ve created a enormous embedded IFAnd statement ( to where I’ve reached the maximum allowed by my version of excel) but I need to figure out a way to consolidate so that the formula isn’t so large. Any insight that you can provide would be greatly appreciated. Thanks

  • @HistoryHighlights916
    @HistoryHighlights916 Před 7 měsíci

    Video is awesom.where is excel sheet .

  • @madhun8092
    @madhun8092 Před 2 lety

    If we have 3 columns with Schedule start date, Schedule end date and Actual end date.
    Can we find the number of days between two dates based on text from a cell .. if text value is “resolved” I need the date formulas as current date minus scheduled end date. If status is “resolved late “ then Actual end date minus schedule end date.

  • @DanZL1
    @DanZL1 Před 2 lety

    Great video however if we have a list of email address on one tab and first name on another tab what formula can we use to bring the email and the first name of that email address together?

  • @cottagekeeper
    @cottagekeeper Před 2 lety

    I'm on a MacBook Pro using Excel and I'm using the if/and function and even though the value is true it is returning the false value. I've started a new worksheet and pasted all the data as values and I'm still having the same issue. Here is my formula"
    =IF(AND(Table1[@Type]="Other fee",Table1[@Description]="Ad Fee Standard"), "Ad Fee Standard","")
    Basically, Table1 has a 'Type' column in that column the word "Other fee" is there, also Table1 a 'Description' column in that column the word "Add Fee Standard" is there - so it should be returning the value Ad Fee Standard, but it is leaving the cell blank. I would welcome any insight, as I'm quite frustrated as to why this will not work.

  • @Ruby-zx8fk
    @Ruby-zx8fk Před rokem

    How to use if formula to provide numerical results of difference greater or higher than said amount?

    • @ExcelCampus
      @ExcelCampus  Před rokem

      I'm not sure I fully understand your question. Would you mind providing more explanation? Thanks!

  • @heathersmith9262
    @heathersmith9262 Před 2 lety

    What about when you want the If/OR function to define and use a constant for an equation?? (Division specifically)... I'm getting stuck.

  • @avigreen4443
    @avigreen4443 Před rokem +1

    where is the excel download to follow along?

  • @guillaumeroy-gagne3088

    How to code a cell that I want two conditions. For example I want the cell to return 1 if

  • @64guatemala
    @64guatemala Před 4 měsíci

    Greetings. I hope you can help me figure this out. I have numerous customers, all with various charges for our servicer. Is there a formula whereby I can set up a column that will automatically enter the amount charged to each customer when their name is entered into column A, then column B enters the amount we charge them? For example, Smith's Flower Shop pays $50.00 per service and Joe's Auto Shop pays $35.00 for the service we render to him. How can I set up a column that automatically enters the amount each customer pays? I hope that that makes sense 🙂. Thanks in advance for your help.

    • @ExcelCampus
      @ExcelCampus  Před 4 měsíci

      Hi there! 😊 One way is to use a VLOOKUP. Create a table in the same file but on another worksheet with servicers in the first column and known dollar amounts in the second column. For example, the newly created table is on Sheet1 and takes up Cells A1:B10. Then, in Column B of your original table, use a VLOOKUP function. If your first name is in Cell A2, then in Cell B2 enter something like:
      =VLOOKUP(A2,Sheet1!A1:B10,2,FALSE)
      That will take the servicer name from Column A ("A2")in the original table, look it up in the newly created table ("Sheet1!A1:B10"), find the corresponding dollar amount ("2" for the second column), and output the exact (FALSE) match to your original table into Column B. Hope that helps! 🙂

  • @natigmammadov917
    @natigmammadov917 Před 7 měsíci

    Hi, why this function dont working =IFS(S6S6>1801,"B", 2800>S6>2251,"C", 3100>S6>2801,"D",S6>3101,"E")

    • @ExcelCampus
      @ExcelCampus  Před 7 měsíci

      Instead of using two carats with x>Cell>y, try using one for each condition, such as x>Cell. For example, try something like IFS(S6<1800, "A", S6<2251, "B", S6<2801, "C", ...). Any number less than 1800 will be handled by the first condition ("A"), so any other numbers would have to be greater than or equal to 1800 and would be handled by the successive conditions.

  • @MrTr3D
    @MrTr3D Před 2 lety

    What if I don't have a table? this won't work for non-table. What if I want to select a range from eg: H6 to H28 and want to show which ones are larger/smaller.
    That's why when I tutor people, I always think of an alternative because people might not have the same information as me.

  • @rick071100
    @rick071100 Před 2 lety

    Can someone direct me to a link that talks about two cells comparison? e.g. if A1=1 and if B1=2 then C1=2 and if A1=2 and if B1=1 then C1=1 and so on. I have four conditions for C1. How do I write all of them in one formula?

  • @neeleshsonekar
    @neeleshsonekar Před rokem

    HELLO JON,
    I want two fill land type with column a , b , c , d. If A is greater then all 3 then type A or if B is greater then A, C and D then type B or if C is greater then A, B and D then Type C or if D is greater then A, B, C then type D in E2 cell.
    pls help

    • @ExcelCampus
      @ExcelCampus  Před rokem

      Hi Neelesh, It sounds like you can use the MAX function for this. MAX will return the largest value in the range of numbers specified in the function.
      I hope that helps. Thanks again and have a nice day! 🙂

    • @neeleshsonekar
      @neeleshsonekar Před rokem

      @@ExcelCampus Hi JON,
      Thanks for your response. I don't want to write largest value in the range. I have 3 columns with different number with title A, B, C AND D. I want to write title name instead of values.

    • @ExcelCampus
      @ExcelCampus  Před rokem

      If I understand correctly, You could combine the MAX function with a lookup function to lookup the max value and return the adjacent column. Something like the following.
      =XLOOKUP(MAX(B1:B10),B1:B10,A1:A10)
      I hope that helps. Not sure I fully understand the question.

  • @Nabiyah1
    @Nabiyah1 Před 2 lety

    Thank you Jon! Is there an IF formula or is there another function that would allow me to look at how many times "a specific value" appeared and what dates were associated with it? For example: Let's say I have 10 Pickers on my farm and every day the total number of fruit picked are logged, by date, amount, type, and picker.
    DATE (A) FRUIT (B) Picker ID (C) Amount Picked (D)
    10/19/2021 (A) Apples (B) Picker 1 (C) 60 (D)
    10/19/2021 (A) Apples (B) Picker 2 (C) 92 (D)
    10/19/2021 (A) Oranges (B) Picker 3 (C) 90 (D)
    10/19/2021 (A) Oranges (B) Picker 4 (C) 74 (D)
    10/20/2021 (A) Oranges (B) Picker 1 (C) 60 (D)
    10/20/2021 (A) Oranges (B) Picker 2 (C) 92 (D)
    10/20/2021 (A) Apples (B) Picker 4 (C) 90 (D)
    10/21/2021 (A) Apples (B) Picker 4 (C) 74 (D)
    If I I wanted to know how many times the value "apples" occurred for each date adjacent to it within Column A (Date), how would I count how many times Column B (Fruit) returned the value for apples on that given date? I would like a return value that looks at all the dates within the date column where both Apples and a Date occur and count how many times it appears for that date. From my data snapshot above my ideal result would say:
    10/19/21 2 (which means there is a total of 2 occurrences for apples on 10/19/21), and 10/20/20 1 (which means there is a total of 1 occurrence for apples on 10/20/21), and
    10/21/20 1 (which means there is a total of 1 occurrence1 for apples on 10/21/21).
    Any help you can offer is GREATLY appreciated!

  • @bennycohen4777
    @bennycohen4777 Před 2 lety

    Hi Jon, I saw you touched briefly on the VLOOKUP, I'm having issues sometimes with the VLOOKUP not being able to pick value sometimes even though there is an exact match with no invisible spaces or wrong characters, I wonder if you experienced that as well and what is causing it... The reason I know the target which I'm comparing is an exact match is because when I copy and paste those columns on a new sheet it all of a sudden pick up the value.... I also make sure the formatting is the same or clearing the formats. A similar issue happens on search function sometimes.

    • @anushrisarkar-lifeisarhyth3452
      @anushrisarkar-lifeisarhyth3452 Před 2 lety

      May be try to ensure that there are no spaces by using Text to columns under Data bar. It works for me when using vlookup

    • @ExcelCampus
      @ExcelCampus  Před 2 lety

      Hi Benny, are the values numbers or dates? If so, it could be a rounding or decimal place issue. Vlookup requires the values to match exactly, including decimals.
      If the values are text then it will likely be a different issue.
      We don’t have a public forum but we do have a community forum inside our Elevate Excel Training Program where members can ask questions and post files.
      You can also submit a question and sample file at www.excelcampus.com/ask/
      Due to the high volume we receive, we can’t promise to answer all questions submitted there but do consider them for future YT videos.
      I hope that helps.

  • @bishansaha8884
    @bishansaha8884 Před 2 lety

    How I find large 3 salary from a salary list

  • @Yeyeguang
    @Yeyeguang Před rokem

    8:01 Hi May I know the formula if same company and will total sum of same company amount in the new cell?

    • @ExcelCampus
      @ExcelCampus  Před rokem

      Hi Kahshen! If I understand correctly, you probably want to use the SUMIF or SUMIFS function for that. It will calculate the sum of a range based on the criteria in one or more ranges.
      We'll add this to our list for future videos. Thanks! 🙂

  • @USbachelor
    @USbachelor Před rokem

    Couldn't get to that excel sheet.

  • @BurstFlare
    @BurstFlare Před 5 měsíci

    I'm trying to use multiple IFs in a single cell. Not IFs nested inside of each other, but rather one IF followed by another and then another and so on. But everything I tried comes up with an error. What should I do?

    • @ExcelCampus
      @ExcelCampus  Před 5 měsíci

      Hi Burst! 😊 If you want to join the separate IF results together as a string of text, use the ampersand (&) symbol. You may want to separate the results with a space, slash, or pipe ( | ), which can be done like &" | "& in between the IF formulas. Hope that helps! 😊

    • @BurstFlare
      @BurstFlare Před 5 měsíci

      @@ExcelCampus That worked, thanks.

    • @BurstFlare
      @BurstFlare Před 5 měsíci

      @@ExcelCampus New question. The IFs I'm using have results that output blank text. I want to make it so that if every IF in the cell outputs blank text, the cell will show "None" instead of appearing blank. Is there a way to do that without nesting those IFs inside another IF?

  • @laconan
    @laconan Před 2 lety

    I don't see the downloadable file.

  • @TheRealLorraineAliceCalderon
    @TheRealLorraineAliceCalderon Před 10 měsíci

    I don't see the file

    • @ExcelCampus
      @ExcelCampus  Před 10 měsíci

      Hello! you can download the file from this link www.excelcampus.com/functions/how-to-write-if-function/ under "Download the Excel File" Thanks! 😀

    • @32karthikkp37
      @32karthikkp37 Před 8 měsíci

      ​@@ExcelCampusthis link is not working can you send the valid link

  • @haifajo
    @haifajo Před 2 lety

    Thanks Jon :), i have an issue calculating total sales delivered by delivery truck, i used the sumifs formula but it gave the wrong answer! can I email you the spreadsheet?