+ Reply to Thread
Results 1 to 9 of 9

Excel 2007 : IF, AND or VLOOKUP formatting or a mixture of both....

  1. #1
    Registered User
    Join Date
    02-01-2011
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    IF, AND or VLOOKUP formatting or a mixture of both....

    I am trying to improve efficiency by utilizing Excel functions.

    We stock take a large number of products on a monthly basis and their prices are fluctuating all the time. The items we stock take are denoted by specification and size. There are multiples sizes associated to a single specification.

    I want to be able to input a input a specification and size of a product in 1 sheet and then allow the spreadsheet to lookup a cost that is part of a 'Master cost' list in another sheet.

    I’m unsure if I need to use IF, AND or VLOOKUP formatting or a mixture of both....

    Any help would be appreciated.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: IF, AND or VLOOKUP formatting or a mixture of both....

    If the 'Master Cost' list sorted in any way ?

    Where is the information located ?

    Is the "specification" repeated for each "size" entry ?

    It would be a good idea to post a small sample file that reflects what you're working with - obviously dummy anything that would be confidential.

  3. #3
    Registered User
    Join Date
    02-01-2011
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: IF, AND or VLOOKUP formatting or a mixture of both....

    Right the Master Cost list is sorted as jpg attached named master cost

    In sheet 1 of a wooksheet there is the inputted information and sheet 2 there is the master cost data. Sheet 1 is layed out as per attached 'information.jpg

    Obviously the cost column is were i want the cost to be automatically inputted from the master cost sheet.

    I hope the above makes sense.

    Gareth
    Attached Images Attached Images

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: IF, AND or VLOOKUP formatting or a mixture of both....

    Images are of limited use I'm afraid (unless you want help with an image) - people generally don't have the time to recreate your data.

    Key question: Regards the 'Master Cost' sheet are the sizes listed identical for each Spec. ?

  5. #5
    Registered User
    Join Date
    02-01-2011
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: IF, AND or VLOOKUP formatting or a mixture of both....

    Key question: Regards the 'Master Cost' sheet are the sizes listed identical for each Spec. ? Yes sizes are identical but costs differ!

    See attached worksheet
    Attached Files Attached Files

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: IF, AND or VLOOKUP formatting or a mixture of both....

    Given sample and the above:

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    02-01-2011
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: IF, AND or VLOOKUP formatting or a mixture of both....

    Right I did have the code working until I entered my correct Specification, sizes and costs in sheet2 - now all i get is a return figure of 0?

    Any suggestions

    I have attached my worksheet....
    Attached Files Attached Files

  8. #8
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: IF, AND or VLOOKUP formatting or a mixture of both....

    You've changed the order of your Sizes so you need to adjust the 2nd MATCH match_type from default of 1 (omitted previously) to -1

    Please Login or Register  to view this content.
    Given you're now repeating the Specification for each Size you might also consider a SUMIFS

    Please Login or Register  to view this content.
    the latter will return 0 where the Spec & Size combination does not exist whereas the former will return an error (NA) - you can handle the error with an IFERROR given use of XL2007+

  9. #9
    Registered User
    Join Date
    02-01-2011
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: IF, AND or VLOOKUP formatting or a mixture of both....

    Thanks for the help - all is working fine!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1