+ Reply to Thread
Results 1 to 6 of 6

Reg replacing cell values based on a pattern

  1. #1
    Registered User
    Join Date
    03-14-2018
    Location
    Tampa,FL
    MS-Off Ver
    2016
    Posts
    11

    Unhappy Reg replacing cell values based on a pattern

    Hi All,

    Sorry to ask this,but please point me in the right direction.I'm a total newbie on excel and trying to learn it.I have situation where in a i have to create a report from a master sheet which has the below format.
    Order# Step# Assignee Status
    OA1 Step1.Initiate New John Completed
    OA1 Step2.Close New Missing In Progress
    OA1 Step3.End - Pending for previous step
    OA2 Step1.Initiate New Sean In Progress
    OA2 Step2.Close New Missing Pending for previous step
    OA2 Step3.End - Pending for previous step

    I want to put a filter on step2 and step3 and should be able to see the assignee name.Can someone tell me how can i replace these(step2 and step3 value has to be overwritten based on step1 assignee) based on the step1 assignee? The master sheet has few hundreds of such entries.
    Appreciate your help.
    Last edited by sam9989; 03-14-2018 at 08:29 AM.

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,544

    Re: Reg replacing cell values based on a pattern

    Hello sam9989 and Welcome to Excel Forum.
    It might help us to help you if you would upload a sample spreadsheet. Show us a sample of what you have on the master sheet and what you want on the report by manually mocking up the expected outcome(s). We can attempt to automate your manually mocked up outcome(s) using either formula(s) or code.
    To upload a sample spreadsheet click on the GO ADVANCED button below the Quick Reply window and then scroll down to Manage Attachments to open the upload window.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Registered User
    Join Date
    03-14-2018
    Location
    Tampa,FL
    MS-Off Ver
    2016
    Posts
    11

    Re: Reg replacing cell values based on a pattern

    Hello JeteMc, thanks for your reply. Attached is a sample copy. Sheet 1 is the master copy and sheet 2 is the expected result.

    For a unique OrderID, master sheet may have more than one step. What i want is to copy assignee of step1 of every order and overwrite rest of the orders step assignee with that value. Many thanks.
    Attached Files Attached Files

  4. #4
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Reg replacing cell values based on a pattern

    I have notice that, in your data "Order Item ID" duplicate for two different "step name". I think this not correct.
    Secondly, explain about "[Resolver Assigned]"


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  5. #5
    Registered User
    Join Date
    03-14-2018
    Location
    Tampa,FL
    MS-Off Ver
    2016
    Posts
    11

    Re: Reg replacing cell values based on a pattern

    avk, We have substeps for an order and 2 types of order(Order can have 2 steps or 6 steps as you see in my data). Each step has to be closed and if all steps are closed, order is considered to be closed. The ask is to overwrite resolver for all steps based on step1 assignee for a specific order.
    Order1 can have step1,2,3,4,5,6 or step1,2.Step1 will bear assignee name and it has to be copied across all other steps for that order.

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,544

    Re: Reg replacing cell values based on a pattern

    This may not be as fully automatic as you want, but perhaps it will be a start.
    I used three helper columns which may be moved for aesthetic purposes.
    The first helper column (I) is populated using: =IF(OR(F2="",F2="Missing"),"",B2)
    The second helper column (J) is populated using: =IF(I2="","",F2)
    The third helper column (K) is populated using: =INDEX(J$2:J$17,MATCH(B2,I$2:I$17,0))
    From this point you would need to:
    1) select and copy cells K2:K17
    2) select cell F2
    3) use the paste option 'Paste Values'
    These three steps might be something that could be written into a macro (I am pretty much VBA illiterate). If you would like to pursue that possibility you could mark this thread as 'Solved' and open a new thread on the 'Excel Programming/ VBA/ Macros' forum showing what you already have and explaining what you want (or include a link back to this thread).
    Let us know if you have any questions.
    Attached Files Attached Files

+ 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] Replacing Values Based on Previous Value
    By chicken_pie in forum Excel General
    Replies: 7
    Last Post: 10-25-2017, 09:25 PM
  2. Replacing specific text in multiple text boxes based on cell values
    By ettevi23 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-17-2017, 09:21 PM
  3. Macro to insert pattern based on value and select based on pattern
    By CB569 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-15-2015, 12:36 PM
  4. [SOLVED] Lookup and return rows based on pattern start and pattern end
    By JDI in forum Excel General
    Replies: 18
    Last Post: 11-16-2014, 11:44 PM
  5. Replies: 9
    Last Post: 04-18-2013, 09:27 AM
  6. Replies: 2
    Last Post: 01-12-2012, 01:25 AM
  7. Replacing values based on a set list
    By Lee in forum Excel General
    Replies: 3
    Last Post: 02-02-2005, 11:06 AM

Tags for this Thread

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