+ Reply to Thread
Results 1 to 9 of 9

Looking For Formula To Look Up Contents Of One Cell

  1. #1
    Registered User
    Join Date
    01-01-2012
    Location
    Richmond
    MS-Off Ver
    Excel 2003
    Posts
    42

    Looking For Formula To Look Up Contents Of One Cell

    Morning All

    To be frank I am pretty useless, at working out formulas, so am looking for some help please.

    With the attached file, I am trying to create a simple accounts spreadsheet, and have created three sheets within that file. Sheet 1 is the contents of my stock, Sheet 2 are my sales and Sheet 3 are my purchases.

    What I would dearly like is a formula to be entered in D2 sheet 2, that looks up C2 on sheet 2 from B column on sheet 1 and returns the value of the result from column D on sheet 1.

    And then on Sheet 2 another formula to be entered in E2 that looks up C2 on sheet 1 in the B column and multiplies it by the amount entered in B2 Sheet 2.

    And for it to be possible to copy the formulas down in blank cells that will look up and return different results if I enter different items in Column C Sheet 2.

    I hope that makes sense and sorry for any confusion.

    Thank you so much.

    Steve
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Looking For Formula To Look Up Contents Of One Cell

    hi Steve. in Sales Sheet D2:
    =VLOOKUP($C2,Stock!$B:$D,3,0)

    in E2:
    =VLOOKUP($C2,Stock!$B:$C,2,0)*B2

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    01-01-2012
    Location
    Richmond
    MS-Off Ver
    Excel 2003
    Posts
    42

    Re: Looking For Formula To Look Up Contents Of One Cell

    Hiya

    many many thanks for that, I think on the second formula I made a mistake in explaining myself

    And then on Sheet 2 another formula to be entered in E2 that looks up C2 on sheet 1 in the B column and multiplies Sheet 1 H2 it by the amount entered in B2 Sheet 2.

    Thanks I forgot to add the bit highlighted in red.

    Thanks ever so much

    Steve

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Looking For Formula To Look Up Contents Of One Cell

    Hi Steve.

    Do you mean?

    =INDEX(Stock!$H$2:$H$1000,MATCH(C2,Stock!$B$2:$B$1000,0))*B2
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  5. #5
    Registered User
    Join Date
    01-01-2012
    Location
    Richmond
    MS-Off Ver
    Excel 2003
    Posts
    42

    Re: Looking For Formula To Look Up Contents Of One Cell

    Hi All

    No the above formula isnt correct, sorry about that.

    What I would like it to do is to calculate on sheet 2 in cell E2, to look up C2 on sheet 2 on sheet 1 in the B column and then multiplies sheet 1 cell H2 by sheet 2 B2.

    Many thanks everyone hope I have explained myself better this time.

    Regards

    Steve

  6. #6
    Registered User
    Join Date
    01-01-2012
    Location
    Richmond
    MS-Off Ver
    Excel 2003
    Posts
    42

    Lookup and Multiply Result

    Hiya All once again.........

    Sorry to be a nuisance, but am desperate to get a formula sorted.

    On the attached file I have created 3 sheets (stock, sales and purchases) What I would like it to do is to calculate on sheet 2 in cell E2, to look up C2 on sheet 2 on sheet 1 in the B column and then multiply sheet 1 cell H2 by sheet 2 B2.

    Hope that makes sense and thanks in advance.

    Steve
    Attached Files Attached Files

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,380

    Re: Lookup and Multiply Result

    Sorry, I'm a little confused by your description referring to Sheet 1 and Sheet 2 when they're named Sales and Stock etc.

    But, you need a Lookup or two, something like:

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Regards, TMS
    Last edited by TMS; 09-06-2013 at 07:11 PM.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  8. #8
    Registered User
    Join Date
    01-01-2012
    Location
    Richmond
    MS-Off Ver
    Excel 2003
    Posts
    42

    Re: Lookup and Multiply Result

    Thanks for that Trevor, yes you're right I have made it confusing, here goes then :-

    Sales Sheet in first cell under Price sold, to find item on Sales Sheet in corresponding cell under Item Column in Stock Sheet Column B Item and then multiply it by corresponding cell on stock sheet under Retail Selling Price with the number sold on sales sheet in the Sold Column

    really hope that explains it better

    Steve

  9. #9
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Looking For Formula To Look Up Contents Of One Cell

    Welcome to the Forum, unfortunately:

    Your duplicate posts did not comply with Rule 5 of our forum rules. These threads were merged so as to not waste anyone's time, all should now be able to see what is being discussed by everyone.

    When you joined the forum recently you agreed to abide by the Forum Rules, but in haste I fear you might not have actually read them. Please stop and take a moment to read them now. We all follow these rules for the benefit of all, as must you. Thanks.

    (link above in the menu bar)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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. [SOLVED] Code to delete cell contents IF the result of a formula in the cell = 0
    By jayjaynz in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-22-2013, 03:58 AM
  2. Replies: 5
    Last Post: 08-10-2012, 04:32 PM
  3. Replies: 4
    Last Post: 03-19-2012, 03:05 PM
  4. Replies: 1
    Last Post: 03-19-2012, 09:43 AM
  5. Auto-Insert Adjacent Cell Contents to Cell Chosen by LARGE Formula
    By Aravisea in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-23-2009, 02:50 PM

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