LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default AND, IF, and SUM IF Functions

The formula works so either I misunderstood what you are trying to do or
your data is not matching

My formula will sum all the entries in C2:C500 where the month in A2:A500 =
the month in C2 AND where B2:B500 = A15

of course if the values in either C2 or A2:A500 are text like January as
opposed to entries like 01/12/07, then it won't work but then again you
would get a value error



--
Regards,

Peo Sjoblom


"hotelmasters" wrote in message
...
thanks - but it doesn't seem to be working. the data is not filtering into
the correct months. any other suggestions?

thanks.

"Peo Sjoblom" wrote:

=SUMPRODUCT(--(MONTH('Time Entry'!$A$2:$A$500)=MONTH(C$2)),--('Time
Entry'!$B$2:$B$500=A15),'Time Entry'!$C$2:$C$500)


note that you cannot use the whole column in this formula (A:A)

also note that if C2 is empty and any entry in A is empty than that
condition is TRUE since Excel count blanks a Jan


--
Regards,

Peo Sjoblom


"hotelmasters" wrote in message
...
I am trying to write a simple code for a time log file in excel. on
sheet1("time log") i have four columns (headers are Date, Client, Time,
Staffer). on sheet2 ("totals"), column A has a list of all of the
clients
and
columns B through M have the months of the year.
i would like for people to be able to enter in all of the info into
sheet1
and then for sheet2 to automatically total the hours according to the
right
client and under the right month in which the services were performed.
I have tried the following formula but it doesn't seem to work
properly:
=IF((MONTH(C$2)=(MONTH('Time Entry'!$A:$A))),SUMIF('Time
Entry'!$B:$C,$A15,'Time Entry'!$C:$C),)

can someone help me with this??






 
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
Functions Tim Excel Discussion (Misc queries) 6 July 19th 07 10:10 PM
XL2003 FILTER FUNCTIONS VS. XL2007 FILTER FUNCTIONS RET70168 Excel Worksheet Functions 0 June 15th 07 01:00 AM
efficiency: database functions vs. math functions vs. array formula nickname Excel Discussion (Misc queries) 2 July 14th 06 04:26 AM
Looking for a site with functions that substitute the ATP functions Franz Verga Excel Worksheet Functions 3 June 24th 06 04:30 AM
Nesting functions in the functions dialog box cs170a Excel Worksheet Functions 0 June 10th 05 10:36 PM


All times are GMT +1. The time now is 01:22 PM.

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"