+ Reply to Thread
Results 1 to 5 of 5

how to autopopulate a cell based on values in other cells following some specific rules

  1. #1
    Forum Contributor
    Join Date
    01-20-2011
    Location
    liverpool
    MS-Off Ver
    Excel 2016
    Posts
    198

    how to autopopulate a cell based on values in other cells following some specific rules

    Hello,
    it seems my need cannot be covered by simple formula so hope VBA can help.
    I have row where I would like to show (autopopulate) the actual status (planned, delay, finish1, finish2) of a milestone based on status.
    of several steps that belong to that milestone. Steps status (populated manually) are just below the cell of milestone status.

    Rules are the folllowing:
    1. if all the steps are marked as empty status shoud be blank
    2. if all the steps are marked as planned milestone status shoud be "planned"
    3. if even one of the step is marked as "delay" milestone status shoud be "delay"
    4. if we do not have empty, planned, delay but just "finished1" and "finish2" milestone status shoud be "finished1"
    5. if we do not have empty, planned, delay and finish 1 and all steps values are "finish2" milestone status shoud be "finished2".


    I would like to mention that in the same column (representing a week) we might have seceral milestones and many steps.
    Status of milestone1 should be formed based on steps that belong milestone1.
    Status of milestone2 should be formed based on steps that belong milestone2.

    Hope if sth is not clear the example file attached can explain.
    If simple formula can help - that solution would be more prefarable.

    Thank you.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: how to autopopulate a cell based on values in other cells following some specific rule

    Try next UDF
    Please Login or Register  to view this content.
    Last edited by PCI; 06-29-2014 at 04:21 AM.

  3. #3
    Forum Contributor
    Join Date
    01-20-2011
    Location
    liverpool
    MS-Off Ver
    Excel 2016
    Posts
    198

    Re: how to autopopulate a cell based on values in other cells following some specific rule

    Hi PCI,
    I added the code in the xls sheet but it does not work.
    It seems I do not know how to introduce the code.
    Can you help on that?

  4. #4
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: how to autopopulate a cell based on values in other cells following some specific rule

    Ok see your file attached
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: how to autopopulate a cell based on values in other cells following some specific rule

    With some formulas just to start you could do:
    amount of empty cells =COUNTIF(C4:C10,"")
    amount of cells with "d" =COUNTIF(C4:C10,"d")
    amount of cells =COUNTA(D4:D10)+COUNTBLANK(D4:D10)
    then see with some IF functions

+ 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] Autopopulate certain cells based on the value of a particular cell
    By denisirio in forum Excel General
    Replies: 6
    Last Post: 04-18-2014, 04:27 PM
  2. 3+ Conditional Formatting Rules for cell range based on Formula from other cells
    By osborsm9 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-06-2013, 08:48 PM
  3. Populate Specific Cell Based on Values in Independent Cells
    By NahRoots in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-26-2011, 10:46 AM
  4. how to autopopulate cells based on values from other cells
    By marbie in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 07-28-2011, 05:31 AM
  5. Replies: 3
    Last Post: 03-28-2011, 10:53 AM

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