+ Reply to Thread
Results 1 to 5 of 5

Having only rows which are respectively filled

  1. #1
    Forum Contributor
    Join Date
    10-07-2015
    Location
    Tehran - Iran
    MS-Off Ver
    2013
    Posts
    111

    Having only rows which are respectively filled

    Please look at below spreadsheet. I have 9 rows from 1 to 9. There are some empty cells between the numbers. I want to return only rows which are respectively filled in front of their rows where the result is generated between columns F to I (just like below spreadsheet). In fact, the results are only rows of 2, 3, 4, 7 and 9
    How can I do it?

    A B C D E F G H I
    1 1 5 23
    2 32 56 32 56
    3 3 6 7 3 6 7
    4 5 33 5 33
    5 63 71
    6 11 84
    7 334 97 12 334 97 12
    8 224 57
    9 13 89 43 534 13 89 43 534

  2. #2
    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
    52,933

    Re: Having only rows which are respectively filled

    If you had intended to upload a sample workbook, I think you forgot to add it

    If you did not intend to upload a sample workbook, I suggest you do, showing a small sample of what you are working with, and what your expected outcome would look like.
    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

  3. #3
    Forum Contributor
    Join Date
    10-07-2015
    Location
    Tehran - Iran
    MS-Off Ver
    2013
    Posts
    111

    Re: Having only rows which are respectively filled

    Sorry. I have not permission to upload a photo. Let me try to upload attached excel file.
    Attached Files Attached Files

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Having only rows which are respectively filled

    F1=IFERROR(IF(COUNTBLANK(INDEX($A1:$D1,MATCH(1,INDEX(--($A1:$D1<>""),0),0)):INDEX($A1:$D1,MATCH(99^99,$A1:$D1))),"",INDEX(INDEX($A1:$D1,MATCH(1,INDEX(--($A1:$D1<>""),0),0)):INDEX($A1:$D1,MATCH(99^99,$A1:$D1)),COLUMNS($F1:F1))),"")
    Please Login or Register  to view this content.
    OR
    =IFERROR(IF(SUMPRODUCT(((FREQUENCY(($A1:$D1<>"")*COLUMN($A1:$D1),($A1:$D1="")*COLUMN($A1:$D1)))>0)*1)-(COUNTBLANK($A1:$D1)>0)=1,INDEX(INDEX($A1:$D1,MATCH(1,INDEX(--($A1:$D1<>""),0),0)):INDEX($A1:$D1,MATCH(99^99,$A1:$D1)),COLUMNS($F1:F1)),""),"")
    Please Login or Register  to view this content.
    Try this and copy across
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  5. #5
    Forum Contributor
    Join Date
    10-07-2015
    Location
    Tehran - Iran
    MS-Off Ver
    2013
    Posts
    111

    Re: Having only rows which are respectively filled

    Thank you very much for your answer. Your formula as well as works.

+ 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. find filled colour rows and blank rows
    By lovinguy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-13-2014, 05:26 PM
  2. [SOLVED] I need to keep my filled rows from changing.
    By TomRet in forum Excel General
    Replies: 6
    Last Post: 02-17-2014, 01:52 AM
  3. Replies: 1
    Last Post: 08-21-2012, 11:41 AM
  4. [SOLVED] fitting more rows if a new row is filled in
    By Megatronixs in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-21-2012, 03:00 AM
  5. count filled and empty rows till the last filled row
    By Dalal in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-29-2011, 04:32 AM
  6. Sum Rows without coloured filled
    By seanyeap in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-18-2009, 12:22 AM
  7. Last 4 filled in rows formula?
    By danchan22 in forum Excel General
    Replies: 1
    Last Post: 04-18-2007, 09:57 AM

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