Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default formula for multiple variables.

I am trying to come up with a formula that incorporates muliply variables. I
know that formula for 2 variable that I have used is:

=if(a7=304,vlookup(a9,screens!$a$27:$h$37,3,false) ,vlookup(a9,screens!$a$27:$h$27,4,false))

I want the A9 to be constant as that is the cell that tells the formula the
column to look up. The second variable is material and I have 8 options and
eight columns set up is there a way that my senerior it has to equal ( eg
size 60 and material 304) and I tell it the cell to look up based on those
two numbers/data being met??
--
Donna
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default formula for multiple variables.

Changing up the reference so that A9 is a constant just involves adding the $
signs to make the reference absolute

=if(a7=304,vlookup($a$9,screens!$a$27:$h$37,3,fals e),vlookup($a$9,screens!$a$27:$h$27,4,false))

Try this formula for getting the offset to work out

=vlookup($a$9,screens!$a$27:$h$37,match($A$7,scree ns!$B$26:$h$26, 0) + 1
,false)

The match function returns a number correspoinding to where in the list the
match was found.

--
HTH...

Jim Thomlinson


"Tacklemom" wrote:

I am trying to come up with a formula that incorporates muliply variables. I
know that formula for 2 variable that I have used is:

=if(a7=304,vlookup(a9,screens!$a$27:$h$37,3,false) ,vlookup(a9,screens!$a$27:$h$27,4,false))

I want the A9 to be constant as that is the cell that tells the formula the
column to look up. The second variable is material and I have 8 options and
eight columns set up is there a way that my senerior it has to equal ( eg
size 60 and material 304) and I tell it the cell to look up based on those
two numbers/data being met??
--
Donna

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default formula for multiple variables.

See if this gives you an idea...

When looking up 2 variables a typical table would have one variable along a
vertical axis and the other variable along a horizontal axis. Like this:

...........A..........B..........C
1....................X..........Y
2........1..........5...........3
3........2..........4...........7
4........3..........6...........2

X and Y are one variable. Let's assume these are "sizes". 1,2,3 are the
other variable. Let's assume these are "products".

Assume you want to lookup the price for product 2 for size Y.

E1 = 2 (product 2)
F1 = Y (size Y)

=VLOOKUP(E1,A1:C4,MATCH(F1,A1:C1,0),0)

Result = 7

--
Biff
Microsoft Excel MVP


"Tacklemom" wrote in message
...
I am trying to come up with a formula that incorporates muliply variables.
I
know that formula for 2 variable that I have used is:

=if(a7=304,vlookup(a9,screens!$a$27:$h$37,3,false) ,vlookup(a9,screens!$a$27:$h$27,4,false))

I want the A9 to be constant as that is the cell that tells the formula
the
column to look up. The second variable is material and I have 8 options
and
eight columns set up is there a way that my senerior it has to equal ( eg
size 60 and material 304) and I tell it the cell to look up based on those
two numbers/data being met??
--
Donna



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
Formula for Multiple Variables. Sri Harsha[_2_] Excel Worksheet Functions 1 April 23rd 09 05:28 PM
Formula with multiple variables Sam Excel Worksheet Functions 8 August 1st 08 09:58 AM
If,Then for multiple variables. Eden397 Excel Discussion (Misc queries) 1 June 10th 08 09:46 PM
Multiple variables-SOS Ang Excel Worksheet Functions 3 April 27th 07 08:24 PM
Formula for counting multiple variables in a spreadsheet smorgan Excel Worksheet Functions 6 February 25th 06 05:10 AM


All times are GMT +1. The time now is 03:41 PM.

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

About Us

"It's about Microsoft Excel"