+ Reply to Thread
Results 1 to 7 of 7

Return multiple values horizontally.

Hybrid View

SamCV Return multiple values... 06-05-2014, 05:53 PM
k64 Re: Return multiple values... 06-05-2014, 06:20 PM
daffodil11 Re: Return multiple values... 06-05-2014, 06:33 PM
FDibbins Re: Return multiple values... 06-05-2014, 07:18 PM
SamCV Re: Return multiple values... 06-06-2014, 07:38 AM
samba_ravi Re: Return multiple values... 06-06-2014, 01:11 AM
SamCV Re: Return multiple values... 06-06-2014, 07:50 AM
  1. #1
    Registered User
    Join Date
    06-03-2013
    Location
    Matamoros, Mexico
    MS-Off Ver
    Excel 2007
    Posts
    52

    Lightbulb Return multiple values horizontally.

    Hello to all -

    I managed to found an array formula that helps to return multiple values with a condition. Below the formula:

    Formula: copy to clipboard
    {=IFERROR(INDEX($J$4:$J$8, SMALL(IF($N4=$H$4:$H$8, ROW($H$4:$H$8)-MIN(ROW($H$4:$H$8))+1, ""), COLUMN(A$1))),"")}


    I am attaching a simple file. In cell O4 I paste the formula, and I drag it as much as I need. But my issue comes when the formula begins the calculations. I need to calculate 50 columns with over 9,000 rows each column (over 45,000 arrays). Imagine the processing load to my computer and the consuming of time.

    I want your help if there is a simpler formula to work with that allow me to obtain the same result.

    I prefer formula instead of VBA. I know VBA Codes are of great help, but I can not record VBA codes in my computer because of Office Security Settings.

    I will appreciate any help that you can give me.

    Best regards to all and please have a great day.

    Samuel Cruz.
    Matamoros, Mexico.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    08-06-2013
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2013
    Posts
    671

    Re: Return multiple values horizontally.

    Not sure what the best way is to do this. Here are a couple ideas to help.
    1. Sort your list and then use a helper column to keep track of where the values switch, and use that to do your indexing
    2. Do your calculation once and then copy and paste values so it doesn't keep updating.
    1. Include a sample workbook with an example of the result you want
    2. Use [CODE] and [FORMULA] wrappers for your VBA code or excel formulas
    3. If your question has been answered, mark the thread as SOLVED and click on the "Add Rep" star to thank whoever helped you.

  3. #3
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Return multiple values horizontally.

    I have a workbook with 294,000 rows, each with a 9-criteria array calculating spherical trigonemetry stuff; it's processor murder.
    It literally forced me to learn VB just so I could get things accomplished in my day instead of waiting for things to finish evaluating. It cut 45 minute processing down to exactly 83 seconds.

    Here's a pretty neat idea, but it only works if you don't have duplicate price values:
    1. Select all of your data
    2. Insert-> Pivot Table
    3. Row Labels - Your things
    4. Column Labels - Your prices
    5. Values - Sum of Price
    6. Copy/Paste Values of Pivot Table
    7. Select all of the prices
    8. Hit F5
    9. Special
    10. Select Blanks
    11. Hit Okay
    12. Go to Cells in the Toolbar
    13. Expand the Delete Button
    14. Choose Cells
    15. Collapse Left
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  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,048

    Re: Return multiple values horizontally.

    Sam, what are those links for on sheet1?
    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

  5. #5
    Registered User
    Join Date
    06-03-2013
    Location
    Matamoros, Mexico
    MS-Off Ver
    Excel 2007
    Posts
    52

    Re: Return multiple values horizontally.

    Hello FDibbins...

    Thank you for reply. Those are from the page where I found the formula that I mentioned. I believed I had deleted them. I adapted the formula to my ranges in Sheet1 (2). Very sorry if I introduce the links, but I wanted to show how the original formula was in case of need. So sorry for not mentioning.

    Samuel Cruz.
    Matamoros, Mexico.
    Last edited by SamCV; 06-06-2014 at 07:43 AM.

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

    Re: Return multiple values horizontally.

    Create a supporting column and use Vlookup or Index Match formula
    see the attachement
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    06-03-2013
    Location
    Matamoros, Mexico
    MS-Off Ver
    Excel 2007
    Posts
    52

    Re: Return multiple values horizontally.

    Quote Originally Posted by nflsales View Post
    Create a supporting column and use Vlookup or Index Match formula
    see the attachement
    Hello nflsales.
    I will give it a try. I'll let you know how it worked.

    Best regards!!
    Samuel Cruz.
    Matamoros, Mexico.

+ 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: 5
    Last Post: 03-28-2014, 03:50 PM
  2. [SOLVED] Formula to lookup and return multiple results horizontally sheet 1 and 2
    By Chris1234567 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-04-2014, 11:17 AM
  3. Lookup to return multiple values horizontally
    By ROBMP in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-06-2014, 01:32 PM
  4. [SOLVED] Return multiple values horizontally using vlookup
    By ThatGuyinBLue in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-03-2013, 05:02 AM
  5. return multiple values horizontally while removing duplicates
    By kingi in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-24-2013, 03:55 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