formula needed..

tygrl510

Board Regular
Joined
Feb 9, 2009
Messages
54
Hi,

I have a list of products with similar names, i.e. Lemon, Lemon Meringue, Apple, Apple Pie, etc. with values in one sheet.

Excel Workbook
BCDEF
5PRODCY10 Q1CY10 Q2CY10 Q3CY10 Q4
6Lemon105203
7Lemon Meringue30154560
8Lemon Juice3567
9Apple105203
10Apple Pie30154560
11Apple Juice3567
Sheet1
Excel Workbook
BCDEF
13PRODCY10 Q1CY10 Q2CY10 Q3CY10 Q4
14Lemon43257170
15Apple43257170
Excel 2007 I'd like to create a second sheet that would add the values based on the common name Sheet1
Excel 2007



Is there a formula that can do this?

Thanks in advance for your help.

Rio
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Enter the following array formula (confirm with ctrl+shift+enter) into C14 of sheet 2, then copy across and down.

=SUM(IF(ISNUMBER(SEARCH($B14,Sheet1!$B$6:$B$11)),IF(Sheet1!$C$5:$F$5=C$13,Sheet1!$C$6:$F$11)))
 
Upvote 0
Hi Niel,

Thanks for the formula. The value it's giving me is zero. I'm not sure what to change.

Thanks in advance for your assistance.

Rio
 
Upvote 0
When you enter the formula into the cell, don't just press enter. Press Ctrl+Shift+Enter at the same time. If you do this correctly, the formula will appear in the cell, surrounded by curly brackets "{" and "}"
 
Upvote 0
Hi Niel,

I redid the formula with the crtl+shift+enter..and it came with the "{" "}", but it still returns zeros.

Thanks,
Rio
 
Upvote 0
The formula definitely works but I can't post a screenshot as I'm at work. Are your ranges on both sheets identical to the sample you posted in your original post?
 
Upvote 0
No, they are on separate sheets. One is called "Top Products", the other "Top Products Comparison".

Rio
 
Upvote 0
Then you'll need to change all references to Sheet1 to the name of the sheet that holds your data.
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,730
Members
452,939
Latest member
WCrawford

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