+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Multiple IF + VLOOKUP filling data on multiple criterias

  1. #1
    Registered User
    Join Date
    07-09-2010
    Location
    KL, MY
    MS-Off Ver
    Excel 2003
    Posts
    3

    Multiple IF + VLOOKUP filling data on multiple criterias

    Hi guys, good day.

    Need some advice on the formulas which i worked out on my spreadsheet.

    I am doing some schedule fixing for "staff on duty", 3 personnel at the moments.

    Here's my issues:

    Question 1)
    If A=1, then A, else look for B=1, then B, else look for C=1, then C, if none of these met the criteria then NIL. But what i got back is FALSE (cell K7 as per attached file). Anyone can enlighten what mistake did i made?

    Question 2)
    Is there any shorter or better solution to what i am formulating now?

    Question 3)
    If additional personnel D & E arises, do i continue with my IF formulas?

    Question 4)
    Earlier assumption was made on 0=Off Day, 1=Word Day but what if the situation change to
    0=Off Day, 1=Half Day, 2=Full Day, I have no clue on what should i do next, need your valuable input.

    Please find the attached spreadsheet as below.


    Thank you in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Multiple IF + VLOOKUP filling data on multiple criterias

    In K7, you'd forgotten the FALSE portion of one of the IF sections.

    =IF(I6="","",IF(J7=DailyPlan!$K$7,"",IF(J7=DailyPlan!$I$7,IF(VLOOKUP(I6,DailyPlan!$B$8:$K$12,9,FALSE)=1,DailyPlan!$J$7,IF(VLOOKUP(I6,DailyPlan!$B$8:$K$12,10,FALSE)=1,DailyPlan!$K$7,"")),IF(J7=DailyPlan!$J$7,IF(VLOOKUP(I6,DailyPlan!$B$8:$K$12,10,FALSE)=1,DailyPlan!$K$7,""),""))))
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    07-09-2010
    Location
    KL, MY
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Multiple IF + VLOOKUP filling data on multiple criterias

    arh right! thanks JB, i really missed that.

    JB, do u have any other suggestion/alternative function which I could use to formulate?

    I am just worries over that the more IF i do, the more mistake i will make.

    Many thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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