+ Reply to Thread
Results 1 to 16 of 16

Syntax for choose col with array match with another

  1. #1
    Forum Contributor
    Join Date
    06-22-2015
    Location
    India
    MS-Off Ver
    MS Excel 2024
    Posts
    133

    Syntax for choose col with array match with another

    Hi,

    I am using below formula but giving me value error.

    Please Login or Register  to view this content.
    Kindly can anyone rectify the code where it has gone wrong.

  2. #2
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Syntax for choose col with array match with another

    This part of the formula [A3:A2198=LUX!C6:C1236] creates a array of 2196 (2198-3+1) rows and 1 column. The first 1231 elements are TRUE or FALSE, The rest is #N>A.

    With this you can never filter a table with 1231 rows and 18 columns.

    To prevent a value error you need for this table a filter with booleans that consists of 1231 rows (and 1 column) or consist of 18 columns (and 1 row).

  3. #3
    Forum Contributor
    Join Date
    06-22-2015
    Location
    India
    MS-Off Ver
    MS Excel 2024
    Posts
    133

    Re: Syntax for choose col with array match with another

    So,then how can I get 11th column of LUX sheet by matching existing sheet range A3:A2198 with that of LUX sheet range C6:C1236 and if any of existing range not found will be zero.

    What would be the expected formula in this situation.

  4. #4
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Syntax for choose col with array match with another

    Please upload a small sample sheet and show us what you want (with manually added expected results).

  5. #5
    Forum Contributor
    Join Date
    06-22-2015
    Location
    India
    MS-Off Ver
    MS Excel 2024
    Posts
    133

    Re: Syntax for choose col with array match with another

    Quote Originally Posted by HansDouwe View Post
    Please upload a small sample sheet and show us what you want (with manually added expected results).


    Ok,let me give some time.
    Last edited by Ekac; 01-10-2024 at 11:16 PM.

  6. #6
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Syntax for choose col with array match with another

    almost like is not enough.

    To help you further, I need an example that fits the formula you tried, but with a maximum of 20 rows including manually indicating the expected results.

  7. #7
    Forum Contributor
    Join Date
    06-22-2015
    Location
    India
    MS-Off Ver
    MS Excel 2024
    Posts
    133

    Re: Syntax for choose col with array match with another

    I have tried with another function index and match function,
    Please Login or Register  to view this content.
    This seems to work but why not above #Post 1 function works.

  8. #8
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Syntax for choose col with array match with another

    Nice you found a solution by your own .

    but why not above #Post 1 function works.
    I explained that in detail in post #2.

    To prevent a value error you need for this table a filter with booleans that consists of 1231 rows (and 1 column) or consist of 18 columns (and 1 row),but A3:A2198=LUX!C6:C1236 returns a filter that exists of 1231 booleans and 865 cells with#N/A. Because that does not match FILTER returns in that case #VALUE.

  9. #9
    Forum Contributor
    Join Date
    06-22-2015
    Location
    India
    MS-Off Ver
    MS Excel 2024
    Posts
    133

    Re: Syntax for choose col with array match with another

    Is there is an alternative to above index match formula in O365.

  10. #10
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Syntax for choose col with array match with another

    This formula does exactly the same thing as your formula in Post #7:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you want to omit the rows with 0, try
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  11. #11
    Forum Contributor
    Join Date
    06-22-2015
    Location
    India
    MS-Off Ver
    MS Excel 2024
    Posts
    133

    Re: Syntax for choose col with array match with another

    Can u use Choosecols function,I think I like this function to use.

  12. #12
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Syntax for choose col with array match with another

    For example:

    Please Login or Register  to view this content.

  13. #13
    Forum Contributor
    Join Date
    06-22-2015
    Location
    India
    MS-Off Ver
    MS Excel 2024
    Posts
    133

    Re: Syntax for choose col with array match with another

    Hi,

    I have applied your formula at H3 in master sheet. But it is pulling data wrong.I have mentioned my result at I column.From Lux Sheet,K column data is to be pulled by matching C column.

    with that of A column of master sheet.Hence,looking for Choose Cols function.

    I have attached the file for your kind reference.
    Attached Files Attached Files

  14. #14
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,774

    Re: Syntax for choose col with array match with another

    Try this:

    Please Login or Register  to view this content.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  15. #15
    Forum Contributor
    Join Date
    06-22-2015
    Location
    India
    MS-Off Ver
    MS Excel 2024
    Posts
    133

    Re: Syntax for choose col with array match with another

    As per sample demo it is pulling correct data but when used in my real workbook it gives some wrong results.Is there any other similar formula that can be tested.

  16. #16
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,774

    Re: Syntax for choose col with array match with another

    You need to provide sample data to show it FAILING. We cannot amend it or suggest alternatives without seeing realistic data.

+ 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. Choose with array function
    By ramesh27 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-15-2023, 01:11 PM
  2. [SOLVED] Is it possible to use a defined array as the first argument in CHOOSE()?
    By XLOOKUP in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-08-2016, 02:14 PM
  3. [SOLVED] Looping thru arrays with dynamic names. Array1/2/3/5, how to array(Array & i) syntax?
    By graym463 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-24-2015, 10:15 AM
  4. Matching text in an array with text in a table - Application.Match syntax help?
    By reach78 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-23-2015, 06:03 PM
  5. [SOLVED] Choose maximum value out of a number of values that match certain criterias from an array
    By Alderdeiry Mohamed in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-02-2015, 10:11 AM
  6. [SOLVED] CHOOSE Function (Automatic) - Automatic Choose Array
    By dluhut in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-13-2013, 03:22 PM
  7. =choose formula with CSE array?
    By snikrs11 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-23-2011, 06:33 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