+ Reply to Thread
Results 1 to 5 of 5

Referenciing several cells to yield one value or another

  1. #1
    Registered User
    Join Date
    06-28-2013
    Location
    Urbana, Illinois, USA
    MS-Off Ver
    Excel 2003
    Posts
    17

    Referenciing several cells to yield one value or another

    Probably simple but can't figure out how to do the formula:
    I want a formula such that:
    If ANY of the cells A1, A2, OR A3 have a value greater than or equal to 1, then I want the value of cell A1 displayed in cell D1. If none of these 3 cells' values are equal to/greater than 1, then I want a zero in cell D1. Do I use OR or IF for this? Thanks.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Referenciing several cells to yield one value or another

    d1=if(or(a1>=1,a2>=1,a3>=1),a1,"")
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

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

    Re: Referenciing several cells to yield one value or another

    =if(countif(a1:a3,">=1"),a1,"")
    "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

  4. #4
    Registered User
    Join Date
    06-28-2013
    Location
    Urbana, Illinois, USA
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Referenciing several cells to yield one value or another

    Thank you very much! Your formula worked.( I only changed the last part so there is a zero between the quote marks instead of making D1 a blank cell-a minor change).

  5. #5
    Registered User
    Join Date
    06-28-2013
    Location
    Urbana, Illinois, USA
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Referenciing several cells to yield one value or another

    Thank you for your solution! It worked quite well. I appreciate getting such quick responses.

+ 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. Clearing Cells which yield "#N/A"
    By NicholasL in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-05-2013, 12:01 PM
  2. Bond Yield to Maturity using the Yield function in Excel
    By rahulk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-13-2009, 03:32 PM
  3. yield function
    By Ron Rosenfeld in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 12:05 PM
  4. [SOLVED] yield function
    By jeff4860 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  5. [SOLVED] Yield rate
    By Brad in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-08-2005, 09:07 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