+ Reply to Thread
Results 1 to 7 of 7

IF statement help. If Adjacent cell is empty then..

  1. #1
    Registered User
    Join Date
    05-04-2015
    Location
    Canada
    MS-Off Ver
    Excel for Mac
    Posts
    19

    IF statement help. If Adjacent cell is empty then..

    Hi guys!

    (see attached)

    I'm wondering if anyone can help with an IF statement problem I'm working on.

    I'm dealing with 2 worksheets here. The destination worksheet (attached) and a primary worksheet (attached) where the destination sheet is pulling from.

    I'd like the text in column B (i.e."Upstairs" and "Exterior") on the destination sheet to become bold IF, on the primary sheet, there is no content (or an empty cell) in the adjacent cell.

    Please let me know if you have any suggestions or if I can clarify anything.

    Thanks!
    Attached Images Attached Images
    Last edited by wizzle89; 06-14-2015 at 05:21 PM.

  2. #2
    Registered User
    Join Date
    06-05-2014
    Posts
    13

    Re: IF statement help. If Adjacent cell is empty then..

    Greetings,

    You could use conditional formatting with if statement to flag empty cell on adjacent cell.
    Example
    Under Conditional formatting
    New Rule
    Format only cells that contain blanks.

    Hope this helps

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: IF statement help. If Adjacent cell is empty then..

    @ lightofchaos, Conditional Formatting does not work (yet) across files.

    @ wizzle, you could probably do this by pulling in teh data from the promary WB into hidden columns, and then basing teh CF on that. (apart from VBA, Conditional Formatting is teh only way to make cells formatting change, based on other values)

    Also, Please upload a sample of your workbook, not a picture of your data. Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you
    Also, not all members can upload picture files (Company firewalls and stuff) - and, depending on what browser is being used, some pics dont even show up on the forum

    Your workbook should show a small desensitized example of the data you are working with and a manual mockup of the expected results.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    05-04-2015
    Location
    Canada
    MS-Off Ver
    Excel for Mac
    Posts
    19

    Re: IF statement help. If Adjacent cell is empty then..

    thanks for the responses guys.
    @FDibbins, ok I'll make sure to do that.

    I think I can just get away with having an IF statement and some sort of conditional formatting added into all of column B on the destination sheet.

    I'm not sure what the column B formula bar would look like though, something like: ='ES CALCULATOR-COPY'!B8,, IF column C cells have no data then Bold the corresponding cell in Column C.

    (attached is a sample workbook and the desired bolded text)
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: IF statement help. If Adjacent cell is empty then..

    Hello
    From B6 down on 'Scope of Work' tab, the following Conditional Formatting formula set to Bold Font:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    DBY

  6. #6
    Registered User
    Join Date
    05-04-2015
    Location
    Canada
    MS-Off Ver
    Excel for Mac
    Posts
    19

    Re: IF statement help. If Adjacent cell is empty then..

    Quote Originally Posted by DBY View Post
    Hello
    From B6 down on 'Scope of Work' tab, the following Conditional Formatting formula set to Bold Font:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    DBY
    Hi DBY,

    when I apply the OFFSET formula, it replaces the cell contents with True and False values. True on the cells that need bolding. How would you suggest using your provided formula and conditional formatting together to achieve the desired outcome?

  7. #7
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: IF statement help. If Adjacent cell is empty then..

    Hi
    It's a Conditional Formatting formula, it's not placed in the cells. See attached image.

    CF dialogue Screenshot.jpg

    Select the range of cells and Conditional formatting 'New Rule'.
    Last edited by DBY; 06-15-2015 at 02:46 PM.

+ 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. [SOLVED] Automatically lookup and set an empty cell's value if adjacent cell is typed & vice versa
    By RedSummer in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-22-2015, 12:16 PM
  2. Do not return a value when adjacent cell in two columns of data is empty
    By randinator in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-03-2014, 01:53 PM
  3. [SOLVED] autofill until adjacent cell empty
    By Hassan1977 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 09-03-2013, 01:54 PM
  4. Replies: 1
    Last Post: 02-06-2008, 08:23 AM
  5. Finding Adjacent empty cell
    By s1ip in forum Excel General
    Replies: 1
    Last Post: 07-14-2006, 03: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