Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / October 2006

Tip: Looking for answers? Try searching our database.

Writing a formula...is there an easier way?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike - 25 Oct 2006 22:30 GMT
Hello everyone,    Using Excel XP.

In this example I want to total B1:B4 ONLY if the date in A1:A4 has arrived.
In C1 I have a formula of sum of B1:B4, which I want to equal (B1,B2,B3)
because the dates in A1:A3 are greater than today (Oct 25, 2006).

I used a formula in the B column:    =IF(A1>TODAY(),"",50),   etc for all in
B1:B4.  This formula works but I was wondering if there is an easier way to
write a formula as I  have to write an indiviual formula in column B as the
data will change every month.

                A                                        B
C
--------------------------------------------------------------------------------
    1         10/23/06        =IF(A1>TODAY(),"",50)
=sum(B1:B4)
    2         10/24/06        =IF(A2>TODAY(),"",50)
    3         10/25/06        =IF(A3>TODAY(),"",40)
    4         10/26/06        =IF(A4>TODAY(),"",40)

Michael
Biff - 25 Oct 2006 22:50 GMT
Try this:

=SUMIF(A1:A4,">"&TODAY(),B1:B4)

Or, depending on what you mean by: "if the date in A1:A4 has arrived"

=SUMIF(A1:A4,">="&TODAY(),B1:B4)

Biff

> Hello everyone,    Using Excel XP.
>
[quoted text clipped - 16 lines]
>
> Michael
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.