+ Reply to Thread
Results 1 to 11 of 11

Repeat Material Codes

  1. #1
    Registered User
    Join Date
    02-12-2011
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2003/2007
    Posts
    17

    Repeat Material Codes

    Hi All

    If C:C>0, i want my formula to enter the relevant material code in A:A, but i have multiple material codes, how do i make my formula notice the change in material and show the new material value...

    Please see attached file

    My Logic...

    Once i have the material running along side the order, i will use a lookup to show load by time and current material shortages.

    I hope this makes sense.

    Thanks

    Chris..
    Attached Files Attached Files
    Last edited by DonkeyOte; 02-12-2011 at 05:30 AM. Reason: modified title

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: =IF formula help.

    Hello,

    as you can see, the forum software takes out the carefully inserted spaces in your table and your actual data layout is unrecognisable. Pleas post a workbook instead and mock up your expected results. Click Go Advanced below, then the paper clip icon to attach a file.

    cheers,

  3. #3
    Registered User
    Join Date
    02-12-2011
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2003/2007
    Posts
    17

    Re: =IF formula help.

    Thanks, please see attached file.

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: =IF formula

    Now, can you upload a file with the desired results? column A is empty. What would you want to see where. Why? What is the logic?

    You only have one material code in the data sample. In the real world, there will be many material codes, no? Can you come up with a data sample that is more aligned with the real world and manually put in what you would like to see in column A?

    cheers,

  5. #5
    Registered User
    Join Date
    02-12-2011
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2003/2007
    Posts
    17

    Re: =IF formula

    Cheers, i have updated my post

  6. #6
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: =IF formula

    Hello, this looks like you are trying to do a pivot table backwards.

    Where is the data coming from? Is that the initial, raw data you have?

    btw: please don't attach updates of your file to the original question. use a new post instead.

  7. #7
    Registered User
    Join Date
    02-12-2011
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2003/2007
    Posts
    17

    Re: =IF formula

    This is raws data dumped from SAP.

    No probs, thanks for the advice.

  8. #8
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: =IF formula

    Hello,

    there may be other ways, but what I've come up with is this:

    use a helper column, for example column F. In F1 enter the formula

    =IF(B1="material",ROW(),"")

    copy down all rows of data.

    Then in cell A2, enter the formula

    =IF(AND(C2>0,B2<>"material"),INDEX($C$1:C2,MATCH(99^99,$F$1:F2,1)),"")

    copy down.

    See attached. You can hide column F if you want.

    cheers,
    Attached Files Attached Files

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

    Re: Repeat Material Codes

    Using sample in post # 1 - perhaps:

    Please Login or Register  to view this content.

  10. #10
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Repeat Material Codes

    @DO: Nice!

  11. #11
    Registered User
    Join Date
    02-12-2011
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2003/2007
    Posts
    17

    Re: Repeat Material Codes

    Thanks guys, that looks like exactly what i am after! you have saved me hours! I am in you debt!

    Thanks

    Chris

+ 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