Computing.Net > Forums > Office Software > IF Staement with list for dates

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

IF Staement with list for dates

Reply to Message Icon

Name: Ajack
Date: May 12, 2009 at 07:09:42 Pacific
OS: Windows XP
Subcategory: Microsoft Office
Comment:

Okay i am creating a database for people coutning, I am entering data on a daily basis, with a list for the day such as Monday, Tuesday etc. So at the end of the 30 days i want to see a total for each day such as all the mondays and all the tuedays. I wrote an if statment =IF($B4="Monday",C6,+IF(B14="Monday",C16+IF(B24="Monday",C26)))
so basically B4 is where that days is (all Bs are days) and the C's are the value that i want added together if the day is monday! but since i am doing it for everyday and thus as soon as it says tuesday it becomes false and doesnt add the next monday. how do i get around it. I know a little complicated but was just wondering. PLease help! ( so basically i want to have all the mondays totals, and tuesday totals etc, calculated. Though obviously the first day in each month isnt a Monday so i though if statement was better)



Sponsored Link
Ads by Google

Response Number 1
Name: Mike (by mmcconaghy)
Date: May 12, 2009 at 08:34:24 Pacific
Reply:

Your looking for a =SUMIF solution.

Try this:

all Bs are days and the C's are the value

So in Cell D1 will be your totals for all Mondays:

=SUMIF(B1:B45,"Monday",C1:C45)

Cell D2 will be your totals for Tuesday:

=SUMIF(B1:B45,"Tuesday",C1:C45)

Etc. Etc.

I've only used from cell B/C 1 through B/C 45
Modify to suit your needs.

MIKE

http://www.skeptic.com/


0
Reply to Message Icon

Related Posts

See More


caching in excel Excel File



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: IF Staement with list for dates

Mailing list for small business www.computing.net/answers/office/mailing-list-for-small-business/7725.html

Leading Zeros for Dates in Excel www.computing.net/answers/office/leading-zeros-for-dates-in-excel/8177.html

Select a date from a list of Date www.computing.net/answers/office/select-a-date-from-a-list-of-date/8214.html