+ Reply to Thread
Results 1 to 15 of 15

How do I auto populate qty from a cell adjacent to another cell

  1. #1
    Registered User
    Join Date
    07-30-2012
    Location
    philadelphia, pa
    MS-Off Ver
    Excel 2010
    Posts
    19

    How do I auto populate qty from a cell adjacent to another cell

    I have two worksheets in the same workbook. I need to insert a formula in cell I16(sheet 2) that says

    If any of the cells between A39:A42 (sheet 1) equal 51, then insert qty from cell C39:C42 (sheet 1), adjacent to the cell that equals 51, into I16 (sheet 2)


    ex: which ever cell has the "51" thats the adjacent cell to pull from i.e. A40=51(sheet1) then insert qty from C40(sheet1) into I16(sheet 2)

    How do I write a formula for that

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How do I auto populate qty from a cell adjacent to another cell

    There are a number of possibilities.

    How about
    =IFERROR(VLOOKUP(51,Sheet1!$A$39:$B$42,2,FALSE),"")
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    07-30-2012
    Location
    philadelphia, pa
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: How do I auto populate qty from a cell adjacent to another cell

    This formula isnt working. Nothing is appearing in cell I16.

  4. #4
    Forum Contributor day92's Avatar
    Join Date
    04-20-2010
    Location
    Los Angeles
    MS-Off Ver
    Excel 360
    Posts
    600

    Re: How do I auto populate qty from a cell adjacent to another cell

    Bamma it might help if you upload some sample data with expected results.

  5. #5
    Registered User
    Join Date
    07-30-2012
    Location
    philadelphia, pa
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: How do I auto populate qty from a cell adjacent to another cell

    what do you mean day92? I dont understand.

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How do I auto populate qty from a cell adjacent to another cell

    "Go Advanced" > Manage Attachments and attach a spreadsheet with some data showing what you have and what you expect to happen. That will help me understand why the formula I gave you is not working. Otherwise, I'm just guessing.

  7. #7
    Registered User
    Join Date
    07-30-2012
    Location
    philadelphia, pa
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: How do I auto populate qty from a cell adjacent to another cell

    THE BLUE CELL ON SHEET 3 IS WHERE I NEED THE FORMULA TO BE.

    IT SHOULD SAY "IF ANY CELL BETWEEN A10:A13 (SHEET 2) SAYS 51 THEN MULTIPLY QTY IN C_ (SHEET 2) BY C8 (SHEET 2)."

    NOTE: C_ SHOULD BE QUIVALENT HORIZONTALLY TO WHICH EVER CELL HAS "51" IN IT. i.e. A11=51 THEN MULTIPLY C11*C8 OR IF A12=51 THEN MULTIPLY C12*C8

    IM NOT SURE HOW TO MAKE THE FORMULA READ BECAUSE OF THE FACT THAT THERE ARE SO MANY VARIABLES.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    07-30-2012
    Location
    philadelphia, pa
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: How do I auto populate qty from a cell adjacent to another cell

    Also sorry for the all caps. I didnt realize until I was half way done.

    The info on the spreadsheets that i sent is just a small portion of what I am doing on a MUCH larger scale, but if I can get a formula for it i can just copy and paste.

    The highlighted cells are the ones I am focusing on solely for the sake of the question.

  9. #9
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: How do I auto populate qty from a cell adjacent to another cell

    http://www.excelforum.com/excel-gene...auto-fill.html

    duplicate thread, or just an error in attaching file?

    ---------- Post added at 01:54 PM ---------- Previous post was at 01:50 PM ----------

    does this work for you in Sheet3!C10?

    Please Login or Register  to view this content.
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

  10. #10
    Registered User
    Join Date
    07-30-2012
    Location
    philadelphia, pa
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: How do I auto populate qty from a cell adjacent to another cell

    I dont think that seems right. Im not trying to multiply anything in column "A". I am only using that as a reference so that sheet 3 always multiplies the qty of LABORERS. 51 is just the code from the legend on sheet 1 that means LABORER

  11. #11
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: How do I auto populate qty from a cell adjacent to another cell

    the following formula:

    Please Login or Register  to view this content.
    is doing the following deed:

    Quote Originally Posted by bamma86 View Post
    IT SHOULD SAY "IF ANY CELL BETWEEN A10:A13 (SHEET 2) SAYS 51 THEN MULTIPLY QTY IN C_ (SHEET 2) BY C8 (SHEET 2)."

    NOTE: C_ SHOULD BE QUIVALENT HORIZONTALLY TO WHICH EVER CELL HAS "51" IN IT. i.e. A11=51 THEN MULTIPLY C11*C8 OR IF A12=51 THEN MULTIPLY C12*C8
    i.e., between A10 and A13, any row that has 51 in it, fetch the corresponding value from column C (between C10 and C13) and multiply that value by the value in C8 - all these values are from the Worksheet tab.

    instead of looking at the formula, check to see if the result is what you desire. if it is not, i will help fix the formula.
    Last edited by icestationzbra; 08-03-2012 at 02:08 PM. Reason: eggsplanation

  12. #12
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How do I auto populate qty from a cell adjacent to another cell

    If there will only be one instance of 51, then this should work

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

  13. #13
    Registered User
    Join Date
    07-30-2012
    Location
    philadelphia, pa
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: How do I auto populate qty from a cell adjacent to another cell

    HAHAH!! Im glad you were confident in our formula because it sure enough worked lol. Thx.!!

    ---------- Post added at 02:52 PM ---------- Previous post was at 02:51 PM ----------

    Thx icestationzbra

  14. #14
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: How do I auto populate qty from a cell adjacent to another cell

    actually, when i look back at your spreadsheet, you have already used a formula in there that you could have used for this purpose. you have utilized INDEX/MATCH functions in the workbook, and they could be extended thus to achieve your desired results in Sheet3!C10:

    Please Login or Register  to view this content.

  15. #15
    Registered User
    Join Date
    07-30-2012
    Location
    philadelphia, pa
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: How do I auto populate qty from a cell adjacent to another cell

    I thought I would be able to use that formula, but I couldnt figure our how to "word" it for lack of correct terminology. Im not really that talented with Excel. Although my boss seems to believe that I am, I just know how to navigate my way through.

+ 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