+ Reply to Thread
Results 1 to 17 of 17

extract range with not array formula

  1. #1
    Registered User
    Join Date
    05-24-2020
    Location
    greece
    MS-Off Ver
    2010
    Posts
    76

    extract range with not array formula

    hi,i need to extract c1:c5 or d1:d5 at a1:a5 if b1 =1 or 2 without an array formula ,how is that possible))?
    Attached Files Attached Files

  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
    53,051

    Re: extract range with not array formula

    perhaps this?
    =SUM(IF(B1=1,C$1:C$5,D$1:D$5))
    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
    Registered User
    Join Date
    05-24-2020
    Location
    greece
    MS-Off Ver
    2010
    Posts
    76

    Re: extract range with not array formula

    please see attachement ,i use an array formula at a1 but i need to use something else becouse arrays make the computer slower.thanks brother
    Attached Files Attached Files

  4. #4
    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,051

    Re: extract range with not array formula

    Did you even try my suggestion?

  5. #5
    Registered User
    Join Date
    05-24-2020
    Location
    greece
    MS-Off Ver
    2010
    Posts
    76

    Re: extract range with not array formula

    yesand it gives me the number 15 and if i drag down gives 40,40...

  6. #6
    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,051

    Re: extract range with not array formula

    yes, and that is the sum of col C? What were you expecting?

  7. #7
    Registered User
    Join Date
    05-24-2020
    Location
    greece
    MS-Off Ver
    2010
    Posts
    76

    Re: extract range with not array formula

    dear FDibbins ,i expect to extract the numbers to a1:a5 if b1=1 or b1=2 not to sum
    if you see my file at #3 i have an array formula which doing the jiob but i need to do the same without array.thanks
    Last edited by zzz444; 05-25-2020 at 12:45 AM.

  8. #8
    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,051

    Re: extract range with not array formula

    OK try this then...
    =INDEX($C$1:$D$5,ROWS($1:1),$B$1)

  9. #9
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,289

    Re: extract range with not array formula

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    may be this


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  10. #10
    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,051

    Re: extract range with not array formula

    Quote Originally Posted by avk View Post
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    may be this
    No, it seems the OP wants each entry extracted to col A, not summed. My 1st suggestion also did what you are trying...
    =SUM(IF(B1=1,C$1:C$5,D$1:D$5))

  11. #11
    Registered User
    Join Date
    05-24-2020
    Location
    greece
    MS-Off Ver
    2010
    Posts
    76

    Re: extract range with not array formula

    yes!,super.but when b1 is empty or zero i get at a1:a5 #VALUE! how can be just blanked?
    #VALUE!
    #VALUE!
    #VALUE!
    #VALUE!

  12. #12
    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,051

    Re: extract range with not array formula

    =if(B1-"","",INDEX($C$1:$D$5,ROWS($1:1),$B$1))

  13. #13
    Registered User
    Join Date
    05-24-2020
    Location
    greece
    MS-Off Ver
    2010
    Posts
    76

    Re: extract range with not array formula

    is still gives the same#value

  14. #14
    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,051

    Re: extract range with not array formula

    Sorry, left off the $$...
    =IF($B$1="","",INDEX($C$1:$D$5,ROWS($1:1),$B$1))

  15. #15
    Registered User
    Join Date
    05-24-2020
    Location
    greece
    MS-Off Ver
    2010
    Posts
    76

    Re: extract range with not array formula

    i wish God gives You health and happiness!!! thanks

  16. #16
    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,051

    Re: extract range with not array formula

    Happy to help, thanks for the wishes

  17. #17
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: extract range with not array formula

    Please Login or Register  to view this content.

+ 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] Extract sequentially numbered range from an array
    By BRISBANEBOB in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-15-2020, 06:26 PM
  2. Extract values with array formula/non-array formula
    By bjnockle in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-29-2020, 11:11 AM
  3. Replies: 11
    Last Post: 10-27-2016, 07:33 PM
  4. Extract 1 row of an array into a range of cells
    By luv2glyd in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-02-2015, 06:42 PM
  5. [SOLVED] How to extract data with an array formula
    By Burner1010 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-13-2015, 08:32 AM
  6. Replies: 3
    Last Post: 11-24-2011, 06:11 AM
  7. Replies: 0
    Last Post: 07-27-2005, 11:05 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