Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default vlookup and multiple criteria

I have an spreadsheet with columns like:

col A col D col E colF
B230 8 1 0
F001 -5 0 10
F002 3 20 0
F010 5 -29 3
F014 40 3 7
F020 -25 -6 -100
F113 0 0 0
H002 34 -50 23
in ascendent order.
I want to be able to Sum col D to colF if colA is between F001 and F020
except F010.
I am just starting with this and I really don't know how to mix and match
all the formulas. any help will be much appreaciated!!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default vlookup and multiple criteria

=SUMPRODUCT((ISNUMBER(MATCH(A1:A8,{"F001","F020"}, )))*D1:F8)


"aprendiz" wrote:

I have an spreadsheet with columns like:

col A col D col E colF
B230 8 1 0
F001 -5 0 10
F002 3 20 0
F010 5 -29 3
F014 40 3 7
F020 -25 -6 -100
F113 0 0 0
H002 34 -50 23
in ascendent order.
I want to be able to Sum col D to colF if colA is between F001 and F020
except F010.
I am just starting with this and I really don't know how to mix and match
all the formulas. any help will be much appreaciated!!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default vlookup and multiple criteria

Try this one:

=SUMPRODUCT((LEFT(A1:A8)="F")*(RIGHT(A1:A8,3)+0=1 )*(RIGHT(A1:A8,3)+0<=20)*(RIGHT(A1:A8,3)+0<10)*D1 :F8)


"Teethless mama" wrote:

=SUMPRODUCT((ISNUMBER(MATCH(A1:A8,{"F001","F020"}, )))*D1:F8)


"aprendiz" wrote:

I have an spreadsheet with columns like:

col A col D col E colF
B230 8 1 0
F001 -5 0 10
F002 3 20 0
F010 5 -29 3
F014 40 3 7
F020 -25 -6 -100
F113 0 0 0
H002 34 -50 23
in ascendent order.
I want to be able to Sum col D to colF if colA is between F001 and F020
except F010.
I am just starting with this and I really don't know how to mix and match
all the formulas. any help will be much appreaciated!!

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default vlookup and multiple criteria

Looks like you missed a couple of things:


colA is **between** F001 and F020

and

**except** F010


Teethless mama wrote:
=SUMPRODUCT((ISNUMBER(MATCH(A1:A8,{"F001","F020"}, )))*D1:F8)


"aprendiz" wrote:

I have an spreadsheet with columns like:

col A col D col E colF
B230 8 1 0
F001 -5 0 10
F002 3 20 0
F010 5 -29 3
F014 40 3 7
F020 -25 -6 -100
F113 0 0 0
H002 34 -50 23
in ascendent order.
I want to be able to Sum col D to colF if colA is between F001 and F020
except F010.
I am just starting with this and I really don't know how to mix and match
all the formulas. any help will be much appreaciated!!

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default vlookup and multiple criteria

And I see you realized that as I was typing my previous post. Your new solution
is very similar to the one I posted to one of the OP's other identical requests.

Glenn wrote:
Looks like you missed a couple of things:


colA is **between** F001 and F020

and

**except** F010


Teethless mama wrote:
=SUMPRODUCT((ISNUMBER(MATCH(A1:A8,{"F001","F020"}, )))*D1:F8)


"aprendiz" wrote:

I have an spreadsheet with columns like:

col A col D col E colF
B230 8 1 0
F001 -5 0 10
F002 3 20 0
F010 5 -29 3
F014 40 3 7
F020 -25 -6 -100
F113 0 0 0
H002 34 -50 23
in ascendent order.
I want to be able to Sum col D to colF if colA is between F001 and
F020 except F010.
I am just starting with this and I really don't know how to mix and
match all the formulas. any help will be much appreaciated!!



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default vlookup and multiple criteria

Try this...

Table in the range A2:D9

Lookup values:

F2 = F001
G2 = F020
H2 = F010 (values to exclude)

=SUM(INDEX(B2:D9,MATCH(F2,A2:A9,0),0):INDEX(B2:D9, MATCH(G2,A2:A9,0),0))-SUMPRODUCT((A2:A9=H2)*B2:D9)

--
Biff
Microsoft Excel MVP


"aprendiz" wrote in message
...
I have an spreadsheet with columns like:

col A col D col E colF
B230 8 1 0
F001 -5 0 10
F002 3 20 0
F010 5 -29 3
F014 40 3 7
F020 -25 -6 -100
F113 0 0 0
H002 34 -50 23
in ascendent order.
I want to be able to Sum col D to colF if colA is between F001 and F020
except F010.
I am just starting with this and I really don't know how to mix and match
all the formulas. any help will be much appreaciated!!



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
help with vlookup with multiple criteria jcon2112 Excel Discussion (Misc queries) 4 September 29th 09 07:51 PM
Vlookup multiple criteria se7098 Excel Worksheet Functions 6 August 10th 09 06:53 PM
Vlookup multiple criteria multiple occurrences sum values se7098 Excel Worksheet Functions 0 March 26th 09 07:31 PM
Vlookup with Multiple criteria and multiple sheets Cinny Excel Worksheet Functions 4 June 21st 07 01:47 AM
Vlookup for multiple criteria, multiple worksheets jtoy Excel Worksheet Functions 4 January 25th 07 09:26 PM


All times are GMT +1. The time now is 06:31 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"