Sumproduct to Table...

DonkeyOte

MrExcel MVP
Joined
Sep 6, 2002
Messages
9,124
Does anyone know of a utility / function or have themselves coded something that permits an end user to analyse a given Sumproduct formula in greater detail - ie returning the results of the generated array into tabular form ?

I've just sat down thinking this would be quite useful, ie I click on any sumproduct formula and run a routine to "Analyse" which in turn generates a new sheet with a matrix of the results...

However having just started coding this myself it is now dawning on me that this could prove very difficult (read beyond my abilities) ... breaking out the formula itself etc into component parts is pretty easy but actually evaluating each part is a little more difficult.

I suspect someone knows of an elegant way to do this and I'd love to see it... it may of course be that you can do this already but I don't know how...

Thanks,
Luke
 
Last edited:
I agree entirely -- I'm very interested to see what people can come up with. Retrieving the bog standard stuff shouldn't be that much of an issue but per my prior example -- well an entirely different ball game. For ex... you would also want to return the criterion in addition to underlying values... using Aladin's example it's clear from the use of SEARCH that the initial underlying values of interest are those specified as A3:A6 however before returning those values they must be encased within "," so as to reflect what the formula is actually doing. In addition within that one component we are also going to be very interested in H3 ... but are we going to try and display both underlying values or look to break out the component into more parts... incredibly difficult.

Personally I'm wondering if this is at all feasible... time will tell... suffice to say this is far beyond my abilities so I intend to stand back and let the geniuses show us their stuff.

Incidentally where has the Schollar gone ?
We need to get him back onto this... both he & Rory have gone pretty quiet... boo.
 
Upvote 0

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
(Actually, in that formula I don't think you do need to encase in "," - but obviously there would be other cases where it would be necessary.)

It's not really about understanding SP though, is it? It's about understanding the formulas of Aladin et al - a whole new project!
 
Upvote 0
Oh to be a pedant... ;-) I think we both know that the formula was written with real life strings in mind... (ie not one character values)... anyway I guess my point was there are in effect 4 formulas in that one component -- only the outer of which is returned by the SPA sheet... question is what should be returned for the "underlying" value ? You would really need to see contents of A AND the result of the INDEX in order to decipher how that tied back to the SPA value... but working out what's crucial and what isn't is no doubt a nightmare.

Enough from me... I promise to be quiet from now on else this thread will look more like a conversation and less like what it's meant to be... the start of the "Sumproduct Revolution"
 
Upvote 0
(I wasn't being that pedantic - even with real-life strings, I don't think you need the commas. I am possibly missing something obvious. Will stop hijacking now.)
 
Upvote 0
The code I have to date will process "--ISNUMBER(SEARCH("",""&$A$3:$A$6&"","","",""&INDEX($E$3:$E$4,MATCH($H3,$F$3:$F$4,0))&"",""))" and return $A$3:$A$6.

Similalrly, --(C5=A1:A10) retums A1:A10, as does --(A1:A10=C5).

But I am trying to get it to return all ranges, and check the size against our condition bounds, and also gto manage range names.
 
Upvote 0
Just thought I'd bump this back up into people's minds... so as far as I'm aware the analysis of the result in terms of numerics is complete but we're now waiting for messrs Rory, Richard & Bob to come up with something elegant to retrieve underlying values ?

If we don't think the underlying values is going to be possible, or at least not in the immediate future I might for now just chuck what I have into an .xla for personal use and also pop it up on a couple of forums to get some serious testing done on it.

Thoughts ? Realistic expectations / timeline regards underlying values ?
 
Upvote 0
I'm leaving it to you guys for now. I don't have enough solid blocks of time to devote to a project like this that needs more than a couple of minutes here and there! :)
 
Upvote 0

Forum statistics

Threads
1,225,399
Messages
6,184,752
Members
453,254
Latest member
topeb

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