Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 44
Default help with IF and VLOOKUP combined

I want to do the following:

I have data which says

Postcode Equipment 1 Equipment 2
SE David Bob
B Bill James

and I have sales

Invoice Value Postcode Equipment type
1 £10 SE 1
2 £20 SE 2

and I want a formula to return the name of the sales rep depending on
equipment type.

I have entered

=IF(U2,"Acute
Care",(VLOOKUP(V2,Salespersons!A:C,2,FALSE)),VLOOK UP(V2,Salespersons!A:C,3,FALSE))

U2 = Equipment type
V2 = Postcode

This is wrong so can anyone help please?




  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,722
Default help with IF and VLOOKUP combined

As you don't list column references, this is somewhat of a guss, but your
structure will be:

=INDEX(Salespersons!A:C,MATCH(V2,Salespersons!A:A, 0),W2+1)

This assumes that V2 lists Postcode, and W2 is your Equipment Type (entered
as a number), and your Salespersons data is in columns A:C, with Postcode
being in column A.

You didn't say anything about U2 or "Acute Care", but throwing that part of
your formula in:

=IF(U2,"Acute Care",INDEX(Salespersons!A:C,MATCH(V2,Salespersons !A:A,0),W2+1))
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Natalie" wrote:

I want to do the following:

I have data which says

Postcode Equipment 1 Equipment 2
SE David Bob
B Bill James

and I have sales

Invoice Value Postcode Equipment type
1 £10 SE 1
2 £20 SE 2

and I want a formula to return the name of the sales rep depending on
equipment type.

I have entered

=IF(U2,"Acute
Care",(VLOOKUP(V2,Salespersons!A:C,2,FALSE)),VLOOK UP(V2,Salespersons!A:C,3,FALSE))

U2 = Equipment type
V2 = Postcode

This is wrong so can anyone help please?




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,722
Default help with IF and VLOOKUP combined

I see now at bottom of post where your cell references are. Adjusting formula:

=INDEX(Salespersons!A:C,MATCH(V2,Salespersons!A:A, 0),U2+1)
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Natalie" wrote:

I want to do the following:

I have data which says

Postcode Equipment 1 Equipment 2
SE David Bob
B Bill James

and I have sales

Invoice Value Postcode Equipment type
1 £10 SE 1
2 £20 SE 2

and I want a formula to return the name of the sales rep depending on
equipment type.

I have entered

=IF(U2,"Acute
Care",(VLOOKUP(V2,Salespersons!A:C,2,FALSE)),VLOOK UP(V2,Salespersons!A:C,3,FALSE))

U2 = Equipment type
V2 = Postcode

This is wrong so can anyone help please?




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
Vlookup combined with Hlookup Cornelius Excel Worksheet Functions 7 December 19th 09 05:39 AM
VLOOKUP combined with AND Lost in Microbiology Excel Discussion (Misc queries) 4 November 18th 08 06:13 PM
vlookup combined with AND-function martho Excel Worksheet Functions 1 January 20th 06 12:49 PM
vlookup and match combined? ADiscrete1 Excel Worksheet Functions 0 November 16th 05 11:46 PM
Combined VLOOKUP AND BETWEEN FUNCTION Louis Markowski Excel Worksheet Functions 3 October 13th 05 03:54 PM


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