+ Reply to Thread
Results 1 to 14 of 14

General VLOOKUP setup on my datasheet enquiry

  1. #1
    Registered User
    Join Date
    03-07-2014
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    38

    General VLOOKUP setup on my datasheet enquiry

    Hi,

    I was just wondering if someone could advise me please how I can set up VLOOKUP for my small data in attached sheet.

    Many thanks

    gtz101
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: General VLOOKUP setup on my datasheet enquiry

    b10 =
    Please Login or Register  to view this content.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    03-07-2014
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: General VLOOKUP setup on my datasheet enquiry

    Hi, its shows as NA# in the weight section.

    Is it possible to add formula to my sheet so I can see what i could be doing doing and cross reference please?

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: General VLOOKUP setup on my datasheet enquiry

    what relationship does the value in B10 have to the weights? A slight difference on what oeldere gave you is =vlookup(b8,c6:e6,3,False) But it will not work unless you change the values each time in cells C6 and E6. You might need to be more clear about what you want if these answers don't get you what you want.

    EDIT: I see you posted while I was typing. Still not clear though, if you want for example to have a set of values beside col K that defines what weights they are in col L then this formula would work. =VLOOKUP(B8,K3:L28,2,false)
    Last edited by Sam Capricci; 07-10-2014 at 04:58 AM.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: General VLOOKUP setup on my datasheet enquiry

    In that case you don't add the value 70 in it.

    =Vlookup(B8,$C$6:$E$7,3,0)

    Lookup the value in B8 (in your case 70)

    In the range C6:E7 (you only have 1 row with values in your example)

    Take the 3 rth column (column E)

    Use only an exact match (1 is the other option).



    If you want to have the value of sugar the formula would be:

    =Vlookup(B8,$C$6:$E$7,2,0)


    Hope I explained well enough, if not please come back again.

  6. #6
    Registered User
    Join Date
    03-07-2014
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: General VLOOKUP setup on my datasheet enquiry

    Hi,

    Yes sorry I didnt explain clearly. It is just the weight (g) ONLY that I need VLOOKUP to work on. So user selects any CC value, it then auto calculates the weight (g) proportionately.

    So just to double check now, which formula I need to use now?
    Last edited by gtz101; 07-10-2014 at 05:08 AM.

  7. #7
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: General VLOOKUP setup on my datasheet enquiry

    Hi

    Clarification required ?

    1) Relation required between cc, Weight & Sugar
    2) Upload a sample workbook showing required results manually.

    Punnam
    Attached Files Attached Files

  8. #8
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: General VLOOKUP setup on my datasheet enquiry

    this would be my interpretation of what you want, still unclear though but you can see the process.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    03-07-2014
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: General VLOOKUP setup on my datasheet enquiry

    Hi,

    I've uploaded a up to date sheet, would this help?
    Attached Files Attached Files

  10. #10
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: General VLOOKUP setup on my datasheet enquiry

    In your updated file, you get #N/b since 20 is not in your list.

    Change the value 20 in 70 and see that the result changes to 31.

  11. #11
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: General VLOOKUP setup on my datasheet enquiry

    The problem is that what you are showing in the weight cell is only based on one CC value so unless you show how the weights relate to the other CCs it cannot be calculated and a formula will be difficult for us without guessing. I tried to add a value in cell F6 that showed the weight as a proportion to the CC then used it in the CCs in col K and calculated the weights in col L and then gave you a formula for that. Give it a look and you can see how a vlookup will work.

  12. #12
    Registered User
    Join Date
    03-07-2014
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: General VLOOKUP setup on my datasheet enquiry

    Hi Sambo Kid, thats exactly what I was after, many thanks. Just what I was after! Sorry I didnt explain clear, I wasnt sure whether I needed to show how other weights relate.

    Many thanks

  13. #13
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: General VLOOKUP setup on my datasheet enquiry

    Glad that worked for you. Don't forget to mark your post as solved and you can thank all those who helped with their time and effort by adding to their reputations, that is always welcome whether successful or not.

  14. #14
    Registered User
    Join Date
    03-07-2014
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: General VLOOKUP setup on my datasheet enquiry

    sure certainly, thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. VBA for display Various Datasheet data in Masterdatasheet when we choose datasheet name
    By santosh226001 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-08-2014, 10:21 AM
  2. Replies: 1
    Last Post: 10-03-2013, 03:58 PM
  3. Enquiry
    By Damian84 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2013, 09:58 AM
  4. Count day Enquiry
    By pjlau in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-25-2012, 02:15 AM
  5. general vlookup question
    By jw01 in forum Excel General
    Replies: 2
    Last Post: 01-06-2011, 11:36 AM

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