ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Mulitple Formulas/Same Cell (https://www.excelbanter.com/excel-worksheet-functions/148387-mulitple-formulas-same-cell.html)

Erina

Mulitple Formulas/Same Cell
 
This seems very simple, but I can't figure it out. In Cell D8, I need the
formula to say, F8-G8, but if F8-G8=0, then add J8, K8, L8 and M8. Any
suggestions?
Thank You!

Elkar

Mulitple Formulas/Same Cell
 
Try something like this:

=IF(F8-G8=0,SUM(J8:M8),F8-G8)

HTH,
Elkar


"Erina" wrote:

This seems very simple, but I can't figure it out. In Cell D8, I need the
formula to say, F8-G8, but if F8-G8=0, then add J8, K8, L8 and M8. Any
suggestions?
Thank You!


Rick Rothstein \(MVP - VB\)

Mulitple Formulas/Same Cell
 
=IF(F8-G8=0,SUM(J8:M8),F8-G8)

Just noting that F8-G8=0 is the same as F8=G8

Rick


All times are GMT +1. The time now is 11:05 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com