+ Reply to Thread
Results 1 to 5 of 5

Combination of a lookup and an IFNA?

  1. #1
    Forum Contributor
    Join Date
    12-08-2015
    Location
    London, England
    MS-Off Ver
    2021
    Posts
    142

    Combination of a lookup and an IFNA?

    Hello,

    I've got a sheet of data that I want to copy to another section of the workbook if these conditions are met, what I've come up with works, but leaves gaps in the table to match what it's lookingup from

    Essentially it's looking at another table and if column B says a specific text and column I is #NA then it returns the data in column A.

    This is my formula;

    IF(IF('Supplier Statement'!$B5="A SPECIFIC TEXT",IFNA('Supplier Statement'!$I5,'Supplier Statement'!$A5)),IF('Supplier Statement'!$B5="Invoice",IFNA('Supplier Statement'!$I5,'Supplier Statement'!$A5)),"")

    The problem is that it's leaving rows blank where the conditions are not met, and ideally I'd like it to populate the table with only the answers required - so if the IF is false, it doesn't pull that data across.

    I've experimented with putting a vlookup in there but it goes all squirrelly...

    Can some one please point me in the right direction?

    Cheers.

  2. #2
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Combination of a lookup and an IFNA?

    I am sure they can but an attachment would make things clearer

    Attach a sample workbook. 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 Contributor
    Join Date
    12-08-2015
    Location
    London, England
    MS-Off Ver
    2021
    Posts
    142

    Re: Combination of a lookup and an IFNA?

    Ok I think I've attached an example....
    Attached Files Attached Files

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Combination of a lookup and an IFNA?

    Please try at G4 drag across and down

    =IFERROR(INDEX($A:$D,AGGREGATE(15,6,ROW($B$2:$B$10)/($B$2:$B$10="dog")/ISNA($E$2:$E$10),ROWS(G$2:G2)),MATCH(G$1,$A$1:$D$1,)),"")

    or this and Press Ctrl+Shift+Enter drag across and down
    =IFERROR(INDEX($A:$D,SMALL(IF(($B$2:$B$10="dog")*ISNA($E$2:$E$10),ROW($B$2:$B$10)),ROWS(G$2:G2)),MATCH(G$1,$A$1:$D$1,)),"")
    Attached Files Attached Files

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

    Re: Combination of a lookup and an IFNA?

    Try in G2:
    Please Login or Register  to view this content.
    H2:
    Please Login or Register  to view this content.
    Both confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Drag H2 to I2
    Drag G2:I2 down
    Attached Files Attached Files
    Quang PT

+ 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. IFNA Formula
    By prudential in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-03-2018, 01:39 PM
  2. IFNA formula not working
    By bbeards in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 03-01-2018, 02:31 PM
  3. [SOLVED] Using IFNA in an IF Formula
    By Rocksteady in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-05-2017, 12:04 PM
  4. [SOLVED] IFNA function and text into value
    By mcgleeuw in forum Excel Formulas & Functions
    Replies: 34
    Last Post: 02-09-2017, 10:21 AM
  5. How to mix an IFNA with a IFVLOOKUP
    By Weaselwithagun in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 12-14-2016, 07:38 AM
  6. [SOLVED] Difficulty figuring out were to put IFNA
    By TheBakerBoy in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 02-25-2016, 03:00 AM
  7. [SOLVED] Lookup and Sum Combination
    By seansmithMMA in forum Excel General
    Replies: 6
    Last Post: 10-23-2015, 01:42 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