+ Reply to Thread
Results 1 to 11 of 11

Help ! for trying next row if false

  1. #1
    Registered User
    Join Date
    12-01-2018
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    8

    Help ! for trying next row if false

    Hi,

    I have a problem that I couldn't fix

    I'm filling an excel column with a worker for each date, and I have the list of the workers with their admission date,
    So I want to fill a worker for each date knowing that worker is admissed before that date.

    I tried using IF function and filling with the ID of the worker if it's true, but if it's false I don't know how to try with the next row and so on..

    I hope you can help me.

    Thank you

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: Help ! for trying next row if false

    You can get more help if you post a sample workbook with what you have and your expected results.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    12-01-2018
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    8

    Re: Help ! for trying next row if false

    You will find the excel file below, How I would like the result to be and how I encountered the problem
    Attached Files Attached Files
    Last edited by AbuFragile; 12-01-2018 at 03:35 PM.

  4. #4
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Help ! for trying next row if false

    On Sheet1 it looks like you are allocating 6 employees to each day. Why? By about row 51 (1/9/2016) and subsequently you run out of employees who are around as early as Jan-2016. Don't you in any case want to take employee leaving date (=Demission date?) into account? You only show 200 employees on sheet-2. That means on Sheet1 you entirely run out of employees to allocate at the latest by 2/3/2016.

    In summary I really can't grasp what you are trying to do.

    Perhaps, if nobody else jumps in, it would help if you could step back and describe in general terms what you are trying to achieve.

    Sorry that I can't help further at this point. Perhaps someone else can.

  5. #5
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Help ! for trying next row if false

    Not sure about this,

    Please try at C2 and copy down.

    =IFERROR(INDEX(Tabelle2!A:A,AGGREGATE(15,6,ROW(Table2)/(B2>Table2[Admission Date]),ROWS(B$2:B2))),"")

  6. #6
    Registered User
    Join Date
    12-01-2018
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    8

    Re: Help ! for trying next row if false

    Yes the idea is allocating 6 employees each day and even if the lists ends, I keep on allocating them at until I allocate all employees in all days.

    If I do so I will need to take into consideration admission date indeed, I forgot about that.

    So this is just getting more complicated for me, I would appreciate some help as I have limited knowledge about excel functions.

    Thanks a lot

  7. #7
    Registered User
    Join Date
    12-01-2018
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    8

    Re: Help ! for trying next row if false

    It worked until E49 and then it kept on showing blank results, please ask me a question if you want me to clarify the problem.

    I really can't figure it out

  8. #8
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Help ! for trying next row if false

    Please try again at C2 and check row 302-304 that show E50-E52

    =IFERROR(INDEX(Tabelle2!A:A,AGGREGATE(15,6,ROW(Table2)/(B2>Table2[Admission Date]),COUNTIFS(C$1:C1,"E*")+1)),"")

  9. #9
    Registered User
    Join Date
    12-01-2018
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    8

    Re: Help ! for trying next row if false

    Yes it works perfectly fine thanks !! but there's another problem that I didn't see it coming in the beginning, we can't put an employee at a date when he already resigned

  10. #10
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Help ! for trying next row if false

    Add this

    =IFERROR(INDEX(Tabelle2!A:A,AGGREGATE(15,6,ROW(Table2)/(B2>Table2[Admission Date])/(B2< Table2[Demission Date]),COUNTIFS(C$1:C1,"E*")+1)),"")

  11. #11
    Registered User
    Join Date
    12-01-2018
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    8

    Re: Help ! for trying next row if false

    Worked great! Very much appreciated Thanks a lot !!

+ 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] With same contract number, any cell in B False, then All cells false in C,
    By rajeshn_in in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-21-2017, 10:42 PM
  2. [SOLVED] All in one line of code: ScreenUpdating=False, Calculation=Manua, DisplayAlerts=False
    By luv2glyd in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-13-2016, 03:10 PM
  3. Replies: 4
    Last Post: 11-06-2014, 07:43 AM
  4. [SOLVED] Marking a whole group FALSE if one member is FALSE
    By j_Southern in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-23-2014, 11:34 AM
  5. [SOLVED] in this TRUE OR FALSE function, i want desired name instead of display true or false
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-15-2013, 06:44 PM
  6. Replies: 1
    Last Post: 09-30-2013, 10:56 PM
  7. If statement, answer is false, hide false.
    By Mel B in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-07-2013, 06:36 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