LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default If functions and Vlookups combined

Hi All,

This might appear to be a long winded question and probably has quite a
simple answer.

Im trying to create a template in excel for the creation of BOMs (bills of
materials). Its essentially a list of components partnumbers which belong
are built under a top level SKU number. Beside each BOM I have tried to build
a number of formulae which will do a sanity check on the contents to ensure
they belong to the partnumber which they are being matched to. This part has
been simple, in my work book there are 3 sheets, one with the BOMs on it,
another with an extract from of component attributes and another with
toplevel attributes.

The functions which am using do a Vlookup of the component partnumber in
its extract sheet, check a particular column, then vlookup the top level
partnumber in its extract sheet and check the same column. And IF the 2
values are equal the formula returns a null but if not, returns text €“ €śCheck
Attributes€ť.

However, some components are common to every BOM and as such cannot have
attributes which are connected to each toplevel partnumber. My idea was to
create a table of all generic components in a separate (hidden) worksheet,
and for the function check this list first before performing any of the above
checks. That way the formula would first check if the component was generic,
and if not check if its attributes were suitable for the top level SKU.

Below is the formula Ive created do date, it checks if the component is
generic and if it is it returns €śGeneric€ť (as I wanted) however, if the
component is not generic I receive a €ś#N/A€ť error.

Any input you can provide would be greatly appreciated and apologies again
for the verbose.



=IF(VLOOKUP(COMPONENT PARTUMBER,GENERIC COMPONENT LIST,1,FALSE)=COMPONENT
PARTNUMBER,"Generic",IF((VLOOKUP(COMPONENT PARTNUMBER,COMPONENT EXTRACT
SHEET,3,FALSE))=VLOOKUP(TOP LEVEL SKU NUMBER,TOP LEVEL SKU EXTRACT
,3,FALSE),€ť€ť,€ťCheck Attributes€ť))

 
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
IF STATEMENTS COMBINED WITH VLOOKUPS peggyL Excel Worksheet Functions 2 July 1st 08 09:10 PM
Count If combined functions Betty H Excel Worksheet Functions 3 March 25th 08 06:59 PM
IF and lookup functions combined? RSS Excel Worksheet Functions 4 January 18th 07 01:04 AM
IF and lookup functions combined? RSS Excel Worksheet Functions 1 January 17th 07 02:00 PM
combined two countif functions Geoff Excel Discussion (Misc queries) 2 August 11th 05 11:51 PM


All times are GMT +1. The time now is 02:21 AM.

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"