Results of SUMPRODUCT but with text?

tlrichards17

New Member
Joined
Jul 31, 2003
Messages
6
Is there a way to get the results of this formula to show the text in F1-F400 instead of 0?

=SUMPRODUCT(('Project Forecasts'!$C$1:$C$400=$A4)*('Project Forecasts'!$B$1:$B$400=$B4),('Project Forecasts'!F$1:F$400))
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
are you saying you want the contents of each cell in F1:F400 (that meets your criteria) to be concatenated and returned to one cell? if so, do you want to include a separator between the data?

kevin
 
Upvote 0
tlrichards17 said:
Is there a way to get the results of this formula to show the text in F1-F400 instead of 0?

=SUMPRODUCT(('Project Forecasts'!$C$1:$C$400=$A4)*('Project Forecasts'!$B$1:$B$400=$B4),('Project Forecasts'!F$1:F$400))

This formula expresses a situation of multiconditional summing. That is, whenever A4 holds for 'Project Forecasts'!$C$1:$C$400 and B4 for 'Project Forecasts'!$B$1:$B$400, sum corresponding numeric values in 'Project Forecasts'!F$1:F$400. If there is no numeric value in 'Project Forecasts'!F$1:F$400, the result will be 0 as it should.

However, it looks like you want to do a multiconditional (a multikey) retrieval:

=INDEX('Project Forecasts'!F$1:F$400,MATCH(1,INDEX(('Project Forecasts'!$C$1:$C$400=$A4)*('Project Forecasts'!$B$1:$B$400=$B4),0,1),0))

which is, you need to know, very expensive formula.

You'd better off if you create an additional column in 'Project Forecasts' which concatenates the values of 'Project Forecasts'!$B$1:$B$400 and 'Project Forecasts'!$C$1:$C$400. Suppose that you enter in G1 in 'Project Forecasts' and copy down:

=C1&CHAR(127)&B1

Now you can have a faster retrieval formula:

=INDEX('Project Forecasts'!F$1:F$400,MATCH($A4&CHAR(127)&$B4,'Project Forecasts'!G$1:G$400,0))
 
Upvote 0

Forum statistics

Threads
1,214,593
Messages
6,120,435
Members
448,961
Latest member
nzskater

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