LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default sumif statment including left function

=SUM(IF(LEFT(A2:A6)="A",B2:B6))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

although Carlo's formula, whilst a bit more unwieldy, achieves the same
results if you adjust the ranges to your data, and store A in A14. Maybe it
was the ; delimiters

=SUM(IF(LEFT($A$2:$A$10,1)=A14,1,0)*$B$2:$B$10)

again array-entered.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Rashid" wrote in message
oups.com...
Hi Carlo,
it doesnt work, Let me explain again... the first list has $$ value
assigned to warehouse #. (which is alphanumaric). What I am looking for
is the sum function to first convert the WH number to just an alphabet,
then sumIF based on alphabet reference to the the second list .


I have put the FINAL result that I am looking for in the second list...

WH Value Fac Value
A4 1000 A 1500
A4 500 B 700
B3 700 C 300
C2 200
C2 100

Thanks,

Rashid


Carlo wrote:
Hi Rashid

try following:
=SUM(IF(LEFT($A$3:$A$10;1)=A14;1;0)*$C$3:$C$10)

this is an array formula, do not accept this with enter but with
Ctrl + Shift + Enter, it should have {} around the formula afterwards.

hth

Carlo

"Rashid" wrote:

Hi to All.

How would i write a sumif statment using the first character (left
function) of WH range to pull the data into the Final Values

original LIST
WH VALUE
A4 15,000
A6 6,500
B4 -313,079
BZ 20,000
C4 -335,343
D4 -393,476
H3 500,000
H4 3,200,000

FINAL VALUES - sumif
WH VALUE
A 21,500
B -293,097
C -335,343
D -393,476
H 3,700,000


Thanks,

Rashid





 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
If statment help Joe Wildman[_2_] Excel Worksheet Functions 3 February 16th 09 07:16 PM
If statment Jason Excel Discussion (Misc queries) 3 January 3rd 08 11:39 PM
if statment Dreamstar_1961 Excel Worksheet Functions 5 April 17th 07 01:30 PM
If statment if its possible. atb Excel Discussion (Misc queries) 2 October 17th 06 05:50 PM
SumIF Statment [email protected] Excel Discussion (Misc queries) 1 September 14th 06 06:29 AM


All times are GMT +1. The time now is 06:02 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"