View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Die_Another_Day Die_Another_Day is offline
external usenet poster
 
Posts: 644
Default What formula!?!?!

Place this in Column B of sheet 2:
=SUMPRODUCT((RIGHT(Sheet1!A1:A6,3)=TEXT(Sheet2!A1, "000"))*(Sheet1!B1:B6))
You must use defined ranges, A:A and B:B do not work with SumProduct.

HTH

Die_Another_Day
jamkul wrote:
Hi to All,

First of all sorry for my english...

I need help with a formula in excel. I have in one sheet several
columns with data. Imagine that in column A I have a code and in column
F I have a value. I need in sheet number 2 the total of values of the
codes that finish in some values. Example:
Sheet 1
Code ---- Value
AB123 -----2
AC123 -----3
AB133 -----6
AA124 -----1
AB124 -----8

Sheet 2
Semi-code-----Total
123-------------5
133-------------6
124-------------9

This semicode can be hard coded or the right 3 digits of Code.

Thank you very much

JK


--
jamkul
------------------------------------------------------------------------
jamkul's Profile: http://www.excelforum.com/member.php...o&userid=36561
View this thread: http://www.excelforum.com/showthread...hreadid=563105