Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi.
I have a table of entries, structured in the following way: Column A contains dates. Column B contains a data validated list. Column D contains values. I now wish to go through all the rows in the list, and sum the values if 1) the value of the cell in column B matches "criteria", and 2) the date in column A is in a specific month. I tried the following formula to sum over all dates in April, without success: =SUMIFS(D1:D10;A1:A10;MONTH=4;B1:B10;"criteria") I suspect my use of the MONTH function is a bit unorthodox, but can't seem to figure out the proper way to do it. I would greatly appreciate any help! /Jonas |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=SUMPRODUCT(--(MONTH(A1:A10)=4);--(B1:B10="criteria");D1:D10)
-- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Jonas" wrote in message ... Hi. I have a table of entries, structured in the following way: Column A contains dates. Column B contains a data validated list. Column D contains values. I now wish to go through all the rows in the list, and sum the values if 1) the value of the cell in column B matches "criteria", and 2) the date in column A is in a specific month. I tried the following formula to sum over all dates in April, without success: =SUMIFS(D1:D10;A1:A10;MONTH=4;B1:B10;"criteria") I suspect my use of the MONTH function is a bit unorthodox, but can't seem to figure out the proper way to do it. I would greatly appreciate any help! /Jonas |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
MONTH=4? MONTH of what?
Did you look in Help for the usage of MONTH? Tyro "Jonas" wrote in message ... Hi. I have a table of entries, structured in the following way: Column A contains dates. Column B contains a data validated list. Column D contains values. I now wish to go through all the rows in the list, and sum the values if 1) the value of the cell in column B matches "criteria", and 2) the date in column A is in a specific month. I tried the following formula to sum over all dates in April, without success: =SUMIFS(D1:D10;A1:A10;MONTH=4;B1:B10;"criteria") I suspect my use of the MONTH function is a bit unorthodox, but can't seem to figure out the proper way to do it. I would greatly appreciate any help! /Jonas |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I think Bob's formulas are supposed to contain commas, not semicolons, as such:
=SUMPRODUCT(--(MONTH(A1:A10)=4),--(B1:B10="criteria"),D1:D10) Also, you may consider this: =COUNTIF(A1:A9,"=4")+COUNTIF(B1:B9,"criteria") However, that may not yield the results you are after. Finally, a pivot table would do it for you, but I think you'd have to add a helper column, and you have to use something like the =month() function. Regards, Ryan--- -- RyGuy "Tyro" wrote: MONTH=4? MONTH of what? Did you look in Help for the usage of MONTH? Tyro "Jonas" wrote in message ... Hi. I have a table of entries, structured in the following way: Column A contains dates. Column B contains a data validated list. Column D contains values. I now wish to go through all the rows in the list, and sum the values if 1) the value of the cell in column B matches "criteria", and 2) the date in column A is in a specific month. I tried the following formula to sum over all dates in April, without success: =SUMIFS(D1:D10;A1:A10;MONTH=4;B1:B10;"criteria") I suspect my use of the MONTH function is a bit unorthodox, but can't seem to figure out the proper way to do it. I would greatly appreciate any help! /Jonas |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
No they are meant to contain semi-colons, as did the OPs, because presumably
he has a continental Excel. -- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "ryguy7272" wrote in message ... I think Bob's formulas are supposed to contain commas, not semicolons, as such: =SUMPRODUCT(--(MONTH(A1:A10)=4),--(B1:B10="criteria"),D1:D10) Also, you may consider this: =COUNTIF(A1:A9,"=4")+COUNTIF(B1:B9,"criteria") However, that may not yield the results you are after. Finally, a pivot table would do it for you, but I think you'd have to add a helper column, and you have to use something like the =month() function. Regards, Ryan--- -- RyGuy "Tyro" wrote: MONTH=4? MONTH of what? Did you look in Help for the usage of MONTH? Tyro "Jonas" wrote in message ... Hi. I have a table of entries, structured in the following way: Column A contains dates. Column B contains a data validated list. Column D contains values. I now wish to go through all the rows in the list, and sum the values if 1) the value of the cell in column B matches "criteria", and 2) the date in column A is in a specific month. I tried the following formula to sum over all dates in April, without success: =SUMIFS(D1:D10;A1:A10;MONTH=4;B1:B10;"criteria") I suspect my use of the MONTH function is a bit unorthodox, but can't seem to figure out the proper way to do it. I would greatly appreciate any help! /Jonas |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
True, but semi-colons are used for commas. To my understanding, they do not
replace the need for arguments enclosed in parentheses. MONTH=4 is exactly what is says it is. It is not MONTH(date). =SUMIFS(D1:D10;A1:A10;MONTH=4;B1:B10;"criteria") does not contain parentheses to enclose the date argument to the MONTH function, as far as I can ascertain. Even if the semi-colons were replaced by commas, it is still MONTH=4. MONTH of what? Tyro "Bob Phillips" wrote in message ... No they are meant to contain semi-colons, as did the OPs, because presumably he has a continental Excel. -- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "ryguy7272" wrote in message ... I think Bob's formulas are supposed to contain commas, not semicolons, as such: =SUMPRODUCT(--(MONTH(A1:A10)=4),--(B1:B10="criteria"),D1:D10) Also, you may consider this: =COUNTIF(A1:A9,"=4")+COUNTIF(B1:B9,"criteria") However, that may not yield the results you are after. Finally, a pivot table would do it for you, but I think you'd have to add a helper column, and you have to use something like the =month() function. Regards, Ryan--- -- RyGuy "Tyro" wrote: MONTH=4? MONTH of what? Did you look in Help for the usage of MONTH? Tyro "Jonas" wrote in message ... Hi. I have a table of entries, structured in the following way: Column A contains dates. Column B contains a data validated list. Column D contains values. I now wish to go through all the rows in the list, and sum the values if 1) the value of the cell in column B matches "criteria", and 2) the date in column A is in a specific month. I tried the following formula to sum over all dates in April, without success: =SUMIFS(D1:D10;A1:A10;MONTH=4;B1:B10;"criteria") I suspect my use of the MONTH function is a bit unorthodox, but can't seem to figure out the proper way to do it. I would greatly appreciate any help! /Jonas |
#7
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Where did Bob use month without arguments?
-- Regards, Peo Sjoblom "Tyro" wrote in message ... True, but semi-colons are used for commas. To my understanding, they do not replace the need for arguments enclosed in parentheses. MONTH=4 is exactly what is says it is. It is not MONTH(date). =SUMIFS(D1:D10;A1:A10;MONTH=4;B1:B10;"criteria") does not contain parentheses to enclose the date argument to the MONTH function, as far as I can ascertain. Even if the semi-colons were replaced by commas, it is still MONTH=4. MONTH of what? Tyro "Bob Phillips" wrote in message ... No they are meant to contain semi-colons, as did the OPs, because presumably he has a continental Excel. -- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "ryguy7272" wrote in message ... I think Bob's formulas are supposed to contain commas, not semicolons, as such: =SUMPRODUCT(--(MONTH(A1:A10)=4),--(B1:B10="criteria"),D1:D10) Also, you may consider this: =COUNTIF(A1:A9,"=4")+COUNTIF(B1:B9,"criteria") However, that may not yield the results you are after. Finally, a pivot table would do it for you, but I think you'd have to add a helper column, and you have to use something like the =month() function. Regards, Ryan--- -- RyGuy "Tyro" wrote: MONTH=4? MONTH of what? Did you look in Help for the usage of MONTH? Tyro "Jonas" wrote in message ... Hi. I have a table of entries, structured in the following way: Column A contains dates. Column B contains a data validated list. Column D contains values. I now wish to go through all the rows in the list, and sum the values if 1) the value of the cell in column B matches "criteria", and 2) the date in column A is in a specific month. I tried the following formula to sum over all dates in April, without success: =SUMIFS(D1:D10;A1:A10;MONTH=4;B1:B10;"criteria") I suspect my use of the MONTH function is a bit unorthodox, but can't seem to figure out the proper way to do it. I would greatly appreciate any help! /Jonas |
#8
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Who are you arguing with, me, the OP, or ryguy7272? You picked up on the OP
(irrelevantly AFAICS), and ryguy7272 picked up on me (incorrectly as it turns out) but he made the mistake of replying to your posting, not mine in the thread. My response was to ryguy7272 pointing out that it was correct to use semi-colons if you have a continental version of Excel, it was not to you, was not appended to yours. You have managed to mix up three posts, completely failed to get the gist of the OPs question (I may have also, but you definitely did), he was trying to show what he had tried but failed to get working. And semi-colons are not used for commas, they are used as a separator of function arguments. You do not use commas, because on the continent, commas are used as the decimal separator for numbers, so they cannot be used as the argument separator. -- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Tyro" wrote in message ... True, but semi-colons are used for commas. To my understanding, they do not replace the need for arguments enclosed in parentheses. MONTH=4 is exactly what is says it is. It is not MONTH(date). =SUMIFS(D1:D10;A1:A10;MONTH=4;B1:B10;"criteria") does not contain parentheses to enclose the date argument to the MONTH function, as far as I can ascertain. Even if the semi-colons were replaced by commas, it is still MONTH=4. MONTH of what? Tyro "Bob Phillips" wrote in message ... No they are meant to contain semi-colons, as did the OPs, because presumably he has a continental Excel. -- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "ryguy7272" wrote in message ... I think Bob's formulas are supposed to contain commas, not semicolons, as such: =SUMPRODUCT(--(MONTH(A1:A10)=4),--(B1:B10="criteria"),D1:D10) Also, you may consider this: =COUNTIF(A1:A9,"=4")+COUNTIF(B1:B9,"criteria") However, that may not yield the results you are after. Finally, a pivot table would do it for you, but I think you'd have to add a helper column, and you have to use something like the =month() function. Regards, Ryan--- -- RyGuy "Tyro" wrote: MONTH=4? MONTH of what? Did you look in Help for the usage of MONTH? Tyro "Jonas" wrote in message ... Hi. I have a table of entries, structured in the following way: Column A contains dates. Column B contains a data validated list. Column D contains values. I now wish to go through all the rows in the list, and sum the values if 1) the value of the cell in column B matches "criteria", and 2) the date in column A is in a specific month. I tried the following formula to sum over all dates in April, without success: =SUMIFS(D1:D10;A1:A10;MONTH=4;B1:B10;"criteria") I suspect my use of the MONTH function is a bit unorthodox, but can't seem to figure out the proper way to do it. I would greatly appreciate any help! /Jonas |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
sumifs will not work with a cell reference as criteria | Excel Discussion (Misc queries) | |||
Using wildcards in criteria for sumifs functions | Excel Discussion (Misc queries) | |||
How do I count frequency based on 2 criteria (including month) | Excel Worksheet Functions | |||
Insert Criteria Based on Current Month | Excel Worksheet Functions | |||
Counting distinct entries based on meeting month & year criteria | Excel Worksheet Functions |