+ Reply to Thread
Results 1 to 5 of 5

problem with 'IF' function

Hybrid View

BobbyH problem with 'IF' function 09-23-2012, 08:37 PM
protonLeah Re: problem with 'IF' function 09-23-2012, 08:58 PM
BobbyH Re: problem with 'IF' function 09-23-2012, 09:20 PM
protonLeah Re: problem with 'IF' function 09-23-2012, 10:09 PM
BobbyH Re: problem with 'IF' function 09-23-2012, 11:42 PM
  1. #1
    Registered User
    Join Date
    09-23-2012
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    15

    problem with 'IF' function

    Hi guys,

    Using Excel 2007.

    I’m trying to build a tool which will show shut down start, finish, and duration in a holistic view so conflicts between sites can be identified.
    It will also audit the relationship between SAP revision dates and the actual scheduled dates.
    It has inputs from a Primavera excel extract on one sheet.
    I can get the cell I want populated to show me the start and finish dates of the shutdown, but I want the dates in-between populated so I can conditional format the text to show a coloured view.
    So
    To get column J populated, I used the following formula
    J518=G518&H518
    G518 =IF(ISNA(VLOOKUP(E518,'Primavera Start'!$A:$B,2,FALSE))," ",VLOOKUP(schedule!E518,'Primavera Start'!$A:$B,2,FALSE))
    H518= =IF(ISNA(VLOOKUP(F522,'Primevera Finish'!$A:$B,2,FALSE))," ",VLOOKUP(schedule!F522,'Primevera Finish'!$A:$B,2,FALSE))

    Ideally, what I want J518 to be is =if(G518&H518=””,G517, G518&H518
    So
    If G518 and H518 is blank, show me the cell above, if not blank show me G518&H518.
    But for some reason, regardless if cell G518&H518 is blank, it shows it as populated.

    Any help will be great.

    If I can pull this off, I will dance!
    Last edited by BobbyH; 09-24-2012 at 12:40 AM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,962

    Re: problem with 'IF' function

    Please post a sample workbook:
    When you are in Advanced reply, click on the paperclip to open the upload window.

    View Pic
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    09-23-2012
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: problem with 'IF' function

    hi mate,

    please see attached sample spreadsheet
    i had to cull lots off but will give the gist of what i'm trying to achieve
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,962

    Re: problem with 'IF' function

    Try:
    =IF(AND(ISBLANK(G9),ISBLANK(H9)),J8,H9&G9)
    Edit: sorry that won't work, try:
    =IF(AND(LEN(G8)=1, LEN(H8)=1),J8,H9&G9)
    Last edited by protonLeah; 09-23-2012 at 10:22 PM.

  5. #5
    Registered User
    Join Date
    09-23-2012
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: problem with 'IF' function

    spot on mate
    thanks a ton!
    *does a dance*

+ Reply to Thread

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