Sum If Function Needed: Rows w/ Text, Need Total in Numbers

lalaland999

New Member
Joined
May 21, 2015
Messages
4
Hi! I'm trying to use Excel to meal plan (weird, I know).

Anyway, here's what the spreadsheet looks like:
2uo2y5d.jpg


What I'm trying to do is a If Sum function I believe. Each day, I need a tally of the number of colors (green, purple, red, yellow, blue, orange and TSP). The column will contain text and not numbers. So, if on Day 1, I want to eat apples 3 times that day (all in the purple row), the total (which doesn't appear in this image - it's at the bottom of the 5 sections) should be 3.

Does that make sense? I can clarify. Essentially, I want a total # for every row that has text in it. (I'm a novice so go easy on me!) I've tried a few different Sum If functions to no avail. If someone could provide me with the appropriate function, I would appreciate it! Thanks in advance.
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Maybe either the COUNTIFS or SUMPRODUCT formula below will work for you.
Changes ranges to match your data.
Excel Workbook
ABCD
1Day 1
2GreenCant.
3PurpleShak.
4Red
5Yellow
6Blue
7Orange
8TSP
9
10Green
11Purpleapple
12Red
13YellowOat
14Blue
15Orange
16TSP
17
18Totals
19Green11
20Purple22
21Red00
22Yellow11
23Blue00
24Orange00
25TSP00
Sheet
 
Upvote 0
Thank you so much for that! That seems to work. :) Follow up question - not sure if this would work. If I wanted two items in one cell - say, apples and pears...if I use a comma to separate, will Excel let me parse those out as two answers vs. one?
 
Upvote 0
There's probably a better way, but this should work.
It is an array formula and must be entered with
Excel Workbook
ABC
2GreenCant.
3PurpleShak.
4Red
5Yellow
6Blue
7Orange
8TSP
9
10Green
11Purpleapple, pear
12Red
13YellowOat
14Blue
15Orange
16TSP
17
18
19Totals
20Green1
21Purple3
22Red0
23Yellow1
24Blue0
25Orange0
26TSP0
CTRL-SHIFT-ENTER.
 
Upvote 0

Forum statistics

Threads
1,215,664
Messages
6,126,101
Members
449,292
Latest member
Mario BR

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