Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default vlookup against one of two options?

Hi,
In Excel 2003 I am trying to return a unique value against 2 possible options.
I have a table of reference;
Col A Col B Col C
W (W) 3
1 (1) 9
1c (1c) 6
1b (1b) 9
1a (1a) 11
2 (2) 15
2c (2c) 13

etc

In the s/sheet used, a value from Col A or Col B will be entered so I want a
formula in the next column to return the relevant value from Col C. (eg, if
1a or (1a) = 11).

Greatful for any advice.
Cheers
snakey


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,276
Default vlookup against one of two options?

Hi,
you enter your references in E1 and F1 and in G1 enter

=sumproduct((E1=$A$1:$A$1000),(F1=$B$1:$B$1000),$C $1:$C$1000)

"snakey" wrote:

Hi,
In Excel 2003 I am trying to return a unique value against 2 possible options.
I have a table of reference;
Col A Col B Col C
W (W) 3
1 (1) 9
1c (1c) 6
1b (1b) 9
1a (1a) 11
2 (2) 15
2c (2c) 13

etc

In the s/sheet used, a value from Col A or Col B will be entered so I want a
formula in the next column to return the relevant value from Col C. (eg, if
1a or (1a) = 11).

Greatful for any advice.
Cheers
snakey


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default vlookup against one of two options?

Perhaps instead of
=sumproduct((E1=$A$1:$A$1000),(F1=$B$1:$B$1000),$C $1:$C$1000)
you may have intended either
=sumproduct(--(E1=$A$1:$A$1000),--(F1=$B$1:$B$1000),$C$1:$C$1000)
or
=sumproduct((E1=$A$1:$A$1000)*(F1=$B$1:$B$1000)*$C $1:$C$1000) ?
--
David Biddulph

"Eduardo" wrote in message
...
Hi,
you enter your references in E1 and F1 and in G1 enter

=sumproduct((E1=$A$1:$A$1000),(F1=$B$1:$B$1000),$C $1:$C$1000)

"snakey" wrote:

Hi,
In Excel 2003 I am trying to return a unique value against 2 possible
options.
I have a table of reference;
Col A Col B Col C
W (W) 3
1 (1) 9
1c (1c) 6
1b (1b) 9
1a (1a) 11
2 (2) 15
2c (2c) 13

etc

In the s/sheet used, a value from Col A or Col B will be entered so I
want a
formula in the next column to return the relevant value from Col C. (eg,
if
1a or (1a) = 11).

Greatful for any advice.
Cheers
snakey




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default vlookup against one of two options?

Try this:

A10 = criteria cell

Note that the criteria cell must be formatted as TEXT. If you try to enter
something like (2) Excel, thinking it's helping you, will convert (2) to -2.

=SUMIF(A1:A7,SUBSTITUTE(SUBSTITUTE(A10,"(",""),")" ,""),C1:C7)

--
Biff
Microsoft Excel MVP


"snakey" wrote in message
...
Hi,
In Excel 2003 I am trying to return a unique value against 2 possible
options.
I have a table of reference;
Col A Col B Col C
W (W) 3
1 (1) 9
1c (1c) 6
1b (1b) 9
1a (1a) 11
2 (2) 15
2c (2c) 13

etc

In the s/sheet used, a value from Col A or Col B will be entered so I want
a
formula in the next column to return the relevant value from Col C. (eg,
if
1a or (1a) = 11).

Greatful for any advice.
Cheers
snakey




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
tools options view window options Joe[_14_] Excel Discussion (Misc queries) 1 November 11th 09 04:08 PM
Options for DIV#/0 jday Excel Worksheet Functions 6 March 31st 09 05:13 PM
More than 2 IF options Kim L Excel Worksheet Functions 4 January 4th 08 08:13 PM
how do I add more toolbar options to my right click options Rosie Excel Discussion (Misc queries) 1 August 11th 06 04:52 PM
what are my options? tysonstone Excel Discussion (Misc queries) 3 January 23rd 05 12:13 AM


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