Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Stacy M via OfficeKB.com
 
Posts: n/a
Default Possible IF statement?


Hello,

I am trying to make an accounts payable spreadsheet based on patient visits
our doctors perform. Is there any way to build a formula that, if you put a
date in a cell, it will add up what is due in a total column? I thought using
an IF statement would work, but I'm not sure what the IF part would be.
Basically, I need a formula that if something is entered in a cell, it will
calculate an amount due for that cell and add a sum total at the end. It's
set up something like this:

Visit 1 Visit 2 Visit 3 Total
Amount Due
$300 $275 $150

1/4/05 2/5/05

To clarify, I need something in the amount due column to automatically figure
that $575 is presently due because there are dates entered.

I hope this makes sense!! If anybody has any idea or resources that I could
follow up with, I'd greatly appreciate it!!
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

=sumif(3:3,"0",2:2)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Stacy M via OfficeKB.com" wrote in message
...

Hello,

I am trying to make an accounts payable spreadsheet based on patient

visits
our doctors perform. Is there any way to build a formula that, if you put

a
date in a cell, it will add up what is due in a total column? I thought

using
an IF statement would work, but I'm not sure what the IF part would be.
Basically, I need a formula that if something is entered in a cell, it

will
calculate an amount due for that cell and add a sum total at the end. It's
set up something like this:

Visit 1 Visit 2 Visit 3 Total
Amount Due
$300 $275 $150

1/4/05 2/5/05

To clarify, I need something in the amount due column to automatically

figure
that $575 is presently due because there are dates entered.

I hope this makes sense!! If anybody has any idea or resources that I

could
follow up with, I'd greatly appreciate it!!



  #3   Report Post  
bj
 
Posts: n/a
Default

try something like
=sumproduct(--(visit range<0),Cost range)
in your totals column.
note the Visit range and Cost range must be the same size
the --( converts the true false logical statement to a 1,0 numeric value.

"Stacy M via OfficeKB.com" wrote:


Hello,

I am trying to make an accounts payable spreadsheet based on patient visits
our doctors perform. Is there any way to build a formula that, if you put a
date in a cell, it will add up what is due in a total column? I thought using
an IF statement would work, but I'm not sure what the IF part would be.
Basically, I need a formula that if something is entered in a cell, it will
calculate an amount due for that cell and add a sum total at the end. It's
set up something like this:

Visit 1 Visit 2 Visit 3 Total
Amount Due
$300 $275 $150

1/4/05 2/5/05

To clarify, I need something in the amount due column to automatically figure
that $575 is presently due because there are dates entered.

I hope this makes sense!! If anybody has any idea or resources that I could
follow up with, I'd greatly appreciate it!!

  #4   Report Post  
Stacy M via OfficeKB.com
 
Posts: n/a
Default


Thank you so much!! This worked great!

bj wrote:
try something like
=sumproduct(--(visit range<0),Cost range)
in your totals column.
note the Visit range and Cost range must be the same size
the --( converts the true false logical statement to a 1,0 numeric value.

Hello,

[quoted text clipped - 17 lines]
I hope this makes sense!! If anybody has any idea or resources that I could
follow up with, I'd greatly appreciate it!!

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
Do I need a sumif or sum of a vlookup formula? PeterB Excel Worksheet Functions 0 June 1st 05 12:23 PM
IF Statement Brent New Users to Excel 3 April 29th 05 04:24 PM
How to calculate a sum as one outcome of an IF statement barb in NC Excel Worksheet Functions 2 March 31st 05 08:01 PM
What statement to use? Paul Excel Worksheet Functions 6 February 13th 05 05:23 PM
Statement lintan Excel Worksheet Functions 1 December 2nd 04 11:31 PM


All times are GMT +1. The time now is 04:10 AM.

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

About Us

"It's about Microsoft Excel"