Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Andrew L via OfficeKB.com
 
Posts: n/a
Default Array Formula - using LEFT("text",4) in formula


I have the array formula {=SUM(IF((C2:C1440="ALL")*(A2:A1440="R05"),M2:M144 0,
0))}

It would work fine, except that the portion "R05" is really just a portion of
the field value. The field will really contain values like, R05222105,
R0522106, R0342100, etc. I only want to SUM values if the LEFT three
characters are "R05".

I've tried {=SUM(IF((C2:C1440="ALL")*LEFT(A2:A1440="R05"),3), M2:M1440,0))}
but this doesn't work. Is what I'm trying to do possible? If so, what is
the syntax?

Thanks in advance,
Andrew


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200508/1
  #2   Report Post  
Domenic
 
Posts: n/a
Default

Try...

=SUM(IF((C2:C1440="ALL")*(LEFT(A2:A1440,3)="R05"), M2:M1440))

....confirmed with CONTROL+SHIFT+ENTER.

Hope this helps!

In article ,
"Andrew L via OfficeKB.com" wrote:

I have the array formula {=SUM(IF((C2:C1440="ALL")*(A2:A1440="R05"),M2:M144 0,
0))}

It would work fine, except that the portion "R05" is really just a portion of
the field value. The field will really contain values like, R05222105,
R0522106, R0342100, etc. I only want to SUM values if the LEFT three
characters are "R05".

I've tried {=SUM(IF((C2:C1440="ALL")*LEFT(A2:A1440="R05"),3), M2:M1440,0))}
but this doesn't work. Is what I'm trying to do possible? If so, what is
the syntax?

Thanks in advance,
Andrew

  #3   Report Post  
Andrew L via OfficeKB.com
 
Posts: n/a
Default


It works like a charm. Thank you.


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200508/1
Reply
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
problem with Array Formula OrdOff Excel Worksheet Functions 2 June 30th 05 04:57 PM
How can you use count with an array formula similar to using sum PhilH Excel Worksheet Functions 3 June 27th 05 08:00 AM
Trouble shooting#NA error in Array formula RonR Excel Discussion (Misc queries) 2 June 14th 05 09:58 PM
What instead of an array formula part 2 Reg Besseling Excel Discussion (Misc queries) 2 December 10th 04 07:35 AM
What instead of an array formula? Reg Besseling Excel Discussion (Misc queries) 3 December 6th 04 01:55 PM


All times are GMT +1. The time now is 03:05 AM.

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

About Us

"It's about Microsoft Excel"