+ Reply to Thread
Results 1 to 9 of 9

If this column equals blank AND this column equals blank, return the value in this column

  1. #1
    Registered User
    Join Date
    04-19-2021
    Location
    US
    MS-Off Ver
    2016
    Posts
    3

    If this column equals blank AND this column equals blank, return the value in this column

    Hello,

    I have limited experience with excel's if,then statements. I believe I need a nested IF statement or an IF(AND) statement.
    I am trying to grab numerical values from one sheet to another based on what is in columns A and B from another sheet so that:

    [IF column A(sheet 1)=same text in column A (sheet 2)] AND [IF column G(sheet1)="Operational"] then return the value in column C(sheet 2)

    Thanks for the help!
    Attached Files Attached Files
    Last edited by pato4; 04-19-2021 at 03:21 AM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: If this column equals blank AND this column equals blank, return the value in this col

    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,191

    Re: If this column equals blank AND this column equals blank, return the value in this col

    =IF(AND(A1=Sheet2!A1,G1="Operational"),Sheet2!C1,"")

    assuming this is in Sheet1 ... blank if condition not met

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: If this column equals blank AND this column equals blank, return the value in this col

    You may find it inconvernience with blank rows within rows with data.
    Try INDEX(AGGREGATE or INDEX(MATCH to extract continuing rows without blank rows.
    Upload a sample worksheet.
    Quang PT

  5. #5
    Registered User
    Join Date
    04-19-2021
    Location
    US
    MS-Off Ver
    2016
    Posts
    3

    Re: If this column equals blank AND this column equals blank, return the value in this col

    I am trying to get values in the yellow highlighted cells in sheet 2. I am assuming that I need a different equation to populate values from each column in sheet 2. The example I previously gave was to fill in the "operational" cell.
    Attached Files Attached Files
    Last edited by pato4; 04-19-2021 at 03:16 AM.

  6. #6
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: If this column equals blank AND this column equals blank, return the value in this col

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  7. #7
    Registered User
    Join Date
    04-19-2021
    Location
    US
    MS-Off Ver
    2016
    Posts
    3

    Re: If this column equals blank AND this column equals blank, return the value in this col

    Thanks Pepe Le Mokko, my problem has not been solved yet. I see an option to "Mark this thread as solved" but not an option for "unsolved".

    I would still love feedback and I have attached a sample worksheet.

  8. #8
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: If this column equals blank AND this column equals blank, return the value in this col

    "Asset 1 " in sheet1 and "Resilience " in sheet 2 has trailing space " ". Delete it.

    Then in B2:

    =INDEX(Sheet1!$C$2:$C$2000,MATCH($A2,Sheet1!$A$2:$A$2000,0)+MATCH(B$1,Sheet1!$B$3:$B$2000,0))
    Attached Files Attached Files

  9. #9
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: If this column equals blank AND this column equals blank, return the value in this col

    Quote Originally Posted by pato4 View Post
    Thanks Pepe Le Mokko, my problem has not been solved yet. I see an option to "Mark this thread as solved" but not an option for "unsolved".
    The "unsolved" option only appears when you have marked the 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. Return blank if sum equals zero
    By tm1274 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-31-2014, 02:21 PM
  2. IF Column A equals then return value in Column B of same row - how to?
    By goatee21 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-24-2014, 11:07 PM
  3. [SOLVED] Return Text Value If Input Equals 1, but only for 1st column with Value in same Row
    By grandboricua in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-02-2013, 02:29 PM
  4. Replies: 4
    Last Post: 09-06-2012, 09:26 AM
  5. [SOLVED] Delete row if cell in Column N equal "Different" or Column P equals "Blank"
    By Cyberpawz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-17-2012, 08:25 AM
  6. Replies: 1
    Last Post: 04-03-2012, 11:33 AM
  7. An equals formula that doesn't return a blank cell
    By stanja in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-30-2009, 03:37 PM

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