+ Reply to Thread
Results 1 to 8 of 8

skip the row if there is a error or 0.

  1. #1
    Registered User
    Join Date
    04-01-2015
    Location
    Edmonton
    MS-Off Ver
    2007 and up
    Posts
    5

    skip the row if there is a error or 0.

    Good day,

    I'm new to this so please bare with me. I would like to have specific information from a row transferred from sheet3 to sheet4 when a name is selected on sheet3 via the drop down list in column A. If the cell is blank in column A I would like it to do nothing on sheet4. The problem I am running into is that on sheet4 it gives me error or 0 when a cell is blank in column A on sheet3. In a perfect world I would like to skip the row if there is a error or 0.

    Hope I was clear enough thanks.

    Sheet3 is transactions
    Sheet4 is account payable


    sheet3
    The information I would like transferred is Name (column A) , Date (Column B), Expense (Column D) and Description (column G)

    to

    Sheet 4
    Date (column A), Name (column B), Description (column C) and Total (column J)

    here are the formulas I have so far on sheet4
    date
    =VLOOKUP(B2;$Sheet3.A11:H28;2;FALSE())

    name
    =$Sheet3.A11

    total
    =VLOOKUP(B2;$Sheet3.A11:H28;4;FALSE())

    ideally i would like it to come out like the last image.
    Attached Images Attached Images

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: skip the row if there is a error or 0.

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. 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 demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    04-01-2015
    Location
    Edmonton
    MS-Off Ver
    2007 and up
    Posts
    5

    Re: skip the row if there is a error or 0.

    Alright here you go.
    Attached Images Attached Images
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    04-01-2015
    Location
    Edmonton
    MS-Off Ver
    2007 and up
    Posts
    5

    Re: skip the row if there is a error or 0.

    Quote Originally Posted by :) Sixthsense :) View Post
    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. 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 demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Alright here you go.
    Attached Images Attached Images
    Attached Files Attached Files

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: skip the row if there is a error or 0.

    In A2 Cell of sheet4 - Array Formula - Requires CTRL+SHIFT+ENTER


    =IFERROR(INDEX(sheet3!A$2:A$41,SMALL(IF(sheet3!$A$2:$A$41<>"",ROW(sheet3!$A$2:$A$41)-ROW(sheet3!$A$2)+1),ROWS($1:1))),"")


    Drag it down and right...

    Array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT key then hit ENTER.

    Used Iferror() which will work with Excel 2007+ versions only
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    04-01-2015
    Location
    Edmonton
    MS-Off Ver
    2007 and up
    Posts
    5

    Re: skip the row if there is a error or 0.

    Thanks for the reply. I've opened the file you sent and instead of it adding the Name (column A) , Date (Column B), Expense (Column D) and Description (column G) from sheet3 it added the whole row.

  7. #7
    Registered User
    Join Date
    04-01-2015
    Location
    Edmonton
    MS-Off Ver
    2007 and up
    Posts
    5

    Re: skip the row if there is a error or 0.

    Quote Originally Posted by :) Sixthsense :) View Post
    In A2 Cell of sheet4 - Array Formula - Requires CTRL+SHIFT+ENTER


    =IFERROR(INDEX(sheet3!A$2:A$41,SMALL(IF(sheet3!$A$2:$A$41<>"",ROW(sheet3!$A$2:$A$41)-ROW(sheet3!$A$2)+1),ROWS($1:1))),"")


    Drag it down and right...

    Array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT key then hit ENTER.

    Used Iferror() which will work with Excel 2007+ versions only
    Thanks for the reply. I've opened the file you sent and instead of it adding the Name (column A) , Date (Column B), Expense (Column D) and Description (column G) from sheet3 it added the whole row.

  8. #8
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: skip the row if there is a error or 0.

    Quote Originally Posted by SS149 View Post
    Thanks for the reply. I've opened the file you sent and instead of it adding the Name (column A) , Date (Column B), Expense (Column D) and Description (column G) from sheet3 it added the whole row.
    Unable to understand what you are trying to convey...

+ 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] Macro to skip the error and process to next VBA
    By shiva_reshs in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 01-31-2013, 05:54 PM
  2. [SOLVED] VBA Error Handler - how to skip error pop ups
    By kisa500 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-17-2013, 05:58 PM
  3. Run time error 1004 skip
    By elevisse in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-30-2012, 10:34 AM
  4. Skip over a particular error
    By Helen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-01-2006, 11:25 AM
  5. On Error GoTo skip needs help
    By dan in forum Excel General
    Replies: 2
    Last Post: 04-24-2006, 01:35 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