Tilted Forum Project Discussion Community  

Go Back   Tilted Forum Project Discussion Community > The Academy > Tilted Knowledge and How-To


 
 
LinkBack Thread Tools
Old 08-26-2008, 05:48 AM   #1 (permalink)
 
MexicanOnABike's Avatar
 
Location: up north
Excel questions OR something else...

Hi,
I'm trying to create a schedule in excel but i want it to be EXTREMELY detailed and functional.

At this point, I have the DAYS on the top row(sunday to saturday) and the names on the left column. What I want to do is to save me time whenever I want to add hours in the schedule.
So for example: I hire someone new and i want to give them hours on monday; well instead of just clicking in the cell and typing it out, I would like to have a drop down menu for the START time and one for the END time. so CLICK: 8 Click: 5. I can even have 2 cell per day if that's the need.

Now I think I can figure this out on my own if I keep trying for a few days but this is where it gets a bit complex; I want to have a column on the right after all the days that is my total. So if I give 8 to 5 shifts to someone for 5 days a week, that should total 45hrs. 9hrs every day.

So I'm not looking for you to do this all for me but maybe point me in the right direction??




And if this isn't possible in excel, what should I use? I'd like to have this on a usb key that I can bring anywhere. I know that all the computers I use at work have excel so this why I want to use it. If it would be easier in access or something, let me know!
__________________
MexicanOnABike is offline  
Old 08-26-2008, 05:54 AM   #2 (permalink)
Tilted Cat Head
 
Cynthetiq's Avatar
 
Administrator
Location: Manhattan, NY
I assume since you have excel that you have access as well.

access can do what you're asking. you'll have to learn how to make the dropdown edit boxes, layout, etc. it's not too hard. there are many access resources available on the net, you may even find someone who's done it already and just has it available for download.
__________________
I don't care if you are black, white, purple, green, Chinese, Japanese, Korean, hippie, cop, bum, admin, user, English, Irish, French, Catholic, Protestant, Jewish, Buddhist, Muslim, indian, cowboy, tall, short, fat, skinny, emo, punk, mod, rocker, straight, gay, lesbian, jock, nerd, geek, Democrat, Republican, Libertarian, Independent, driver, pedestrian, or bicyclist, either you're an asshole or you're not.
Cynthetiq is offline  
Old 08-26-2008, 06:22 AM   #3 (permalink)
Found my way back
 
healer's Avatar
 
Location: South Africa
Excel's got a data validation feature that I think will do what you need it to. Basically, you'll put all the 'data' for the dropdown box in a column (you can hide this afterwards) and then enable data validation for all your input cells so that they look-up from your data column.

What version of Excel are you using? I'm still figuring out 2007. Once I have the exact how-to I'll post it here.
-----Added 26/8/2008 at 10 : 30 : 30-----
Quote:
Originally Posted by MS Excel Help
To create a list of valid entries for the drop-down list, type the entries in a single column or row without blank cells. For example: A
1 Sales
2 Finance
3 R&D
4 MIS

Note You may want to sort the data in the order that you want it to appear in the drop-down list.

Select the cell where you want the drop-down list.
On the Data tab, in the Data Tools group, click Data Validation.

The Data Validation dialog box is displayed.

Click the Settings tab.
In the Allow box, click List.
To specify the location of the list of valid entries, do one of the following:
If the list is in the current worksheet, enter a reference to your list in the Source box.

Make sure that the In-cell drop-down check box is selected.
To specify whether the cell can be left blank, select or clear the Ignore blank check box.
That's basically it. I edited the Help a bit because they always give you more info than you need. Then, to get your total for the week, just do a SUM for all your input fields and display it wherever you want.
__________________
Quote:
Originally Posted by The_Jazz
Ok - can I edit my posts to read "what healer said"?

Last edited by healer; 08-26-2008 at 06:30 AM.. Reason: Automerged Doublepost
healer is offline  
Old 08-26-2008, 06:33 AM   #4 (permalink)
 
