Formula Creation/Formula Help

Status
Not open for further replies.

yessir

Board Regular
Joined
Jun 7, 2019
Messages
91
Is there a formula that could total Freq number found in column B but only when the values in column A are the same?

ABCD
LocationFreqFreqLevel
AAA1Grew
AAA1Grew
AAA1Shrunk
BBB1Grew
BBB1Shrunk
BBB1Grew
CCC1Grew
CCC1Shrunk
CCC1Grew
CCC1Grew
CCC11No Change

Attached is an example of what the formula would output.

ABCDE
LocationFreqFreqLevelLevel Increase
AAA1Grew
AAA1Grew
AAA1Shrunk
2​
BBB1Grew
BBB1Shrunk
BBB1Grew
2​
CCC1Grew
CCC1Shrunk
CCC1Grew
CCC1Grew
CCC11No Change
4​
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
How about
=IF(A2=A3,"",COUNTIFS($B$2:$B$12,"<>",$A$2:$A$12,A2))
 
Upvote 0
Hi @Fluff it worked perfectly! Thanks. If I wanted to Add together what was in column B with the same constraints would I use the same formula but use SUMIFS instead of COUNTIFS? An example of what It would look like is listed below.

ABBDEFGH
LocationFreqTotalsFreq LevelLevel IncreaseTotals Combined
AAA1
1,000​
Grew
AAA1
4,000​
Grew
AAA
2,000​
1Shrunk
2​
7,000​
BBB1
1,000​
Grew
BBB
1,500​
1Shrunk
BBB1
1,000​
Grew
2​
3,500​
CCC1
1,000​
Grew
CCC
1,000​
1Shrunk
CCC1
1,000​
Grew
CCC1
1,000​
Grew
CCC1
1,000​
1No Change
4​
5,000​
Thanks so much for your help!
 
Upvote 0
I tried using SUMIFS but I keep getting the error message of "you've entered too few arguments" is there something I'm missing? Thanks!
 
Upvote 0
I am trying to put the totals in column H

ABBDEFGH
LocationFreqTotalsFreqLevelLevel IncreaseTotals Combined
AAA
1​
1,000Grew
AAA
1​
4,000Grew
AAA2,000
1​
Shrunk2
BBB
1​
1,000Grew
BBB1,500
1​
Shrunk
BBB
1​
1,000Grew2
CCC
1​
1,000Grew
CCC1,000
1​
Shrunk
CCC
1​
1,000Grew
CCC
1​
1,000Grew
CCC
1​
1,000
1​
No Change4
=IF(A3=A4,"",COUNTIFS($C$3:$C$13,"<>",$A$3:$A$13,A3))

This is the formula I'm using where the "A" in the first row is in cell A1 and the "B" in row 1 is in cell B1 etc... Thanks!
 
Upvote 0
What is the formula after you tried to change it?
 
Upvote 0
Ok, you need to remove "<>"
=IF(A3=A4,"",SUMIFS($C$3:$C$13,$A$3:$A$13,A3))
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,215,025
Messages
6,122,731
Members
449,093
Latest member
Mnur

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