Hard Question - Chatbot failed with multpile attempts

pban

New Member
Joined
Aug 13, 2024
Messages
2
Office Version
  1. 365
Hello, I have a simple yet very hard challenge to realise given the limited excel capability.

For example, I am working with a table within sheet Table1!A:C. In another tab I have one dynamic range A1# and other dynamic range B1# taken from some other source. Both are different in row counts as they're dynamic, yet they are linked with information in Table1. Range A1# has matching values in column Table!A:A and range B1# has matching values in column Table!B:B.

What I want to find and sum, is the matching data (it is a number defining by how much of A there is in B, typical bill of materials example) in column Table1!C:C. There may be multiple output results, hence why xlookup is out, and filter with sumif is unable to perform a calculation with these # dynamic ranges.

Has anyone found an example or has a solution that works in this case?

A close result gives me =FILTER(Table1!B:C,ISNUMBER(MATCH(Table1!A:A;A1#,0))) where I get the matched column B:B and C:C in an array. However I have no idea how to then combine column B:B with input B1# to then match the values C:C as final value.

Any help would be much appreciated.
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
I can't solve your problem directly, but you can get something like 'sumifs' to work using arrays instead of ranges (See spilling F2):

MrExcelPlayground23.xlsx
ABCDEF
1SalespeopleMonthSalesSalepeopleTotal
2JamesJan5James64
3FredJan43Fred62
4HarryJan5Harry81
5JamesFeb5
6FredFeb6
7HarryFeb7
8JamesMar45
9FredMar4
10HarryMar3
11JamesApr2
12FredApr5
13HarryApr64
14JamesMay7
15FredMay4
16HarryMay2
Sheet17
Cell Formulas
RangeFormula
E2:E4E2=UNIQUE(Table10[Salespeople])
F2:F4F2=MMULT(--(TOROW(Table10[Salespeople])=E2#),Table10[Sales])
Dynamic array formulas.
 
Upvote 0
Hi & welcome to MrExcel.

Can you post some sample data, along with expected results.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
Thanks for the replies, I managed to solve the issue using lambda and byrow with the let and sumproduct (also within Table1 I needed to neglect headers with a transpose to make sumproduct work).

=LET(categories,B1#,results,SUMPRODUCT((Table1!A2:A1000=TRANSPOSE(categories))*(ISNUMBER(MATCH(Table1!A2:A1000,A1#,0)))*Tabel1!C2:C1000),results)
 
Upvote 0
Solution

Forum statistics

Threads
1,223,884
Messages
6,175,174
Members
452,615
Latest member
bogeys2birdies

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top