MexicanOnABike's Avatar
 
Location: up north
I have 2003 and at work I think we have 2003 as well.

I'll try what you said. I'd rather do this in excell than start over and have to make it in access. thanks!
__________________
MexicanOnABike is offline  
Old 08-26-2008, 06:41 AM   #5 (permalink)
Tilted Cat Head
 
Cynthetiq's Avatar
 
Administrator
Location: Manhattan, NY
oh I had completely forgotten about the datavalidation ability! thanks! that will come in handy for a project i'm working on.
__________________
I don't care if you are black, white, purple, green, Chinese, Japanese, Korean, hippie, cop, bum, admin, user, English, Irish, French, Catholic, Protestant, Jewish, Buddhist, Muslim, indian, cowboy, tall, short, fat, skinny, emo, punk, mod, rocker, straight, gay, lesbian, jock, nerd, geek, Democrat, Republican, Libertarian, Independent, driver, pedestrian, or bicyclist, either you're an asshole or you're not.
Cynthetiq is offline  
Old 08-26-2008, 05:35 PM   #6 (permalink)
 
MexicanOnABike's Avatar
 
Location: up north
alright, I am almost done but what I need now is the same thing but for area of work.
so i have:
Name: start time, end time on 1 row and on the 2nd row, i have area of work like Cash, sales, office.

I gave these names a colour in the list I made but when i select them, the colour doesn't follow. Is there a way to make it so that when I pick SALES, the SALES cell and the time cell change to a different colour like red?
-----Added 26/8/2008 at 10 : 59 : 47-----
ok, I feel like an Idiot. I cannot figure it out.

Everywhere on google, they talk about conditional formatting but this is limited to 3 per cell and I have about 10 items in my list that I want to use. If it was only for that, It would be perfect but since i'm limited, I have to look for something else to change my cell colours.

Does anyone know how to do this???

IF(text = sales, cell colour = red, If text = cash, cell colour = green) << this is what I want but I can't find the right syntax or functions to do it....
__________________

Last edited by MexicanOnABike; 08-26-2008 at 06:59 PM.. Reason: Automerged Doublepost
MexicanOnABike is offline  
Old 08-27-2008, 01:37 PM   #7 (permalink)
Insane
 
Location: at home
Here is a VBA code that you can use as a base for a macro that will do eXtendedConditionalFormatting.

Sub XconFormat()
Select Case LCase(ActiveCell.Text)
Case "sale"
ActiveCell.Font.Color = vbRed
ActiveCell.Font.Background = vbYellow
Case "cash"
ActiveCell.Font.Color = vbBlue
ActiveCell.Font.Background = vbGreen
End Select

End Sub


Just add Case "text" clauses as needed.


Yours
Zweiblumen
__________________
Sodomy non sapiens. : I'm buggered if I know
Zweiblumen is offline  
Old 08-28-2008, 09:45 AM   #8 (permalink)
 
MexicanOnABike's Avatar
 
Location: up north
This looks like this is what I need. can you go more into details as how to apply it ? I'm new at excel (haven't used it in over 5years).

Also,

Does anyone know how to do a double ANSWER to an IF?

if A equals 1, then B = something and C = something else?
__________________

Last edited by MexicanOnABike; 08-28-2008 at 12:08 PM..
MexicanOnABike is offline  
Old 08-28-2008, 11:29 AM   #9 (permalink)
Tilted Cat Head
 
Cynthetiq's Avatar
 
Administrator
Location: Manhattan, NY
I don't know nothing about macros...

