Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I am trying to find a solution to sum values in a column range when the value
derived by using mid function in another column range matches with the value stores in a cell. To illustrate A B 1 A1 10 2 A2 12 3 B1 20 4 B2 21 5 6 A 22 7 B 41 I want to total all values of range B1:B4 when value in range A1:A4 (derived by using MID function) mataches with value in cell A6 or A7 (the first letter of each alphanumeric value). If this is not the correct way to arrive at the result, suggestions on alternative way will be appreciated. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I'm kind of confused, but if you want to sum the values in B1:B4 where the first
letter in A1:A4 matches what's in A6, you could use: =sumif(a1:a4,a6&"*",b1:b4) Vrajesh Saraiya wrote: I am trying to find a solution to sum values in a column range when the value derived by using mid function in another column range matches with the value stores in a cell. To illustrate A B 1 A1 10 2 A2 12 3 B1 20 4 B2 21 5 6 A 22 7 B 41 I want to total all values of range B1:B4 when value in range A1:A4 (derived by using MID function) mataches with value in cell A6 or A7 (the first letter of each alphanumeric value). If this is not the correct way to arrive at the result, suggestions on alternative way will be appreciated. -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=SUMPRODUCT(--(LEFT(A1:A4,1)="A"),B1:B4)
"Vrajesh Saraiya" wrote: I am trying to find a solution to sum values in a column range when the value derived by using mid function in another column range matches with the value stores in a cell. To illustrate A B 1 A1 10 2 A2 12 3 B1 20 4 B2 21 5 6 A 22 7 B 41 I want to total all values of range B1:B4 when value in range A1:A4 (derived by using MID function) mataches with value in cell A6 or A7 (the first letter of each alphanumeric value). If this is not the correct way to arrive at the result, suggestions on alternative way will be appreciated. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to nest a left function within a sumif function? | Excel Worksheet Functions | |||
Using the TODAY() function in a SUMIF function | Excel Worksheet Functions | |||
SUMIF Function Inside SUMPRODUCT Function | Excel Worksheet Functions | |||
Can SUMIF function include AND function | Excel Worksheet Functions | |||
SUMIF - Range name to used for the "sum_range" portion of a SUMIF function | Excel Worksheet Functions |