+ Reply to Thread
Results 1 to 3 of 3

IF Formula on a drop down list

  1. #1
    Registered User
    Join Date
    08-02-2005
    Posts
    3

    IF Formula on a drop down list

    Hi everybody,
    I am in the process of creating for work a rostering/labour costing spreadsheet over different sheets.

    Here’s how I want it to work:
    • On the sheet named Roster I have 2 different inputs per day e.g.; Sun 29 March has Columns B & C. B will be normal Rostered hours which has a drop down menu gathered by Data Verification on Sheet 2 (Normal Time, Sick, Annual Leave, etc). In the subsequent row have rostered shift times. In Column C has the options for overtime. The idea behind the 2 columns is that it is possible to work a normal shift of 8 hours and overtime for 2.
    • On Sheet Lb07.02.15 is a labour costing spreadsheet which is then uploaded to other software. Formatting must remain. On this sheet we input an Earning class which I have an IF formula looking at B3, D3, F3, etc for the phrase “Normal Time.” True result gives a code, False returns a blank cell.


    The issue is I am stuck with the cells I10-I16 when it comes to inputting any shift that does not have an earnings class (BO, Annual Leave, Carers Leave, Long Service, Sick). Essentially I have gone with an IF/OR combination that looks at cell Roster!B3 for a value that matches the requirement, If it finds a match it will display the result in I10.
    So If A. Person is sick on the Sunday, choosing sick on the roster page automatically updates I10 to say sick. Likewise for Annual Leave, LWOP, etc.
    I have been getting the result I want if I narrow the formula to look for “sick” only, but as soon as I add the rest of the options it gets screwey. It mostly returns the first logical choice (sick) and not any other when selected.
    The formula I have been trying looks like this:
    =IF(OR(Roster!B3={"Annual Leave","Sick”,"LWOP","Long Service","Carers Leave"}),Roster!B3,””)
    What am I missing?

    Thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    03-17-2005
    Location
    Canterbury, Kent
    MS-Off Ver
    2003, 2010
    Posts
    285

    Re: IF Formula on a drop down list

    How about this...

    either

    =IF(OR(Roster!B3="Sick",Roster!B3="Annual Leave",Roster!B3="LWOP",Roster!B3="Long Service",Roster!B3="Carers Leave"),Roster!B3,"")

    slightly shorter

    =IF(OR(Roster!B3="BO",Roster!B3="Training",Roster!B3="Normal Time"),"",Roster!B3)

    Windy

  3. #3
    Registered User
    Join Date
    08-02-2005
    Posts
    3

    Re: IF Formula on a drop down list

    Hi Windy58,

    Thanks, works a treat.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Populate Drop-down list based on selection from previous drop-down list
    By Diventus in forum Excel - New Users/Basics
    Replies: 14
    Last Post: 01-11-2013, 10:55 AM
  2. Populate Drop-down list based on selection from previous drop-down list
    By poison_stone in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 12-11-2012, 06:10 PM
  3. Replies: 3
    Last Post: 04-16-2012, 10:14 PM
  4. drop down list formula's
    By davittp in forum Excel General
    Replies: 5
    Last Post: 08-01-2007, 06:05 AM
  5. Replies: 5
    Last Post: 10-27-2005, 01:55 PM

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