How to Apply Conditional Formatting in Excel - wikiHow
__________________
I don't care if you are black, white, purple, green, Chinese, Japanese, Korean, hippie, cop, bum, admin, user, English, Irish, French, Catholic, Protestant, Jewish, Buddhist, Muslim, indian, cowboy, tall, short, fat, skinny, emo, punk, mod, rocker, straight, gay, lesbian, jock, nerd, geek, Democrat, Republican, Libertarian, Independent, driver, pedestrian, or bicyclist, either you're an asshole or you're not.
Cynthetiq is offline  
Old 08-28-2008, 01:10 PM   #10 (permalink)
 
MexicanOnABike's Avatar
 
Location: up north
well basicly, i have too many things to use Conditional formatting. It's impossible for me to use it in this situation but it's a great tool. for now, i'm checking out what Zweiblumen said and I'm trying to use it but it's not easy.
-----Added 28/8/2008 at 05 : 20 : 05-----
as far as Zweiblumen said, it works for text but not for the background... I get an error everytime I do this.
__________________

Last edited by MexicanOnABike; 08-28-2008 at 01:20 PM.. Reason: Automerged Doublepost
MexicanOnABike is offline  
Old 08-28-2008, 04:03 PM   #11 (permalink)
Insane
 
Location: at home
Ah, you are asking about Excel IF function not the VBA.

the background for the cell is set with ActiveCell.Interior.Color = vbBlue


There are many good books and websites out there on VBA (Visual Basic for Applications) programing.
__________________
Sodomy non sapiens. : I'm buggered if I know
Zweiblumen is offline  
Old 08-28-2008, 05:23 PM   #12 (permalink)
 
MexicanOnABike's Avatar
 
Location: up north
yes, I was able to figure it out. your answer pointed me in the right direction enough to do this.

Now that I have this completed, I can now move onto the 2nd part of my problem. This one I'm really unsure of how to approach it.


I have this as my worksheet:

Code:
A1     b1   c1   d1
NAME : 8 : to : 17 :
       b2
       :  computer  :
repeat for 50 more names and add a few more titles for the 2nd row.

what I want to achieve is: have a list of hours like 7 to 22 on the side and then have a code that looks at everyone with the word computer and then checks what hours they're at and this puts a marker. when the hour has been filled, it puts a check for that hour and person. when the 1st list of hours has been filled, it puts a GOOD in a cell.

so it should look like: jimmy works from 8 to 17 in computers, bob works from 10 to 19 in computers and jack works 17 to 22 in computers.

hours for the day are 8 to 10. with everyone listed here, Computers is GOOD.
If we remove bob, the hours are still GOOD. but if we remove anyone else, it should say BAD.

I then have 5 more departments to cover. Is this possible??!
__________________

Last edited by MexicanOnABike; 08-28-2008 at 05:27 PM..
MexicanOnABike is offline  
Old 08-29-2008, 10:25 AM   #13 (permalink)
Insane
 
Location: at home
Reversing the problem and look "gaps" might be simpler. Nested If's can also be used.

ZB
__________________
Sodomy non sapiens. : I'm buggered if I know
Zweiblumen is offline  
Old 08-29-2008, 05:24 PM   #14 (permalink)
 
MexicanOnABike's Avatar
 
Location: up north
I think I didn't explain myself good enough. I tried posting the same question on an excel forum but I didn't get an answer yet.

Get multiple answers depending on other text - Excel Help Forum

If you can see it, theres also an example of what I want to achieve.
__________________
MexicanOnABike is offline  
Old 08-31-2008, 01:45 AM   #15 (permalink)
Insane
 
Location: at home
As you said in the excel forum it has to be done with a vba macro.

One way would be to have variables inside the macro that would present each workhour. They would all be initialised to FALSE,
then the macro would start going through all the records/fields and put a true value when it finds an assignment to a workhour.
When all the variables are true the macro can stop and return that this period (day ..) else it returns that there are missing assignments. Checking for each type of work seperatly would make it more readable.

ZB
__________________
Sodomy non sapiens. : I'm buggered if I know
Zweiblumen is offline  
 

Tags
excel, questions


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 04:05 PM.

Tilted Forum Project

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360