Home |
Search |
Today's Posts |
#10
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
If there are more than two occurances then you could use: =IF(B2="","",IF(COUNTIF(C$2:C$9,C2)=COUNTIF(C$2:C2 ,C2),SUMIF(C$2:C2,C2,B$2:B2),"")) And if there are no blank rows you can shorten this to =IF(COUNTIF(C$2:C$9,C2)=COUNTIF(C$2:C2,C2),SUMIF(C $2:C2,C2,B$2:B2),"") -- If this helps, please click the Yes button. Cheers, Shane Devenshire "JB Akron" wrote: Thank you that is exactly what I was looking for "Teethless mama" wrote: Assuming titles in row 1 In D2: =IF(C2="","",IF(LOOKUP(2,1/($C$2:$C$9=C2),ROW($C$2:$C$9)-1)=ROW()-1,SUMIF($C$2:$C$9,C2,$B$2:$B$9),"")) Copy down Adjust your range to suit "JB Akron" wrote: I need to add data if sites match in one column (C). If they match, then corresponding cell data from Column (B) are added together and as a sum in Column D. If there is not a duplicate match it would be great if the cell just carried over to Column D. The duplicates are not consistent and single sites are intermixed. Column B is numeric, Column C is text Example B C D 1 s234 1 2 s235 5 s235 7 4 s236 4 5 s237 1 s237 6 Thank you for your input. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Using Table Column Data in MATCH | Excel Worksheet Functions | |||
Lookup where column data does not match | Excel Worksheet Functions | |||
Match data in 2 columns and return data from 3rd column | Excel Worksheet Functions | |||
counting data in one column and match with data in another column | Excel Discussion (Misc queries) | |||
how to match data of one column with other | Excel Worksheet Functions |