ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   my sumif statement brings back mutiple answers, how do I fix it? (https://www.excelbanter.com/excel-worksheet-functions/55550-my-sumif-statement-brings-back-mutiple-answers-how-do-i-fix.html)

graham

my sumif statement brings back mutiple answers, how do I fix it?
 
I am trying to write a sumif statment that looks up a date. In my array the
criteria is showing up twice. How could i write a statement that would bring
back the answer from the closest date.

William Horton

my sumif statement brings back mutiple answers, how do I fix it?
 
Not sure what your formula / criteria is but perhaps you could add a Max or
Min to it.

"graham" wrote:

I am trying to write a sumif statment that looks up a date. In my array the
criteria is showing up twice. How could i write a statement that would bring
back the answer from the closest date.


vezerid

my sumif statement brings back mutiple answers, how do I fix it?
 
graham,

the closest to what? When you say "the criteria is showing up twice", I
understand that in the date column your lookup value appears twice. If
so, then SUMIF() is designed to get you the sum for this date, no
matter how many times it appears.

So, if the two days are the same, does closest mean "most recently
entered (therefore further down the worksheet)"?. Is there another
column for which we want the highest value for the given date?



All times are GMT +1. The time now is 03:12 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com