if+index+match

kelvin_9

Board Regular
Joined
Mar 6, 2015
Messages
231
hi all, any idea on what's wrong with my formula below, i cant return Khloe Kung result same as others user with same formula.?
what should i amend and fix my issue?

thanks all

 

Special-K99

Well-known Member
Joined
Nov 7, 2006
Messages
8,327
Change the data in Khloe's cell so it reads 08:00-18:00.
Does this cure the problem?
If so then its because Khloe's cell has two time durations (as does Lodkin's) and Ada's only has one time duration
 

kelvin_9

Board Regular
Joined
Mar 6, 2015
Messages
231
Change the data in Khloe's cell so it reads 08:00-18:00.
Does this cure the problem?
If so then its because Khloe's cell has two time durations (as does Lodkin's) and Ada's only has one time duration
this may not cure?
i have others employee which has 2-3 more duration instead
i dont know where is/are my problem. :confused:

my formula is used to take the first and the last time if more than 2 duration encountered.
for instance, 09:15-11:00, 11:00-15:00, 15:00-18:30, i return 09:15-18:30

ps. khloe is new hire in this week and those formulas working fine before it hired.

thank you
 
Last edited:

kelvin_9

Board Regular
Joined
Mar 6, 2015
Messages
231
Images are of little use in this aspect.
Can you post your formula?
Code:
=IF(INDEX(SCHEDULE!$C:$C,MATCH(RESULT!$A51,SCHEDULE!$A:$A,0))="","",TEXT(MIN(IFERROR(TIMEVALUE(LEFT(INDEX(SCHEDULE!$C:$C,MATCH(RESULT!$A51,SCHEDULE!$A:$A,0)):INDEX(SCHEDULE!$C:$C,MATCH(RESULT!$A52,SCHEDULE!$A:$A,0)-1),5)),1)),"hh:mm")&" - "&TEXT(MAX(IFERROR(TIMEVALUE(MID(INDEX(SCHEDULE!$C:$C,MATCH(RESULT!$A51,SCHEDULE!$A:$A,0)):INDEX(SCHEDULE!$C:$C,MATCH(RESULT!$A52,SCHEDULE!$A:$A,0)-1),7,5)),0)),"hh:mm"))
ps. ctrl+shift+enter

thank you sir
 

Special-K99

Well-known Member
Joined
Nov 7, 2006
Messages
8,327
Is it cos of the order of the names?
Your formula refers to the next name down A53 A54 etc

There is no name below Khloe's on the output.

Put the names int he same order.
I suspect Khloe's will correct itself but then Loaklin's will go wrong.
 

kelvin_9

Board Regular
Joined
Mar 6, 2015
Messages
231
Is it cos of the order of the names?
Your formula refers to the next name down A53 A54 etc

There is no name below Khloe's on the output.

Put the names int he same order.
I suspect Khloe's will correct itself but then Loaklin's will go wrong.
wooo~~
any ideas to avoid similar like this but still can return a correct one?
 

Forum statistics

Threads
1,082,359
Messages
5,364,916
Members
400,815
Latest member
Joaquin Phoenix

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top