+ Reply to Thread
Results 1 to 5 of 5

IF value is in cell return 0 if not then return value from a selected cell

  1. #1
    Forum Contributor
    Join Date
    05-08-2013
    Location
    FLORENCE, ALABAMA
    MS-Off Ver
    Excel 2010
    Posts
    116

    IF value is in cell return 0 if not then return value from a selected cell

    Hello All,
    I am stuck on a formula. This is what I have so far:
    =IF(A2="1","0",IF(A2="2","0" If A2 doesn't contain 1 or 2 I want it to return the value in B2. I have attached an example file.
    Attached Files Attached Files

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,743

    Re: IF value is in cell return 0 if not then return value from a selected cell

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

    and drag it down
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  3. #3
    Forum Contributor
    Join Date
    10-30-2014
    Location
    England
    MS-Off Ver
    2007 / 365
    Posts
    279

    Re: IF value is in cell return 0 if not then return value from a selected cell

    Ah, beaten to the answer! Can't find how to delete this post??
    Last edited by EchoPassenger; 02-07-2019 at 05:05 PM.

  4. #4
    Forum Contributor
    Join Date
    05-08-2013
    Location
    FLORENCE, ALABAMA
    MS-Off Ver
    Excel 2010
    Posts
    116

    Re: IF value is in cell return 0 if not then return value from a selected cell

    OMG! You are awesome! Yours was so much easier. Thanks so much for the help.

  5. #5
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,743

    Re: IF value is in cell return 0 if not then return value from a selected cell

    You welcome.
    If you happy with solution please use thread tools and mark thread as SOLVED.

+ 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] Return cell value from user selected row in table
    By mattydboom1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-19-2018, 03:56 PM
  2. Find value in selected sheet, return cell value in corresponding row.
    By Tona in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-11-2015, 09:16 AM
  3. return selected Cell ; minimze function
    By tomstruis in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-20-2015, 04:18 PM
  4. [SOLVED] Return row number of selected cell
    By zanguard80 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-08-2014, 06:42 PM
  5. [SOLVED] Return Cell Address for Active/Selected Cell
    By magicaces84 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-27-2014, 11:56 AM
  6. [SOLVED] Return Selected Cell to Cell A1 on Every Sheet/Tab - VBA Macros
    By Jason Carlos in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 05-01-2014, 08:50 PM
  7. Return selected cell from Combo box
    By Jollyfrog in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-06-2010, 01:27 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