Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi there
I have inherited a huge spreadsheet which runs a bunch of macros, is protected (until I select unprotect), has multiple frame freezes,etc. I have to tally up all the Consumables for a particular project based on a certain grant code. I have tried using SUMIF(F21:F102,"14",AK21:AK102) but it keeps returning 0 which is certainly not the case. (F$ is the column for grant code and AK$ stores the dollar value of consumable.) Am I using the wrong formula, or could it be as simple as a format error, or.... Any suggestions? Thanks |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
Might be dealing with extra spaces so maybe: =SUM(IF(TRIM(F21:F102)="14",AK21:AK102)) enter using Ctrl+Shift+Enter HTH Jean-Guy "Andi" wrote: Hi there I have inherited a huge spreadsheet which runs a bunch of macros, is protected (until I select unprotect), has multiple frame freezes,etc. I have to tally up all the Consumables for a particular project based on a certain grant code. I have tried using SUMIF(F21:F102,"14",AK21:AK102) but it keeps returning 0 which is certainly not the case. (F$ is the column for grant code and AK$ stores the dollar value of consumable.) Am I using the wrong formula, or could it be as simple as a format error, or.... Any suggestions? Thanks |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I presume column F contains numbers, normally you don't need quotes around
numbers unless they are text formatted so try =SUMIF(F21:F102,14,AK21:AK102) "pinmaster" wrote: Hi, Might be dealing with extra spaces so maybe: =SUM(IF(TRIM(F21:F102)="14",AK21:AK102)) enter using Ctrl+Shift+Enter HTH Jean-Guy "Andi" wrote: Hi there I have inherited a huge spreadsheet which runs a bunch of macros, is protected (until I select unprotect), has multiple frame freezes,etc. I have to tally up all the Consumables for a particular project based on a certain grant code. I have tried using SUMIF(F21:F102,"14",AK21:AK102) but it keeps returning 0 which is certainly not the case. (F$ is the column for grant code and AK$ stores the dollar value of consumable.) Am I using the wrong formula, or could it be as simple as a format error, or.... Any suggestions? Thanks |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Use SUMPRODUCT: =SUMPRODUCT(--(F21:F102=14),--(AK21:AK102))
Does that work? Dave -- Brevity is the soul of wit. "Andi" wrote: Hi there I have inherited a huge spreadsheet which runs a bunch of macros, is protected (until I select unprotect), has multiple frame freezes,etc. I have to tally up all the Consumables for a particular project based on a certain grant code. I have tried using SUMIF(F21:F102,"14",AK21:AK102) but it keeps returning 0 which is certainly not the case. (F$ is the column for grant code and AK$ stores the dollar value of consumable.) Am I using the wrong formula, or could it be as simple as a format error, or.... Any suggestions? Thanks |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Adding TRIM before the array solved the problem.
Thanks! "pinmaster" wrote: Hi, Might be dealing with extra spaces so maybe: =SUM(IF(TRIM(F21:F102)="14",AK21:AK102)) enter using Ctrl+Shift+Enter HTH Jean-Guy "Andi" wrote: Hi there I have inherited a huge spreadsheet which runs a bunch of macros, is protected (until I select unprotect), has multiple frame freezes,etc. I have to tally up all the Consumables for a particular project based on a certain grant code. I have tried using SUMIF(F21:F102,"14",AK21:AK102) but it keeps returning 0 which is certainly not the case. (F$ is the column for grant code and AK$ stores the dollar value of consumable.) Am I using the wrong formula, or could it be as simple as a format error, or.... Any suggestions? Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Lookup with Multiple Criteria | Excel Discussion (Misc queries) | |||
Counting Using Multiple Criteria | Excel Worksheet Functions | |||
Retrieving a Value from List that meets multiple Criteria | Excel Discussion (Misc queries) | |||
Multiple criteria LOOKUP | Excel Worksheet Functions | |||
Multiple Criteria (add or subtract) | Excel Discussion (Misc queries) |