+ Reply to Thread
Results 1 to 2 of 2

If statement - same row in 2 different columns

  1. #1
    Registered User
    Join Date
    07-13-2015
    Location
    Texas, USA
    MS-Off Ver
    2010
    Posts
    1

    If statement - same row in 2 different columns

    Hello,

    I am trying to create an if statement that will look at the exact same row as the cell I'm in, only in a different column.

    I want it to say "if('Sheet2'!F:F="A","A",if('Sheet2'!F:F="B","B",if('Sheet2'!F:F="C","C","Not Found"))) but I want it to be row specific. For example, formula entered into cell A2 on Sheet 1 to pull from B2 on Sheet 2, only hundreds of times over.

    Please help!

    -Mrs. Stewart

  2. #2
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: If statement - same row in 2 different columns

    Not sure I totally follow, but in A2 on Sheet1, try,

    =IF(SUM(COUNTIF(Sheet2!A2,{"A","B","C"})),Sheet2!A2,"Not Found")

    and copy down.

+ 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. If statement to compare hours
    By sush1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-06-2015, 09:28 AM
  2. Macro to Compare two columns and publish sheet name in case columns dont match
    By adaws in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-06-2014, 01:21 PM
  3. Replies: 2
    Last Post: 02-05-2014, 07:30 PM
  4. [SOLVED] using an if statement to compare 2 columns of data and return text information
    By VanessaF in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-18-2013, 05:47 AM
  5. Replies: 6
    Last Post: 05-30-2013, 04:58 PM
  6. What is wrong with my IF compare statement?
    By Idz21 in forum Excel General
    Replies: 5
    Last Post: 03-10-2010, 10:49 AM
  7. [SOLVED] compare time in IF statement
    By in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM

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