Run formula only If cell contains a value

David Custer

I'm using Microsoft Office 365. I'd like to do something like

=(SUM(J4:J20)+K23)/G23

but sometimes K23 doesn't have a value. So I'm thinking I need to say only do +K23 if it contains a value.

How would I do that?

Raystafarian

Try using

=SUM(J4:J20,IF(K23<>"",K23))/G23

Unless sometimes G23 is blank or zero, replace /G23 with /if(G23<>"",G23,1)

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Reading a cell value that contains a formula returns 0.0 when using xlrd

From Dev

Determining if Excel cell contains array formula or text value

From Dev

Formula to conditional formatting text that contains value from another cell

From Dev

Reading a cell value that contains a formula returns 0.0 when using xlrd

From Dev

Formula to conditional formatting text that contains value from another cell

From Dev

Determining if Excel cell contains array formula or text value

From Dev

Run VBA Script When Cell Value Change by Formula

From Dev

Execute the formula Only if we feed in to the cell - No "0" value - Excel 2010

From Dev

Excel formula is only showing the formula rather than the value within the cell in Office 2010

From Dev

Excel formula is only showing the formula rather than the value within the cell in Office 2010

From Dev

Excel - Pivot Table - Formula Sum a cell only if other cell fulfill an specific value

From Dev

Using "If cell contains #N/A" as a formula condition.

From Dev

How to determine if a cell formula contains Constants?

From Dev

How to determine if a cell formula contains Constants?

From Dev

How to refer within a formula to a cell that contains a wildcard?

From Dev

Replace whole cell with formula if it contains particular string

From Dev

Triggering a formula based on value of a cell

From Dev

Change Formula =Hyperlink Cell Value

From Dev

Conditional formula based on cell value

From Dev

Search for a value and add formula to the cell

From Dev

Formula to ignore or treat as empty a cell that contains another formula with no result?

From Dev

Excel - Replace cell link in formula with value in cell

From Dev

Excel VBA Run-time error 1004 when inserting or value formula into cell

From Dev

Excel - Overflow the text of a cell to an adjacent cell that contains a formula

From Dev

Differentiate between an empty cell and a cell which contains a formula

From Dev

Can I enter data into an Excel cell as a formula, but keep only the resulting value?

From Dev

How to get a cell value's integer character only from worksheet formula?

From Dev

How to run a formula on each cell in a range

From Java

Check if list cell contains value

Related Related

  1. 1

    Reading a cell value that contains a formula returns 0.0 when using xlrd

  2. 2

    Determining if Excel cell contains array formula or text value

  3. 3

    Formula to conditional formatting text that contains value from another cell

  4. 4

    Reading a cell value that contains a formula returns 0.0 when using xlrd

  5. 5

    Formula to conditional formatting text that contains value from another cell

  6. 6

    Determining if Excel cell contains array formula or text value

  7. 7

    Run VBA Script When Cell Value Change by Formula

  8. 8

    Execute the formula Only if we feed in to the cell - No "0" value - Excel 2010

  9. 9

    Excel formula is only showing the formula rather than the value within the cell in Office 2010

  10. 10

    Excel formula is only showing the formula rather than the value within the cell in Office 2010

  11. 11

    Excel - Pivot Table - Formula Sum a cell only if other cell fulfill an specific value

  12. 12

    Using "If cell contains #N/A" as a formula condition.

  13. 13

    How to determine if a cell formula contains Constants?

  14. 14

    How to determine if a cell formula contains Constants?

  15. 15

    How to refer within a formula to a cell that contains a wildcard?

  16. 16

    Replace whole cell with formula if it contains particular string

  17. 17

    Triggering a formula based on value of a cell

  18. 18

    Change Formula =Hyperlink Cell Value

  19. 19

    Conditional formula based on cell value

  20. 20

    Search for a value and add formula to the cell

  21. 21

    Formula to ignore or treat as empty a cell that contains another formula with no result?

  22. 22

    Excel - Replace cell link in formula with value in cell

  23. 23

    Excel VBA Run-time error 1004 when inserting or value formula into cell

  24. 24

    Excel - Overflow the text of a cell to an adjacent cell that contains a formula

  25. 25

    Differentiate between an empty cell and a cell which contains a formula

  26. 26

    Can I enter data into an Excel cell as a formula, but keep only the resulting value?

  27. 27

    How to get a cell value's integer character only from worksheet formula?

  28. 28

    How to run a formula on each cell in a range

  29. 29

    Check if list cell contains value

HotTag

Archive