ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   WRITING A WHAT IF FUNCTION (https://www.excelbanter.com/excel-worksheet-functions/191141-writing-what-if-function.html)

Mary

WRITING A WHAT IF FUNCTION
 
I want to write a function that does the following:

Any cells that have "no" then any cells to the left of the "no" cells will
be added together. -- I have a spreadsheet where rents paid are answered
Yes or NO. I want a cell that totals are unpaid rents. Does this make
sense?
MARY

Sandy Mann

WRITING A WHAT IF FUNCTION
 
Try something like:

=SUMIF(B1:B100,"no",A1:A100)

Note that Worksheet functions are not case sensitive so No and no will both
be picked up.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"MARY" wrote in message
...
I want to write a function that does the following:

Any cells that have "no" then any cells to the left of the "no" cells will
be added together. -- I have a spreadsheet where rents paid are
answered
Yes or NO. I want a cell that totals are unpaid rents. Does this make
sense?
MARY





All times are GMT +1. The time now is 12:44 AM.

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