Formulas > =IF()
How to Use IF() in Google Sheets
Description
How To Actually Use IF() in Sheets
IF(logical_expression, value_if_true, value_if_false)
Try IF yourself
Use the IF formula to check if the value in A1 is greater than 10. If true, return 'Yes', otherwise return 'No'.
Hints (2)
-
Remember to compare the values in A1.
-
Think about what you want to return for both true and false conditions.
Sheet art with IF
Use IF with CHAR to switch traffic lights, checkmarks, and status icons based on a cell value.
Sheet art examples with IF()
8 copy-paste formulas from the Playground use IF(). Click a card to copy the full formula into Google Sheets. Showing a curated set from 555 matching examples.
=IF(A1="red","🔴",IF(A1="yellow","🟡","🟢"))
🟢
=IF(LOWER(A1)="yes","🟢",IF(LOWER(A1)="no","🔴","🟡"))
🟢
=IF(A1="Yes",CHAR(10004)&" Yes","✗ No")
✔ Yes
=IF(A1>0,"▲ "&A1,IF(A1<0,"▼ "&A1,"→ 0"))
▲ 12
=IF(OR(LOWER(A1)="yes",LOWER(A1)="go"),"🍏",IF(OR(LOWER(A1)="no",LOWER(A1)="stop"),"🍎","🤷"))
🍏
=IF(LOWER(A1)="approved","👍",IF(LOWER(A1)="not approved","👎","🤷"))
👍
=IF(LOWER(A1)="pass","🟢",IF(LOWER(A1)="fail","🔴","🟡"))
🟢
=IF(A1>0,TEXT(B1/(A1/1000),"0.0")&" cups/1K words ☕","—")
2.0 cups/1K words ☕
Better Sheets Tutorial
Build The Dashboard - Design a Better Dashboard Part 3
How to Make Hangman Game In Google Sheets
Create A Video Course in a Google Sheet | LMS in a Google Sheet
This Seems Like Automation
Ultimate Headline Writer with GPT in SHEETS
One Weird Google Sheet Formula for Bulk Publishing With AI
Create an Auto-Update Sales Chart: Trailing 12 Months
Data Validation with Formulas
Spreadsheet Automation 101 Lesson 2: If ( ){ } and Checkboxes
Prompt Parade
Send a Daily Email with Inspiring Quote - A Little Pick Me Up
Project Based Task Management
Better Google Ad Writing Tool Sheet Makeover
Build a Case Converter From Scratch
I added a little apps script to it that will check only one of the options. Check out the Radio Button Apps Script in another video.
Two Things to Know When Starting to Learn Google Sheets
1. How to Combine Formulas
2. How to Copy/Paste Apps Script Code to Your Sheet
Learn these two things in this quick video going over why I think these are important. And how unintuitive they are to beginners!
→ Learn more about Formula Combinations
→ Learn more Apps Script in Spreadsheet Automation 101
CRM Automations
Create a ChatGPT Cheat Sheet Spreadsheet
Watch the Upgrade to GPT-4 video to see the differences between GPT-3 and GPT-4 Apps Script
Ultimate Checklist in Google Sheets
YouTube Thumbnail A/B Test Results
200 REGEXMATCH Examples in Google Sheets
Use REGEXMATCHER to generate any REGEXTMATCH formula you want.
REGEXMATCH Formula Generator for Google Sheets
I Built a SEO Meta Description Writer
A Few New Spreadsheet Business Ideas
Leveraging Expired Domain Names for Google Sheets Business: The speaker discusses using expired domain names to create and sell Google Sheets templates or tools. He demonstrates how to find domain names related to 'sheets' and suggests creative business ideas around them.
Importing and Analyzing Data in Google Sheets: The process of importing CSV data into Google Sheets and manipulating it to find specific information (like domains containing the word 'sheet') is showcased. This highlights the versatility of Google Sheets in handling and analyzing data.
Idea Generation and Business Opportunities in Google Sheets: The speaker, Andrew Kamphey, provides several examples of how to generate business ideas using Google Sheets. He suggests various niches like WordPress-related spreadsheets, balance sheets for accountants, and even educational tools like math workbooks, demonstrating the wide range of potential applications for Google Sheets in various domains.
How to Make Better Lead Magnets
Password Protecting Data In a Google Sheet Part 2 The Basics
Password Protecting Data In a Google Sheet
5 Ways To Use Google Sheets for Advanced Project Management
SubSpyHub Subreddit Scanner
Google Sheets Stories? No! But we'll add timestamped video notes to your google sheets.
User Filter a Google Sheet Database based on Dates, Checkboxes, Dropdown!
How to Find Duplicates
Build Your Own Free Domain Availability Checker
Learn how to integrate sheets with a TLD Availability API.
How to Make An Easter Egg Hunt in a Google Sheet - by BetterSheets.co
Create a Timer with Apps Script
Find Hundreds of Available Domains From Keywords with Concat and Array Formula
Sheet Stories / Video Notes + ADDED: Email Notifications
How to Iterate Counting Blank Cells in Google Sheets
2 Ways to Hide Data
Wallace Asks: How To Find New Names
Build a Thermometer for Savings Goals
How to Turn a Simple List into an Epic Lead Magnet
Kristy Asks How to Get Percentages from Scores
We find that the Query formula and other solutions are inflexible or time intensive. We want a solution that does actually solve the problem at hand, in a quick way, and also is easy to edit and flexible to solve other problems.
Create Instant QR Codes
How Can I Compare Two Tabs for Differences?
Run 100 ChatGPTs at One Time
We make it better.
We add a checkbox and another prompt to take the output of the 1st prompt and run it again. And we can do that 100 times too. So each horizontal row can be it's own ChatGPT.
You can get the ai Apps Script in this video's sheet or in the sheet connected to the GPT-4 upgrade: https://bettersheets.co/tutorials/upgrade-google-sheets-openai-prompt-to-gpt-4
Create a Course Outline in Google Sheets
Create a Waterfall of AI Prompts and Responses
I show you one way not to do it, that fails with onEdit() but then I do show one particular way it could work. We wrestle with AI a bit in this video and the conclusion is not so sweet.
Get the sheet below with the Apps Script and API code already written for you.
10 Things I Hate About Your Spreadsheets
The 10 Things I Hate about your Sheets
- Squeezed Rows
- Garbage Data
- Looks The Same
- Crazy Column Width
- Where’s Waldo
- Of Results
- Too Many Clicks
- Instructions Unclear
- Eye Strain and Headaches
- Lazy Conditional Formatting
- Too Many Cells
Turn Headlines up to 11! - Update to Spintax Tool
How to Make an AI Integrated Freebie Spreadsheet
Get the freebie here at @abloommedia on TikTok or on Abloommedia.com
Sorry no sheet available even for members. Get the AI code in the video mentioned: Upgrade AI to GPT 4
Every Possible Permutation - Solved with Spintax
→ Get Spintax
Create a Branded Lead Magnet from Qualitative Data
Check out Josh's Tweet about the sheet.
and check out his Podia.
The video shows the importance of adding personal touches to a Google Sheet to connect better with users. It explains how to analyze the sheet's data to find trends and best practices for website content. Lastly, it discusses ways to share the sheet widely while still giving credit to its creator.
Different Kinds of Automation
- Built-in Formulas that seem like automation IF()
- Custom Functions in Apps Script
- Time Driven Triggers
- Event Driven Triggers
Build a Job Status Checker API in 15 Minutes
- Setting up a Google Sheet as a database: The sheet contains job IDs and their corresponding statuses. This setup acts as a backend where job statuses can be updated.
- Creating an API with Google Apps Script: By writing a custom script, a doGet function is deployed as a web app. This function allows users to query the Google Sheet by job ID via a URL, returning the job's current status.
- Deploying a web app: The script is deployed as a web application, which generates a unique URL. This URL acts as an endpoint for the API, where requests can be sent to check job statuses based on job IDs.
- Front-end form for checking job status: A form is created using an online tool (like CARRD) where users can input a job ID. Upon submission, the form sends a request to the API, retrieves the job status from the Google Sheet, and displays it to the user.
- Securing data visibility: This method ensures that only the relevant job status information is shared with external users, without revealing the entire content of the Google Sheet.
- Integration with other Sheets: The API can also be used in conjunction with other Google Sheets using the IMPORTDATA function, allowing for the automated retrieval of job statuses into other spreadsheets without manual data entry or revealing the original data source.
This approach is valuable for project management, allowing for real-time status checks of various jobs with minimal setup and without the need for complex database systems or advanced coding knowledge.
Access Free API's with Google Sheets
API's here: freepublicapis.com
Pick a Raffle Winner with Number of Tickets
Simple Inventory Management Automations
More related tutorials
Transcript-matched member videos for IF(). Click through to watch.
Calculate ROAS in Google Sheets
Learn Google Sheet Formulas The Hard Way
The First Thing I Do When Starting a Google Sheet
Learn more about the IF() formula:
Generate a IF() formula for your needs
Describe your task in plain English and get a paste-ready formula that uses IF(). 2 free AI generations, no signup. Members get unlimited use.
Generate a IF() formula