Prev: Workbook Macro
Next: Print is not WYSIWYG
From: lulu151 on 7 May 2010 14:01 I want to sumif a number in the range is greater than ie 4000 but less than 5000 than return the sum range? How do I enter the criteria to give the results required. Example: Range: A2:A875 Sum_Range: D2:D875 Criteria Need: ?????? Sum if the number in A is greater than 4000 but less than 5000, than return corresponding sum range D
From: Brad on 7 May 2010 14:12 =sumproduct(--(a2:a875>4000),--(a2:a875<5000),d2:d875) -- Wag more, bark less "lulu151" wrote: > I want to sumif a number in the range is greater than ie 4000 but less than > 5000 than return the sum range? > > How do I enter the criteria to give the results required. > > Example: > Range: A2:A875 > Sum_Range: D2:D875 > Criteria Need: ?????? > > Sum if the number in A is greater than 4000 but less than 5000, than return > corresponding sum range D
From: Bernard Liengme on 7 May 2010 14:12 =SUMIF(A2:A875,">"&4000,D2:D875)-SUMIF(A2:A875,">"&4999,D2:D875) or =SUMPRODUCT(--(A2:A875>4000),--(A2:A875<5000),D2:D875) or in Excel 2007+ =SUMIFS(D2:D875, A2:A875, ">"&4000, A2:A875, "<"&5000) best wishes -- Bernard Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme "lulu151" <lulu151(a)discussions.microsoft.com> wrote in message news:15ADFF43-6F95-4A87-BE8C-5028B4C3A1BC(a)microsoft.com... > I want to sumif a number in the range is greater than ie 4000 but less > than > 5000 than return the sum range? > > How do I enter the criteria to give the results required. > > Example: > Range: A2:A875 > Sum_Range: D2:D875 > Criteria Need: ?????? > > Sum if the number in A is greater than 4000 but less than 5000, than > return > corresponding sum range D
|
Pages: 1 Prev: Workbook Macro Next: Print is not WYSIWYG |