Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 190
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,345
Default 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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Writing UDF Help jlclyde Excel Discussion (Misc queries) 4 April 22nd 08 08:30 PM
Why doesn't writing a nested IF function work? Littlerose210 Excel Discussion (Misc queries) 1 April 8th 08 06:01 AM
Help Writing Function JamesEXCELhelp Excel Worksheet Functions 8 January 4th 08 06:06 AM
Writing to csv Jeff Excel Discussion (Misc queries) 2 March 16th 07 01:35 PM
Writing a formula julescc Excel Worksheet Functions 6 March 3rd 05 01:45 AM


All times are GMT +1. The time now is 08:58 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"