+ Reply to Thread
Results 1 to 4 of 4

IF ELSE type statement

Hybrid View

  1. #1
    Registered User
    Join Date
    02-25-2011
    Location
    Nottingham
    MS-Off Ver
    Excel 2007
    Posts
    11

    IF ELSE type statement

    My brain has melted and I just can't think anymore...

    I'm trying to copy numbers from two fields into one like this: IF Field1 = 0 copy data from Feild2 BUT IF Field1 >0 copy data from Field1

    I've tried a few attempts and seem to be failing

    Any help much appreciated.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: IF ELSE type statement

    Perhaps ...

    =IF(A1<>0,A1,C1)

    A1=field1
    C1=field2
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    02-25-2011
    Location
    Nottingham
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: IF ELSE type statement

    Quote Originally Posted by Fotis1991 View Post
    Perhaps ...

    =IF(A1<>0,A1,C1)

    A1=field1
    C1=field2
    Brilliant.
    Many, many, thanks.

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: IF ELSE type statement

    ..................

+ 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