+ Reply to Thread
Results 1 to 15 of 15

Pass array of data to the excel formula.

  1. #1
    Registered User
    Join Date
    02-08-2014
    Location
    Chennai
    MS-Off Ver
    Excel office 365
    Posts
    41

    Pass array of data to the excel formula.

    Dear all,

    Kindly help me to derive a formula to pass a array of value and return result for each items in the array.

    i want to pass array of data from Column C9# to formula in D9 in the filter criteria (CHOOSECOLS(FTR,$J$2)=$C9) and print the result for all cell value from Column C to Column D.


    image1.pngimage2.png


    Formula in C9:-
    Please Login or Register  to view this content.

    Formula in D column
    Please Login or Register  to view this content.



    Thank you
    Attached Files Attached Files
    Last edited by anavarathan; 03-30-2024 at 08:37 AM. Reason: updating the sample workbook

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: Pass array of data to the excel formula.

    There are instructions at the top of the page explaining how to attach your sample workbook (yellow banner: HOW TO ATTACH YOUR SAMPLE WORKBOOK). Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. The sample layout accurately matches that of your real data. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    02-08-2014
    Location
    Chennai
    MS-Off Ver
    Excel office 365
    Posts
    41

    Re: Pass array of data to the excel formula.

    thank you update the sample workbook

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: Pass array of data to the excel formula.

    Where have you mocked up your expected results?

    Explain in WORDS the LOGIC of what you are trying to do.

    Your sample workbook is full of errors - every formula refers to your personal machine. It's of no use to us like that.

    e.g.

    =COUNT(FILTER(CHOOSECOLS('C:\Users\anavs\Anavarathan\Nokia\NAM\OneWeb\Activity\Support - Mayur\FTR\FTR dashboard.xlsm'!FTR[#Data],D$6),((CHOOSECOLS('C:\Users\anavs\Anavarathan\Nokia\NAM\OneWeb\Activity\Support - Mayur\FTR\FTR dashboard.xlsm'!FTR[#Data],$J$3)=$C$6)*(CHOOSECOLS('C:\Users\anavs\Anavarathan\Nokia\NAM\OneWeb\Activity\Support - Mayur\FTR\FTR dashboard.xlsm'!FTR[#Data],$J$2)=$C9)*(ISNUMBER(SEARCH(IF($D$2="ALL","*",$D$2),CHOOSECOLS('C:\Users\anavs\Anavarathan\Nokia\NAM\OneWeb\Activity\Support - Mayur\FTR\FTR dashboard.xlsm'!FTR[#Data],$G$2))))*(ISNUMBER(SEARCH(IF($D$3="ALL","*",$D$3),CHOOSECOLS('C:\Users\anavs\Anavarathan\Nokia\NAM\OneWeb\Activity\Support - Mayur\FTR\FTR dashboard.xlsm'!FTR[#Data],$G$3))))*(ISNUMBER(SEARCH(IF($D$4="ALL","*",$D$4),CHOOSECOLS('C:\Users\anavs\Anavarathan\Nokia\NAM\OneWeb\Activity\Support - Mayur\FTR\FTR dashboard.xlsm'!FTR[#Data],$G$4)))))))
    Last edited by AliGW; 03-30-2024 at 08:28 AM.

  5. #5
    Registered User
    Join Date
    02-08-2014
    Location
    Chennai
    MS-Off Ver
    Excel office 365
    Posts
    41

    Re: Pass array of data to the excel formula.

    updated workbook

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: Pass array of data to the excel formula.

    Useless!

    No expected results, no explanation of what you are trying to do (logic).

    Sorry - can't help.

  7. #7
    Registered User
    Join Date
    02-08-2014
    Location
    Chennai
    MS-Off Ver
    Excel office 365
    Posts
    41

    Re: Pass array of data to the excel formula.

    i want to pass array of data from Column C9# to formula in D9 in the filter criteria (CHOOSECOLS(FTR,$J$2)=$C9) and print the result for all cell value from Column C to Column D.


    =COUNT(FILTER(CHOOSECOLS(FTR,D$6),((CHOOSECOLS(FTR,$J$3)=$C$6)*(CHOOSECOLS(FTR,$J$2)=$C9)*(ISNUMBER(SEARCH(IF($D$2="ALL","*",$D$2),CHOOSECOLS(FTR,$G$2))))*(ISNUMBER(SEARCH(IF($D$3="ALL","*",$D$3),CHOOSECOLS(FTR,$G$3))))*(ISNUMBER(SEARCH(IF($D$4="ALL","*",$D$4),CHOOSECOLS(FTR,$G$4)))))))

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: Pass array of data to the excel formula.

    One last try: what is the formula meant to be doing? What are your expected results? What's the logic?

    Do not simply repeat what you have already said.

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,137

    Re: Pass array of data to the excel formula.

    Your formula fails at the first step...

    CHOOSECOLS(FTR,D$6) column 102 is empty... So even if the rest is correct, it can only EVER return 0.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  10. #10
    Registered User
    Join Date
    02-08-2014
    Location
    Chennai
    MS-Off Ver
    Excel office 365
    Posts
    41

    Re: Pass array of data to the excel formula.

    i dont want to drag below formula for very long.

    Formula need to be applied/autofilled untill the values in adjacent column C and i want pass each name(values from column C) to be passed to highlighted filter criteria

    sorry for the trouble and poor presenting

    thanks for your kind support and time
    =COUNT(FILTER(CHOOSECOLS(FTR,D$6),((CHOOSECOLS(FTR,$J$3)=$C$6)*(CHOOSECOLS(FTR,$J$2)=$C9)*(ISNUMBER(SEARCH(IF($D$2="ALL","*",$D$2),CHOOSECOLS(FTR,$G$2))))*(ISNUMBER(SEARCH(IF($D$3="ALL","*",$D$3),CHOOSECOLS(FTR,$G$3))))*(ISNUMBER(SEARCH(IF($D$4="ALL","*",$D$4),CHOOSECOLS(FTR,$G$4)))))))

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,137

    Re: Pass array of data to the excel formula.

    You do not understand me. This bit:
    CHOOSECOLS(FTR,D$6)

    returns an array of zeros. There is therefore NOTHING to count!!! EITHER column 102 (d$6) which corresponds to VNET TICKET NUMBER, is incorrect, or there have to be SOME values in column 102.

  12. #12
    Registered User
    Join Date
    02-08-2014
    Location
    Chennai
    MS-Off Ver
    Excel office 365
    Posts
    41

    Re: Pass array of data to the excel formula.

    Dear that i can understand i will correct it later if any error in that part. please help me to auto fill this formula or you can give any example how to pass range of data to formula and print the result for each cells.
    Last edited by AliGW; 03-30-2024 at 01:34 PM. Reason: Please don't quote unnecessarily - use the Quick Reply button instead.

  13. #13
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,137

    Re: Pass array of data to the excel formula.

    No. YOU put some values in those cells and then manually calculate what the expected answers are.

  14. #14
    Registered User
    Join Date
    02-08-2014
    Location
    Chennai
    MS-Off Ver
    Excel office 365
    Posts
    41

    Re: Pass array of data to the excel formula.

    whether can we use let,lambda,array or vstack function to achieve

  15. #15
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: Pass array of data to the excel formula.

    Not until you provide some usable sample data with expected results mocked up.

+ 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: 7
    Last Post: 03-12-2017, 03:20 PM
  2. Replies: 0
    Last Post: 08-17-2012, 07:00 AM
  3. [SOLVED] Analyze Within An Array and Pass Back Once vs. Pass at each applicable Instance
    By AlvaroSiza in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-11-2012, 05:25 PM
  4. pass array in formula
    By parekhharsh_j in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-20-2012, 03:24 AM
  5. Pass Variable Cells into an Array Formula
    By ZLPROG in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-06-2011, 05:29 AM
  6. Read Range To Array, Then Pass Array To Function
    By ProbablyNotARealName in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-20-2010, 12:29 PM
  7. How do I pass a built array back to formula
    By sauerj in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-13-2009, 01:58 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