Results 1 to 5 of 5

InputBox

Threaded View

  1. #1
    Forum Contributor
    Join Date
    08-04-2010
    Location
    Adelaide, Australia
    MS-Off Ver
    Office 365
    Posts
    176

    InputBox

    Hi all,

    in the attached workbook, each person has a shift assigned (via drop-down list) and hours for that shift (via LOOKUp in the table to the right) - this works well most of the time because the hours for each shift are fixed. Two of the shift types (ie: Admin and Training) have varying hours and as a quick fix for that I've again used a drop-down list in cells R4 and R19 - what this does however is to change ALL the values in cells B4 to H59 which is not always elegant if it's only 2 hours on Tuesday but changes to 6 hours on Friday.

    My question then, is this...

    is there a way to precede the LOOKUP function in those cells to check whether "Admin" or "Training" appears, and if it does, to then provide an input box for the user to stipulate the hours?

    So, for example, in cell B4 where the code appears
    =LOOKUP(B4,$N4:$N20,$R4:$R20)
    it would look something like IF B4 = Admin OR Training then do an InputBox, else just do the LOOKUP

    Many thanks in advance.

    AJ
    Attached Files Attached Files
    Last edited by ScotyB; 12-29-2011 at 07:38 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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