Forum Discussion
D_P-971
Apr 02, 2023Copper Contributor
Microsoft for Home 2019 Excel version 2023 build 16627.20212
The following formula works but is limited to querying 64 values in a single cell. I have
Row 1 Col A Col B Col C Col D
Row 2 Date Description Check # Tax Category Identified
Row 3 1/1/2023 Withdrawal Transfer to Loan 0004 Loan Payment
D3 formula: limited to 64 query values per cell =IF(ISNUMBER(SEARCH("loan",B3)),"Loan Payment","*")
I want to query by array to circumvent this limitation.
I have played with vloopkup, match, and index but have not succeeded yet. If there is a formula which can do what I require, please point me to it. If the columns need to be rearranged or if any of the columns need to be resorted, please let me know.
Sort by date low to high Sort A to Z Literal match to Col B Calculated
R1 Col A Col B Col C Col D
R2 THE SHERWIN WILL Hellenbrands Shop Supplies Raw Material
R3 US TREASURY Sherman Raw Material Taxes
R4 Debit HELLENBRANDS ACE Treasury Taxes Shop Supplies
R5 Debit USPS USPS Office Expenses Office Expenses
Desired Formula for D2:D5: For each individual row, if the values in col A are found in Col B, return same row values from Col C to Col D.
- NikolinoDEGold Contributor
Maybe you can use an array formula to query by array in Excel.
Here’s an example of how you can use it:
=IFERROR(INDEX($C$2:$D$5,SMALL(IF($A$3=$B$2:$B$5,ROW($B$2:$B$5)-ROW($B$2)+1),ROWS($D$2:D2)),COLUMN(A1)),"")
This formula will return the values from columns C and D if the value in column A matches the value in column B.
You can adjust the ranges to match your data.
Array formula: Ctrl+Shift+Enter.
I hope that helps!
I know I don't know anything (Socrates)