ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   sumif based on last digit of account list (https://www.excelbanter.com/excel-worksheet-functions/136983-sumif-based-last-digit-account-list.html)

Ted Metro

sumif based on last digit of account list
 



=SUM((RIGHT(C6:C9,1)="1")*D6:D9)

Elkar

sumif based on last digit of account list
 
Try this:

=SUM(IF(RIGHT(C6:C9,1)="1",D6:D9,0))

This is an array formula and should be entered with CTRL-SHIFT-ENTER instead
of just Enter. If done properly, the formula should be surrounded by { }

Or, another option:

=SUMPRODUCT(--(RIGHT(C6:C9,1)="1",(D6:D9))

HTH,
Elkar


"Ted Metro" wrote:




=SUM((RIGHT(C6:C9,1)="1")*D6:D9)



All times are GMT +1. The time now is 10:44 PM.

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