![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
MrExcel MVP
Join Date: Apr 2002
Location: Vancouver BC , Canada
Posts: 6,259
|
Help Please
I'm wanting to Sum All the values in ColB excluding numbers in ColB when the corresponding Cell in ColA has the value "xyz" in it ... any ideas ? |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
|
=SUMIF(A:A,"<>xyz",B:B)
|
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Mar 2002
Location: Chicago, IL USA
Posts: 2,042
|
Try,
=SUMPRODUCT((ISERROR(SEARCH("xyz",A1:A10,1)))*(B1:B10)) Adjust the range to suit. Bye, Jay EDIT: Yogi's solution is nicer. Disregard this one unless "xyz" can be found within other strings. [ This Message was edited by: Jay Petrulis on 2002-05-24 13:35 ] |
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Apr 2002
Location: Vancouver BC , Canada
Posts: 6,259
|
Thanks alot ... you guys were a great help.
|
|
|
|
|
|
#5 |
|
MrExcel MVP
Join Date: Apr 2002
Location: Vancouver BC , Canada
Posts: 6,259
|
Amaziiiiing , I actually have another situation that I need to exclude a subset string so I've ended up needing both solutons... again many thanks
__________________
<MARQUEE>...........Never be afraid to try something new. Remember, amateurs built the ark, professionals built the Titanic...............The easiest thing to find is fault, don't be easy !.. --Anonymous--...</marquee> |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|