Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
Hi, I need assistance with a download that has text in two seperate columns,
referencing general ledger account numbers. I need to reference these columns in a sumif formula, but can't seem to get it right. This is an example: sumif(download worksheet a1:b200,"'610'"&"'00'",downloadworksheet d1:d200) Any ideas? Thanks |
#2
![]() |
|||
|
|||
![]()
If you are trying to test for 2 values, you need 2 SUMIFs
=SUMIF('download worksheet'!,A1:B200,"610",'download worksheet'!D1:D200)+SUMIF('download worksheet'!,A1:B200,"00,'download worksheet'!D1:D200) -- HTH RP (remove nothere from the email address if mailing direct) "Basil" wrote in message ... Hi, I need assistance with a download that has text in two seperate columns, referencing general ledger account numbers. I need to reference these columns in a sumif formula, but can't seem to get it right. This is an example: sumif(download worksheet a1:b200,"'610'"&"'00'",downloadworksheet d1:d200) Any ideas? Thanks |
#3
![]() |
|||
|
|||
![]()
I think you'll have a problem trying to use SumIf() to search *2* columns
(A1:B200). If "610" and "00" are each in separate columns, (610 in A and 00 in B), then you'll need 2 "joined" SumIf's: =SUMIF(A1:A200,"610",D1:D200)+SUMIF(B1:B200,"00",D 1:D200) If, on the other hand, "610" and "00" are contained in *both* columns, then you could try something like this: =SUM(SUMIF(A1:A200,{"610","00"},D1:D200)+SUMIF(B1: B200,{"610","00"},D1:D200) ) The caveat for both formulas however, is that if "610" and/or "00" are in the same row, the value in Column D will be totaled *twice*. -- HTH, RD ============================================== Please keep all correspondence within the Group, so all may benefit! ============================================== "Basil" wrote in message ... Hi, I need assistance with a download that has text in two seperate columns, referencing general ledger account numbers. I need to reference these columns in a sumif formula, but can't seem to get it right. This is an example: sumif(download worksheet a1:b200,"'610'"&"'00'",downloadworksheet d1:d200) Any ideas? Thanks |
#4
![]() |
|||
|
|||
![]()
"Bob Phillips" wrote...
If you are trying to test for 2 values, you need 2 SUMIFs =SUMIF('download worksheet'!,A1:B200,"610",'download worksheet'!D1:D200) +SUMIF('download worksheet'!,A1:B200,"00,'download worksheet'!D1:D200) .... Multiple syntax errors, so untested. Excel's formula parser chokes in the commas immediately after the exclamation points and the missing double quote after "00. |
#5
![]() |
|||
|
|||
![]()
"RagDyeR" wrote...
I think you'll have a problem trying to use SumIf() to search *2* columns (A1:B200). If "610" and "00" are each in separate columns, (610 in A and 00 in B), then you'll need 2 "joined" SumIf's: =SUMIF(A1:A200,"610",D1:D200)+SUMIF(B1:B200,"00", D1:D200) .... The caveat for both formulas however, is that if "610" and/or "00" are in the same row, the value in Column D will be totaled *twice*. .... Which is why the formula above is inadequate. You're also assuming the OP wants one criterion *OR* the other satisfied. If so, and if they apply separately to each column, then the OP needs to use something like =SUMPRODUCT(--((A1:A200="610")+(B1:B200="00")0),D1:D200) On the other hand, if the OP's '&' in his original attempt should be taken to mean *BOTH* criteria must be satisfied, then the OP needs to use =SUMPRODUCT((A1:A200="610")*(B1:B200="00"),D1:D200 ) |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? | Excel Discussion (Misc queries) | |||
Access Module coded converted to Excel Function | Excel Discussion (Misc queries) | |||
Excel function help facilities | Excel Discussion (Misc queries) | |||
I cant use englisch function names in a swedich version of excel | Excel Discussion (Misc queries) | |||
Statistical Excel Function Question within Excel 2000... | Excel Worksheet Functions |