A Microsoft Excel forum. ExcelBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » ExcelBanter forum » Excel Newsgroups » Excel Discussion (Misc queries)
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

vlookup for max value or any value>0



 
 
Thread Tools Display Modes
  #1  
Old May 13th 10, 09:05 PM posted to microsoft.public.excel.misc
JBEmpire
external usenet poster
 
Posts: 1
Default vlookup for max value or any value>0

I have one sheet with product id, length, material, index and unit/length
price for multiple stores for a given market. I am trying to generate a new
sheet with proposed product id, new length and total cost based on the unit
length and product id of the current sheet. Each product could have multiple
unit/length prices at each store or none at all. My main objective is to get
a none zero cost for the stores that currently have at least one unit price.
Can I use vlookup to search the index and return with the first or max none
zero corresponding unit cost for store 1,2,3,.....? My current formula
returns with the first match whether it is a price or a blank. So for
tube1steel store 1, my value is blank and not 1.50 as in store 2.

Prod lngth Mat Index Store Store Store
1 2 3

tube1 1.0 steel tube1steel 1.50
tube1 1.8 steel tube1steel 1.50 1.50
tube2 1.8 steel tube2steel 1.25 1.30
tube1 2.4 steel tube1steel 1.45 1.50 1.50
tube2 2.4 steel tube2steel 1.35

Actual formula below. The * represents where the item was present, but did
not have pricing. A blank is present when the item was not present.

=IF(VLOOKUP($J5,'All Dowels price per
length'!$G$2:$AS$94,3,FALSE)="*","*",IF(VLOOKUP($J 5,'All Dowels price per
length'!$G$2:$AS$94,3,FALSE)="","",VLOOKUP($J5,'Al l Dowels price per
length'!$G$2:$AS$94,3,FALSE)*$D5))

Any help would be appreciated.
Ads
  #2  
Old May 14th 10, 02:43 PM posted to microsoft.public.excel.misc
Brad
external usenet poster
 
Posts: 846
Default vlookup for max value or any value>0

I would have a helper column after Store 3 with the formula below...

=IF(COUNT(E7:G7),INDEX(E7:G7,MATCH(TRUE,INDEX(E7:G 7<>"",0),0)),"")

(this assumes that the first row of row of information is in column 7
(and store 1 is in column E, store 2 is in column F, store3 is in column G

--
Wag more, bark less


"JBEmpire" wrote:

> I have one sheet with product id, length, material, index and unit/length
> price for multiple stores for a given market. I am trying to generate a new
> sheet with proposed product id, new length and total cost based on the unit
> length and product id of the current sheet. Each product could have multiple
> unit/length prices at each store or none at all. My main objective is to get
> a none zero cost for the stores that currently have at least one unit price.
> Can I use vlookup to search the index and return with the first or max none
> zero corresponding unit cost for store 1,2,3,.....? My current formula
> returns with the first match whether it is a price or a blank. So for
> tube1steel store 1, my value is blank and not 1.50 as in store 2.
>
> Prod lngth Mat Index Store Store Store
> 1 2 3
>
> tube1 1.0 steel tube1steel 1.50
> tube1 1.8 steel tube1steel 1.50 1.50
> tube2 1.8 steel tube2steel 1.25 1.30
> tube1 2.4 steel tube1steel 1.45 1.50 1.50
> tube2 2.4 steel tube2steel 1.35
>
> Actual formula below. The * represents where the item was present, but did
> not have pricing. A blank is present when the item was not present.
>
> =IF(VLOOKUP($J5,'All Dowels price per
> length'!$G$2:$AS$94,3,FALSE)="*","*",IF(VLOOKUP($J 5,'All Dowels price per
> length'!$G$2:$AS$94,3,FALSE)="","",VLOOKUP($J5,'Al l Dowels price per
> length'!$G$2:$AS$94,3,FALSE)*$D5))
>
> Any help would be appreciated.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
If (Vlookup >0) working, but what if Vlookup cell does not exist Steve Excel Worksheet Functions 18 November 18th 09 08:33 PM
VLookUp - Does the VLookUp return the exact information? Cpviv Excel Worksheet Functions 2 October 28th 08 10:57 AM
Vlookup in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP buffgirl71 Excel Discussion (Misc queries) 12 November 15th 06 12:36 AM
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) MikeR-Oz New Users to Excel 1 March 22nd 06 10:01 AM


All times are GMT +1. The time now is 01:48 PM.


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