+ Reply to Thread
Results 1 to 6 of 6

Multiple cells referred to in IF formula query

  1. #1
    Registered User
    Join Date
    06-24-2008
    Posts
    3

    Multiple cells referred to in IF formula query

    Hi there,

    I'm trying to set up a formula that refers to 3 other cells, to display "1" where if one of the other cells (A4, B4, C4) shows "1".

    I've tried this:

    =IF(OR(A4=1,B4=1,C4=1), "1", "")

    but nothing doing!?

    Not sure if this has anything to do with it, but the contents of cells A4, B4, C4 are all as a result of single IF formulas.

    Help please!

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967
    Works for me.

    Have you got calculation set to manual?

    (Tools-options in Excel 2003 - Formulas -Calculation options in Excel 2007)
    Martin

  3. #3
    Registered User
    Join Date
    03-26-2008
    Posts
    45
    Try this:

    =IF(OR(A4=1,B4=1,C4=1), 1, "")

    since the 1 is a numerical not a text value it doesn't need quotes.

  4. #4
    Registered User
    Join Date
    06-24-2008
    Posts
    3
    Tried your suggestion but still showing "0" - is this because the cells it's referring back to dont have 'content' but the result of a formula (A4, B4, C4 all have a simple =IF(Z4=Y4,1,0)?

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Are those formulas showing

    =IF(Z4=Y4,1,0)

    or

    =IF(Z4=Y4,"1",0)

    Make sure it's the former and your formula should work

  6. #6
    Registered User
    Join Date
    06-24-2008
    Posts
    3
    Quote Originally Posted by daddylonglegs
    Are those formulas showing

    =IF(Z4=Y4,1,0)

    or

    =IF(Z4=Y4,"1",0)

    Make sure it's the former and your formula should work
    FANTASTIC! Removing the ""'s has sorted this out!

    Many many thanks - this has been driving me and a few colleagues mental for the past few days!

    Cheers!

+ 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