Skip to content
View in the app

A better way to browse. Learn more.

Thailand News and Discussion Forum | ASEANNOW

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Google Sheets Help: If-Then formula

Featured Replies

Can anybody help me with this in Google Sheets?  I used to be able to do it and now I can't remember how.  I tried using the standard "if-then" formula but must be doing something wrong.

 

I want a formula that will make cell 13 equal zero, if the sum of cell 14 + 15 is greater than 2,000.  Assume the column is "A" for the purpose of giving me the formula.

 

image.jpeg.016aaeeaf71ed9bcbed480912b7619a7.jpeg

 

Thanks!

Do you use the Google Sheets API v4 by any chance? Or just the sheets themselves?

  • Author
4 minutes ago, ozimoron said:

Thanks but that I was using something similar and I just couldn't get it to work.  I remember it was a very simple formula.  I must be making a syntax error but I can't figure where, so hoping somebody can just write it out for me so I can plug it in.

  • Author
5 minutes ago, ozimoron said:

Do you use the Google Sheets API v4 by any chance? Or just the sheets themselves?

What ever is at https://docs.google.com/.  I really am not an expert with the specifics of Google Sheets, but I'm pretty sure the formula is more or less universal, and I remember it was very simple.

What do you want it to display if the sum of 14 and 15 is less than 2000?

1 minute ago, Lemsta69 said:

What do you want it to display if the sum of 14 and 15 is less than 2000?

My guess is don't do anything with row 13 in that case.

=IF(B12+B13>2000,0,"X")  

 

image.png.119aab86728c48cffbc9134d963bca0b.pngimage.png.dd996e4639d72f559fb8133687f9edb6.png

6 minutes ago, ozimoron said:

My guess is don't do anything with row 13 in that case.

Then it would be =IF((A14+A15)>2000,0,"")

If anyone does use Sheets API v4 I wrote an extensive library in ruby if anyone wants it for zip.

17 hours ago, ozimoron said:

I think it should be =IF((B14 + B15) > 2000, 0,)

 

Note final comma, that should preserve the original content in cell 13 if the intention is not to modify it.

 

https://webapps.stackexchange.com/questions/142985/is-there-a-way-to-get-the-if-statement-to-output-nothing-if-it-returns-false

 

 

Thanks, very useful tip. Excel user because of my old job so still getting used to Sheets (I use it on my phone for fairly simple calculations).

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.