Gannt Chart not executing with cells containing vlookup data

KarbonEnk

New Member
Joined
Jan 2, 2013
Messages
9
Excel v.2010 | OS Windows 7

Problem: The gannt chart being produced with conditional formatting doesn't execute with cells that have vlook up data. I'm comparing a start time and an End time. The conditional formatting works when you type in the time directly into the cell.

Files:
Description File - This is the file that I want all the data to be displayed in (In the leader's box, the information is being pulled from vlookup
In the Cashwrap box, the times are typed in directly to show that the gannt chart works)

Lookup Value - This file contains the names that I am looking up

Lookup Data - This file contains the table that I am pulling into the description file.

I hope my issue is clear but if not, let me know and I can elaborate further. Thanks in advance Excel Team.

Google
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Hi and welcome to MrExcel.

I guess the reason why you haven't received a reply is because you haven't provided and sample data, the formula you are using for your Conditional Formatting or your Vlookup formula. I'm sure if you provide this information then someone will provide you with the answer you require.

Ak
 
Upvote 0
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Smith, John[/TD]
[TD]7:00 am[/TD]
[TD]12:00pm[/TD]
[TD]8:00am[/TD]
[TD]9:00am - 10:00am[/TD]
[/TR]
</tbody>[/TABLE]


Above: Look up data

[TABLE="class: grid, width: 90, align: left"]
<tbody>[TR]
[TD]Smith, John[/TD]
[/TR]
</tbody>[/TABLE]


Above: Value looking up

[TABLE="width: 400, align: left"]
<tbody>[TR]
[TD]name
[/TD]
[TD]start
[/TD]
[TD]end
[/TD]
[TD]break
[/TD]
[TD]lunch
[/TD]
[TD]7am
[/TD]
[TD]7:15am
[/TD]
[TD]7:30am
[/TD]
[TD]7:45am
[/TD]
[TD]8:00am
[/TD]
[TD]8:15am
[/TD]
[TD]8:30am
[/TD]
[TD]8:45am
[/TD]
[TD]9:00am
[/TD]
[TD]9:15am
[/TD]
[TD]9:30am
[/TD]
[TD]9:45am
[/TD]
[TD]10:00am
[/TD]
[TD]10:15am
[/TD]
[TD]10:30am
[/TD]
[/TR]
[TR]
[TD]Smith, John
[/TD]
[TD]7:00 am
[/TD]
[TD]12:00pm
[/TD]
[TD]8:00am
[/TD]
[TD]9:00am -10:00 am
[/TD]
[TD="align: center"]x
[/TD]
[TD="align: center"]x
[/TD]
[TD="align: center"]x
[/TD]
[TD="align: center"]x
[/TD]
[TD="align: center"]
[/TD]
[TD="align: center"]x
[/TD]
[TD="align: center"]x
[/TD]
[TD="align: center"]x
[/TD]
[TD="align: center"]
[/TD]
[TD="align: center"]
[/TD]
[TD="align: center"]
[/TD]
[TD="align: center"]
[/TD]
[TD="align: center"]
[/TD]
[TD="align: center"]x
[/TD]
[TD="align: center"]x
[/TD]
[/TR]
</tbody>[/TABLE]





Vlookup Formula:
Code:
=IFERROR(VLOOKUP([Athlete_Roster.xlsx]Departments'!$B12,'[1-06-13.xlsx]Sheet1'!$A$7:$BQ$94,1,FALSE),"")
Formating Formula:
Code:
=AND(F$21>=$B22,G$21<=$C22)

I can get the gannt chart to work by adding a zero at the end of the start time field but I don't know how to display the lunch field in the gannt chart
 
Last edited:
Upvote 0
Hi,

I'm not sure if this is the solution you require.

Sample data.....

Excel Workbook
ABCDEF
1NameStartEndBreakLunch
2Smith. John07:0012:0008:0009:00 am - 10:00 am
3Smith, Jon07:0012:0008:0009:00 am - 10:00 am
4Smith John07:0012:0008:0009:00 am - 10:00 am
5Smith, John07:0012:0008:0009:00 am - 10:00 am
6Smith. Jon07:0012:0008:0009:00 am - 10:00 am
7
Sheet1


Sample Vlookup result.....

Excel Workbook
ABCDEFGHIJKLMNOPQRSTUVWXYZAA
1NameStartEndBreakLunch7:007:157:307:458:008:158:308:459:009:159:309:4510:0010:1510:3010:4511:0011:1511:3011:4512:00
2Smith, John7:00 AM12:00 PM8:00 AM09:00 am - 10:00 amxxxxxxxxxxxxxxx
3
Sheet2



The formula in B2 needs copying across to E2 and the formula in F2 needs copying across.
The numbers in F1:Z1 have been entered as time using the formatting of h:mm.
I have entered the Lunch time as....
09:00 am - 10:00 am
instead of.....
9:00am - 10:00am

Conditional Formatting formula....
=F2=""

I hope this helps.

Ak
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,853
Members
452,361
Latest member
d3ad3y3

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