+ Reply to Thread
Results 1 to 4 of 4

IF function

  1. #1
    Registered User
    Join Date
    04-23-2011
    Location
    Vancouver
    MS-Off Ver
    Excel 2007
    Posts
    2

    Smile IF function

    Hello all,

    Thank you for any advice. I am normally pretty good at working these things out but today I am defeated so I am hoping theres someone here way smarter than me on formulas =)

    I have three columns of data;

    A
    B
    C

    Each have data in them although there are some blanks in B and C. What I want to accomplish is this.

    - Create column D
    - If the cell in column C is blank check column B
    - If the cell in column B is blank, check column A
    - If column A has text in it, paste this text into the corresponding cell in column D

    So basically I want excel to check each column in the order listed above. As soon as it comes across a cell with text in it, I want to copy that text into the corresponding cell in column D.

    I hope that makes sense =)

    Thank you!

  2. #2
    Registered User
    Join Date
    04-23-2011
    Location
    Vancouver
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Some help with an IF statement please

    Just to clarify, if Excel finds text in column C before reaching B or B before reaching A, I want that text copied into the cell in column D.

  3. #3
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Some help with an IF statement please

    Hi kate074 - welcome to the forum.

    Try

    =IF(C1<>"",C1,IF(B1<>"",B1,A1))

    assumes there will always be something in one of the 3 cells.
    Last edited by Cutter; 04-23-2011 at 04:53 PM. Reason: Added closing bracket

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: IF function

    =lookup(rept("z",255),a1:c1) will also do it, assuming text
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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