+ Reply to Thread
Results 1 to 6 of 6

Legend?

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

    Legend?

    I need to make a formula that will automatically populate qty's from a legend on sheet 1 into sheet 2 when I insert a cost code


    ex: if A1(sheet 2)=1 then insert qty from B1(sheet 1)
    if A1(sheet 2) = 2 then insert qty from C1 (sheet 1)
    if A1(sheet 2) = 3 then insert qty from D1 (sheet 1)
    and so on
    and so on

    What would be the formula to perform the task above?

    The table that I have is pretty extensive and this formula will be placed in a number of diff cells, but if I have the base formula I can just change the cells addresses

  2. #2
    Valued Forum Contributor
    Join Date
    05-08-2012
    Location
    Georgia, USA
    MS-Off Ver
    Excel 2003, 2010
    Posts
    811

    Re: Legend?

    Replace "" for additional if conditions

    =IF(Sheet2!A1=1,B1,IF(Sheet2!A1=2,C1,IF(Sheet2!A3=3,D1,"")))

    Kirk
    Click on star (*) below if this helps

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

    Re: Legend?

    Maybe I explained the formula incorrectly...

    If A28 (sheet 2) =1, Then B28 (sheet 2) = qty in D3 (sheet 1)
    If A28 (sheet 2) =2, Then B28 (sheet 2) = qty in D4 (sheet 1)
    If A28 (sheet 2) =3, Then B28 (sheet 2) = qty in D5 (sheet 1)
    and so on
    and so on

  4. #4
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Legend?

    bamma86,

    Give this a try in cell B28 (sheet2):
    Please Login or Register  to view this content.
    Adjust the Sheet1 range to suit.
    Hope that helps,
    ~tigeravatar

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

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

    Re: Legend?

    Thats sweet!! Thx tiger.

  6. #6
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Legend?

    @ bamma86 - you got away with a poor thread title this time!

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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