+ Reply to Thread
Results 1 to 8 of 8

"IF" to "IFERROR" (or other formula) help by skipping empty cells

  1. #1
    Registered User
    Join Date
    08-03-2013
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    2

    Post "IF" to "IFERROR" (or other formula) help by skipping empty cells

    Hi all

    Background:
    I've been trying to get excel to skip empty cells within the row so that it brings up the next TRUE value. Currently my table of info is like this (on sheet1):

    B C D E
    Date (B) Receiver/Payee (C) Method (D) Amount (E)
    01/08/2013 (B) JE (C) cash (D) £29.70 (E)

    Currently formula (on sheet2):
    =IF(Sheet1!C3="JE", Sheet1!E3,"")

    Problem:
    This shows all FALSE values as empty cells.

    Request:
    I've searched for quite a while and saw some people give examples using other types of formulae which I've tried but without success at tailoring it to my need. I would like the final formula to show the Date, Method, and Amount if arguments are TRUE (each in a separate column) without any blanks on a new sheet.

    Thanks in advance and feel free to ask me for clarifications
    Last edited by slack578; 08-10-2013 at 10:59 AM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: "IF" to "IFERROR" (or other formula) help by skipping empty cells

    Hi, and welcome to the forum.

    Upload your workbook and manually add some examples of your expected results, with notes if it's not blindingly obvious how you've arrived at them.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: "IF" to "IFERROR" (or other formula) help by skipping empty cells

    Hi,

    Assuming your source table data begins in row 2 (with headers in row 1) and ends in row 100, enter this array formula (confirm with CTRL+SHIFT+ENTER, not just ENTER), and copy down and across to the right as required:

    =IFERROR(INDEX(Sheet1!$B$2:$E$100,SMALL(IF(Sheet1!$C$2:$C$100="JE",ROW(Sheet1!$C$2:$C$100)-MIN(ROW(Sheet1!$C$2:$C$100))+1),ROWS($1:1)),COLUMNS($A:A)),"")

    Obviously amend those ranges to suit your actual requirements.

    Regards
    Last edited by XOR LX; 08-10-2013 at 11:26 AM.
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: "IF" to "IFERROR" (or other formula) help by skipping empty cells

    @Richard Buttrey

    You don't appear to be accepting private messages, so I will apologise in this thread for having posted my reply to the OP. I was working on the solution whilst you posted so I did not see your request.

    Regards

  5. #5
    Registered User
    Join Date
    08-03-2013
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: "IF" to "IFERROR" (or other formula) help by skipping empty cells

    @XOR
    Thanks for the speedy answer. Saved me a lot of time trying to understand other people's examples. Where's that star...can't seem to find it.

    @Richard
    I presume you don't need the example spreadsheet anymore? Thanks for the reply as well =)

  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: "IF" to "IFERROR" (or other formula) help by skipping empty cells

    You're welcome.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: "IF" to "IFERROR" (or other formula) help by skipping empty cells

    XOR Richard only asked ror a sample workbook, the OP did not "break" any forum rules, so you were perfectly fine in responding to the question as you did
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  8. #8
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: "IF" to "IFERROR" (or other formula) help by skipping empty cells

    Cheers, FDibbins (back already, eh? ). Thought I might've been in breach of Rule 7 (?), so just wanted to let Richard know.

+ 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. Replies: 4
    Last Post: 03-02-2012, 02:17 PM
  2. Replies: 5
    Last Post: 10-12-2010, 06:46 AM
  3. Why does =countif(range,"<>""") count empty cells?
    By Ingeniero1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-16-2008, 01:40 PM
  4. Replies: 4
    Last Post: 02-03-2008, 05:11 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