#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 21
Default Sumif/vlookup/left

I have the following spreadsheet:

Amount Work Order
25.65 AA-07020.0600
500.00 S-070200600.002
(904.81) AA-06020.0300.007
1000 08.5552.0000
585 07.526.589

I am trying to find using how to sum only the work orders that begin with an
AA and S.

Thanks,
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default Sumif/vlookup/left

One way

=SUM(SUMIF(B2:B6,{"AA-*","S-*"},A2:A6))

this assume there is a dash after the A and the S, if not just remove it

=SUM(SUMIF(B2:B6,{"AA*","S*"},A2:A6))


--
Regards,

Peo Sjoblom



"Gingit" wrote in message
...
I have the following spreadsheet:

Amount Work Order
25.65 AA-07020.0600
500.00 S-070200600.002
(904.81) AA-06020.0300.007
1000 08.5552.0000
585 07.526.589

I am trying to find using how to sum only the work orders that begin with
an
AA and S.

Thanks,



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default Sumif/vlookup/left

Try this:

=SUMPRODUCT(--((LEFT($B$1:$B$5,2)="AA")+(LEFT($B$1:$B$5,1)="S")) ,$A$1:$A$5)

HTH,
Elkar

"Gingit" wrote:

I have the following spreadsheet:

Amount Work Order
25.65 AA-07020.0600
500.00 S-070200600.002
(904.81) AA-06020.0300.007
1000 08.5552.0000
585 07.526.589

I am trying to find using how to sum only the work orders that begin with an
AA and S.

Thanks,

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default Sumif/vlookup/left

Try this:

=SUMPRODUCT((LEFT(B2:B6,2)={"AA","S-"})*(A2:A6))


"Gingit" wrote:

I have the following spreadsheet:

Amount Work Order
25.65 AA-07020.0600
500.00 S-070200600.002
(904.81) AA-06020.0300.007
1000 08.5552.0000
585 07.526.589

I am trying to find using how to sum only the work orders that begin with an
AA and S.

Thanks,

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 21
Default Sumif/vlookup/left

Thanks you guys are awesome.

Gingit

"Teethless mama" wrote:

Try this:

=SUMPRODUCT((LEFT(B2:B6,2)={"AA","S-"})*(A2:A6))


"Gingit" wrote:

I have the following spreadsheet:

Amount Work Order
25.65 AA-07020.0600
500.00 S-070200600.002
(904.81) AA-06020.0300.007
1000 08.5552.0000
585 07.526.589

I am trying to find using how to sum only the work orders that begin with an
AA and S.

Thanks,

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
SUMIF and LEFT and Named Ranges DaveMoore Excel Worksheet Functions 3 October 5th 06 12:10 PM
SUMIF and LEFT and Named Ranges DaveMoore Excel Worksheet Functions 1 October 5th 06 11:03 AM
SUMIF and LEFT and Named Ranges DaveMoore Excel Worksheet Functions 0 October 5th 06 09:39 AM
Vlookup to the left comparini3000 Excel Worksheet Functions 4 June 23rd 06 09:22 PM
sumif function when left 4 texts are matching Vikram Dhemare Excel Discussion (Misc queries) 1 April 25th 06 08:27 AM


All times are GMT +1. The time now is 09:23 PM.

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"