Excel Hlookup Function -


use hlookup function in cell h9 calculate product pricing based on color , quantity of billboards ordered. product pricing can referenced on "product pricing" lookup table (range o9:q18). sure use appropriate relative , absolute cell references

here excel hyperlink, click on tabs "lookup functions", find i'm struggling under cell h9 price.

https://www.dropbox.com/s/z7bd7lcs4nzbfwe/logicandreference914.xlsx?dl=0

what have wrong:

=hlookup(d9,$o$9:$q$18,2,true)

d9 lookup value refers #shipped

i have no problem vlookup i'm struggling put in lookup value , row index number in right spot hlookup.

ok, here formula looking put h9.

=hlookup(c9, $p$9:$q$18, match(d9, $o$9:$o$18), false) 

the hlookup function provides column (p ro q) retrieve data looking exact match of value in c9 against p9:q9 (the first row in $p$9:$q$18).

the match function provides row retrieve looking c9 in o9:o18. approximate match values in o9:o18 need sorted in ascending order are. want approximate match because if have more 10 (the max in table), want return value 10 , not error.

so row , column, returning correct value o9:q18. fill down necessary.

you have problem # shipped being 1. either can cover quantities greater 10 or less 2 not both. better add entry quantity of 1.

    hlookup match

you want familiarize iferror function provide error control.

with lookup table in o9:o18, # shipped starting @ 2, shortcut to,

=hlookup(c9, $p$9:$q$18, d9, false) 

but not cover quantities greater 10 or quantity of 1 bit of step backwards.


Comments

Popular posts from this blog

Java 8 + Maven Javadoc plugin: Error fetching URL -

css - SVG using textPath a symbol not rendering in Firefox -

c - gcc compile error: unknown type name 'File' -