MATCH formula

MazurK

New Member
Joined
Dec 16, 2021
Messages
6
Office Version
  1. 2013
  2. 2010
Platform
  1. Windows
Using: using Microsoft® Excel® for Microsoft 365 MSO (Version 2111 Build 16.0.14701.20240) 32-bit

I cannot get this formula to work, I get an N/A in the field. I have created a calendar on another worksheet, sample below.

Any help would be greatly appreciated.

Formula in Column F: =MATCH(E6,'16x5 Calendar'!C$4:C$3000,0)+(MATCH(E6,'16x5 Calendar'!C$4:C$3000,0)=MATCH(E6,'16x5 Calendar'!D$4:D$3000,0))

1640191679025.png


1640191635037.png
 
Last edited by a moderator:

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Hi Mazurk,

It is possible that rounding issues are causing a mismatch. Try doing a =VALUE(ref) of E6 and C3 showing 9 decimal places. That should give you a clue as to where you'll need to use ROUND.
 
Upvote 0
That's a rather strange looking formula. What are you trying to accomplish? What values do you want to see in F through I?
 
Upvote 0
That's a rather strange looking formula. What are you trying to accomplish? What values do you want to see in F through I?
Column G: =@INDEX('16x5 Calendar'!E:E,F6,1)-(@INDEX('16x5 Calendar'!D:D,F6,1)-MAX(INDEX('16x5 Calendar'!C:C,F6,1),E6))
Column H: =MATCH(G6+D6,'16x5 Calendar'!E:E)+1
Column I: =@INDEX('16x5 Calendar'!D:D,H6,1)-@INDEX('16x5 Calendar'!E:E,H6,1)+G6+D6

I am trying to use a 16x5 calendar to create my production schedule. i.e. job 1 has 12 hours run time, Job 2 has 8 hours. I want to know the end time of each job between the hours of 7:00 am and 11:30 pm. 11:30 pm to 7:00 am are non working hours.
 
Upvote 0
I'm still a bit hazy, but maybe:

Book1
ABCDEFGHIJKLMNOP
1HoursDayBeginEndCum Days
2Start of first job:1/31/2022 7:00
316.5Mon1/31/22 7:00:00 AM1/31/22 11:30:00 PM0.6875
4SeqJobsHoursDaysStartStop16.5Tue2/1/22 7:00:00 AM2/1/22 11:30:00 PM1.375
516.5Wed2/2/22 7:00:00 AM2/2/22 11:30:00 PM2.0625
61Job A5.870.2445833331/31/22 7:00:00 AM1/31/22 12:52:12 PM16.5Thu2/3/22 7:00:00 AM2/3/22 11:30:00 PM2.75
72Job B40.1666666671/31/22 12:52:12 PM1/31/22 4:52:12 PM16.5Fri2/4/22 7:00:00 AM2/4/22 11:30:00 PM3.4375
83Job C120.51/31/22 4:52:12 PM2/1/22 12:22:12 PM16.5Mon2/7/22 7:00:00 AM2/7/22 11:30:00 PM4.125
94Job D10.50.43752/1/22 12:22:12 PM2/1/22 10:52:12 PM16.5Tue2/8/22 7:00:00 AM2/8/22 11:30:00 PM4.8125
105Job E10.0416666672/1/22 10:52:12 PM2/2/22 7:22:12 AM16.5Wed2/9/22 7:00:00 AM2/9/22 11:30:00 PM5.5
116Job F190.7916666672/2/22 7:22:12 AM2/3/22 9:52:12 AM
12
Sheet24
Cell Formulas
RangeFormula
D6:D11D6=C6/24
E6E6=D2
E7:E11E7=I6
P3:P10P3=P2+L3/24
I6:I11I6=IF(E6+D6>VLOOKUP(E6,$N$3:$O$10,2),INDEX($N$4:$N$11,MATCH(E6,$N$3:$N$10))+E6+D6-VLOOKUP(E6,$N$3:$O$10,2),E6+D6)
 
Upvote 0
Thank you.

If I need to add additional hours for when the next job would start, how do I keep that between the hours of 7:00 am and 11:30 pm. For example if E10 is delayed by 8 hours starting?
 
Upvote 0
My first inclination would be to put in another column with the idle time in it. Would this idle time use the off hours? For example, if the previous job ended at 11:00 PM, and there was 10 idle hours, would the next job start at 4:30 PM, or at 9:00 AM?
 
Upvote 0
My first inclination would be to put in another column with the idle time in it. Would this idle time use the off hours? For example, if the previous job ended at 11:00 PM, and there was 10 idle hours, would the next job start at 4:30 PM, or at 9:00 AM?
4:30 pm
 
Upvote 0
In that case, add columns F and G which are a duplicate of columns C and D, they just have the idle time in them instead of the job time. Then change E6+D6 to E6+D6+G6 everywhere in the formula.
 
Upvote 0

Forum statistics

Threads
1,214,994
Messages
6,122,633
Members
449,092
Latest member
bsb1122

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top