![]() |
![]() |
|
|||||||
| 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 |
|
Board Regular
Join Date: Feb 2002
Location: San Antonio, TX
Posts: 186
|
I need a sumif formula that will calculate everything that starts with a certain 3 numbers.......
If I have a range of A1:B:200. I want it to look for everything in Column A that starts with 110 and sum column B. I was trying something like... =sumif(left(A1:B200,3),110,B1:B200)......I know how to write this formula if the search was for 110, but with something starting with 110, I'm Stumped!! PS: I am not able to sort the data feild at all. Any help would be greatly appricated!!!!
__________________
Russell |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,314
|
Quote:
Try: =SUMPRODUCT((LEFT(A1:A200,3)+0=110)*(B1:B200)) As Chris has pointed out, the ranges must be equal. Aladin Special Note for Jack: LEFT makes the numbers all 3-digit text values, +0 makes them 3-digit numbers which then can be compared with the number 110. Voila an example use of +0. [ This Message was edited by: Aladin Akyurek on 2002-02-27 15:08 ] |
|
|
|
|
|
|
#3 | ||
|
MrExcel MVP
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
|
Quote:
since I used your sumproduct revelation, I've always made sure they are the same sizes, is that only for array formulae ? thanks Chris |
||
|
|
|
|
|
#4 | |||
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,314
|
Quote:
=SUMPRODUCT((LEFT(A1:A200,3)+0=110)*(B1:B200)) Thanks. Aladin I'm gonna edit my reply, so be warned |
|||
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|