From: Vijay Dhawan Vijay on
Hi,

How can I sum the numbers in a column in Excel where some numbers carry a
"<" sign in front of them (such as <1) and I want to include numbers such
"<1" in calculation as "1".

For Example if numbers are entered as follows

0.5
<1
0.5

I would like to value to be returned as "2" when I apply "sum" function.

Thanks

From: "David Biddulph" groups [at] on
=SUM(IF(LEFT(A2:A4)="<",--RIGHT(A2:A4,LEN(A2:A4)-1),A2:A4)) as an array
formula (Control Shift Enter).
--
David Biddulph


"Vijay Dhawan" <Vijay Dhawan(a)discussions.microsoft.com> wrote in message
news:C04C3714-9E12-460C-B81D-C40803BF6080(a)microsoft.com...
> Hi,
>
> How can I sum the numbers in a column in Excel where some numbers carry a
> "<" sign in front of them (such as <1) and I want to include numbers such
> "<1" in calculation as "1".
>
> For Example if numbers are entered as follows
>
> 0.5
> <1
> 0.5
>
> I would like to value to be returned as "2" when I apply "sum" function.
>
> Thanks
>

From: T. Valko on
Try this array formula** :

=SUM(IF(LEFT(A2:A10)="<",--MID(A2:A10,2,10),A2:A10))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"Vijay Dhawan" <Vijay Dhawan(a)discussions.microsoft.com> wrote in message
news:C04C3714-9E12-460C-B81D-C40803BF6080(a)microsoft.com...
> Hi,
>
> How can I sum the numbers in a column in Excel where some numbers carry a
> "<" sign in front of them (such as <1) and I want to include numbers such
> "<1" in calculation as "1".
>
> For Example if numbers are entered as follows
>
> 0.5
> <1
> 0.5
>
> I would like to value to be returned as "2" when I apply "sum" function.
>
> Thanks
>


From: Sheeloo on
Try the array formula (press CTRL-SHIFT-ENTER after typing/pasting the formula)
=SUM(IF(LEFT(A1:A3,1)="<",MID(A1:A3,2,255)*1,A1:A3))

Adjust the range A1:A3 to the data you have. I have assumed that you have to
check for < sign only.

"Vijay Dhawan" wrote:

> Hi,
>
> How can I sum the numbers in a column in Excel where some numbers carry a
> "<" sign in front of them (such as <1) and I want to include numbers such
> "<1" in calculation as "1".
>
> For Example if numbers are entered as follows
>
> 0.5
> <1
> 0.5
>
> I would like to value to be returned as "2" when I apply "sum" function.
>
> Thanks
>
From: Teethless mama on
=SUMPRODUCT(--(SUBSTITUTE(A1:A3,"<1",1)))


"Vijay Dhawan" wrote:

> Hi,
>
> How can I sum the numbers in a column in Excel where some numbers carry a
> "<" sign in front of them (such as <1) and I want to include numbers such
> "<1" in calculation as "1".
>
> For Example if numbers are entered as follows
>
> 0.5
> <1
> 0.5
>
> I would like to value to be returned as "2" when I apply "sum" function.
>
> Thanks
>
 |  Next  |  Last
Pages: 1 2
Prev: Excel Shared Over Internet
Next: Vlookup with sums