+ Reply to Thread
Results 1 to 16 of 16

FUNCTION - more Activity in Rows and pass the result of the last result in start cell

  1. #1
    Registered User
    Join Date
    08-10-2020
    Location
    India
    MS-Off Ver
    2019
    Posts
    19

    FUNCTION - more Activity in Rows and pass the result of the last result in start cell

    STATUS ! Activity_1 Date Activity_2 Date Activity_3 Date Activity_4 Date
    Activity_3-DONE ! AB 01-02-20 CD 02-Feb EF 03-Feb

    How to write FUNCTION if there are more Activity in Rows, excel sheet attached:

    1) Above are the Activity data in 1st rows as header i.e : Activity_1, Activity_2, Activity_3, Activity_4 …...
    2) I want to find in the cell STATUS as Activity_3-DONE, based on the Date entered in the cell ie. the last Activity & Date done.
    3) To explain as per reference to Excel sheet attached:
    a) The Last Activity done is Activity_3 (Column-H) on date 3-Feb (Column-I)
    b) Automatically I get in STATUS (Column-C2) in Cell C2 Activity_3-DONE



    Regards,
    Attached Files Attached Files

  2. #2
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: FUNCTION - more Activity in Rows and pass the result of the last result in start cell

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

  3. #3
    Registered User
    Join Date
    08-10-2020
    Location
    India
    MS-Off Ver
    2019
    Posts
    19

    Re: FUNCTION - more Activity in Rows and pass the result of the last result in start cell

    Thanks Jose,

    you are great boss!!

    But Activity column and Date should not be Empty

    Regards,

  4. #4
    Registered User
    Join Date
    08-10-2020
    Location
    India
    MS-Off Ver
    2019
    Posts
    19

    Re: FUNCTION - more Activity in Rows and pass the result of the last result in start cell

    Jose,

    Sorry the explanation goes like this....

    there should be validation check that cell of Activity column and Date should not be Empty then only the cell STATUS should have the answer.

    I think too much using function therefore i am not able to get the correct function...

    Regards,

  5. #5
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: FUNCTION - more Activity in Rows and pass the result of the last result in start cell

    Hi
    I suppose you want this
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    08-10-2020
    Location
    India
    MS-Off Ver
    2019
    Posts
    19

    Re: FUNCTION - more Activity in Rows and pass the result of the last result in start cell

    Jose,

    Great !!

    =INDEX(C1:AN1,MATCH(AGGREGATE(14,6,D2:AN2*--(C2:AM2<>""),1),C2:AN2,0)-1)&"-DONE"

    This works great, but I realized, if any of the earlier column are null/without any value/data,
    still it shows the last entered data in the Result Cell.

    eg: Activity_3 Date is Blank

    but this is
    Activity_4 Date
    KI 04-Feb

    Which is technically / logically need to be avoided. It should can give message as "Activity Balance" in Result cell.

    Please help to re-write the function. Excel sheet is attached with two cells marked in RED.

    Regards
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    08-10-2020
    Location
    India
    MS-Off Ver
    2019
    Posts
    19

    Re: FUNCTION - more Activity in Rows and pass the result of the last result in start cell

    Jose,

    Just to understand the requirement :

    the Activity_1/Date, Activity_2/Date, Activity_3/Date, Activity_4/Date.... are incremental steps, Activity_4/Date can not be performed unless Activity_3/Date is done. Therefore need the Function with the control null/empty cell value.

    This is the basic concept of this excel sheet.

    Regards,

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

    Re: FUNCTION - more Activity in Rows and pass the result of the last result in start cell

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

    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.

  9. #9
    Registered User
    Join Date
    08-10-2020
    Location
    India
    MS-Off Ver
    2019
    Posts
    19

    Re: FUNCTION - more Activity in Rows and pass the result of the last result in start cell

    Hello JeteMc,

    It is the same as details given as above, what actually I want is :

    The Activity_1/Date, Activity_2/Date, Activity_3/Date, Activity_4/Date.... are incremental steps,

    Activity_4/Date can not be performed unless Activity_3/Date is done.

    Therefore need the Function with the control check to any of the cell should not be null/empty.

    It should give result as the values until the last Activity Rows_cell are completely filled.

    Hope I am able to communicate to you.

    Regards

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

    Re: FUNCTION - more Activity in Rows and pass the result of the last result in start cell

    I assume that there are basically four scenarios.
    1. No activities are filled
    2. Consecutive activities are filled (i.e. activity_1 through activity_4)
    3. There is a gap in the activities filled (as shown in the file attached to post #6)
    4. All of the activities are filled
    If you could either show or tell us what the Result cell should display in each scenario, then it may be easier to provide a formula to replicate that result.
    Let us know if you have any questions.

  11. #11
    Registered User
    Join Date
    08-10-2020
    Location
    India
    MS-Off Ver
    2019
    Posts
    19

    Re: FUNCTION - more Activity in Rows and pass the result of the last result in start cell

    1. No activities are filled --> TO START
    2. Consecutive activities are filled (i.e. activity_1 through activity_4) --> LAST ACTIVITY DONE (i.e. Activity_4 Done)
    3. There is a gap in the activities filled (as shown in the file attached to post #6) --> Activity(collect Activity number from the gap column) Balance
    4. All of the activities are filled : The last Activity_4 Done

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

    Re: FUNCTION - more Activity in Rows and pass the result of the last result in start cell

    This proposal employs three relatively simple formulas as helpers in columns AO:AQ
    The formula for AO2 is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The formula for AP2 is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The formula for AQ2 is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The formula for B2 is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    08-10-2020
    Location
    India
    MS-Off Ver
    2019
    Posts
    19

    Re: FUNCTION - more Activity in Rows and pass the result of the last result in start cell

    This is excellent.

    Thanks for the logic used....

  14. #14
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: FUNCTION - more Activity in Rows and pass the result of the last result in start cell

    May I suggest a non helper solution?

    Here is my approach:
    (A) First blank cell position: MATCH(TRUE,INDEX($C2:$AN2="",),0)
    (B) Last cell with date position: LOOKUP(2,1/(ISNUMBER($C2:$AN2)),COLUMN($C$2:$AN$2)-COLUMN($C$2)+1)

    Algorithm:
    If (A)-(B)=1, then case of DONE, else, case of BALANCE)

    Finall formula:
    Please Login or Register  to view this content.
    Quang PT

  15. #15
    Registered User
    Join Date
    08-10-2020
    Location
    India
    MS-Off Ver
    2019
    Posts
    19

    Re: FUNCTION - more Activity in Rows and pass the result of the last result in start cell

    Hi,

    This is also great solution... Excellent and thanks !!

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

    Re: FUNCTION - more Activity in Rows and pass the result of the last result in start cell

    You're Welcome and thank you for the feedback. Please take a moment to mark the thread as 'Solved' using the thread tools menu above your first post. I hope that you have a blessed day.

+ 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] FUNCTION - more Activity in Rows and pass the result of the last result in start cell
    By Ksaa_Eone in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-10-2020, 08:33 AM
  2. Flag up missing result (1 of 4), miss a cell and start again
    By Supersadie in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-21-2018, 11:20 AM
  3. [SOLVED] If the IF function result is false then check the next cell until get a true result
    By Beag air Bheag in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-10-2017, 08:55 AM
  4. Replies: 2
    Last Post: 04-25-2017, 09:11 AM
  5. Getting a pass or fail result
    By MTC2016 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-05-2016, 03:17 PM
  6. Replies: 7
    Last Post: 11-27-2015, 11:12 AM
  7. Pass function result to cell, not back to sub
    By GCW esq in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-02-2014, 05:29 PM

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