Frequency Comparison Formula

yessir

Board Regular
Joined
Jun 7, 2019
Messages
91
Im looking for a formula to tell me which company has a higher frequency at the same location and disregards the information if the start location is unique to that company.

(C1 stands for Company 1)

A
B
C1
Start locationFrequency
EEE1
AAA2
FFF2
BBB2
CCC6
GGG2
DDD2
HHH1
III1
JJJ1


(C2 stands for Company 2)
D
E
C2​
Start locationFrequency
LLL7
AAA8
MMM5
BBB3
CCC2
NNN2
OOO7
DDD1
PPP1
QQQ2


For example: it would look like this
Strat LocationFrequency
AAAC2 Higher
BBBC2 Higher
CCCC1 Higher
DDDC1 Higher
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
How about this?

Book1
ABCDE
1ABDE
2C1C2
3Start locationFrequencyStart locationFrequency
4EEE1NALLL7
5AAA2C2 HigherAAA8
6FFF2NAMMM5
7BBB2C2 HigherBBB3
8CCC6C1 HigherCCC2
9GGG2NANNN2
10DDD2C1 HigherOOO7
11HHH1NADDD1
12III1NAPPP1
13JJJ1NAQQQ2
Sheet2
Cell Formulas
RangeFormula
C4:C13C4=IF(ISNUMBER(MATCH(A4,$D$4:$D$13,0)),IF(INDEX($E$4:$E$13,MATCH(A4,$D$4:$D$13,0))>B4,"C2 Higher","C1 Higher"),"NA")
 
Upvote 0
Yes that worked beautifully. However, if the frequency for both are the same is it possible to input into the function somewhere that would say "Same" if the frequency was the same?
 
Upvote 0
How about this?

Book1
ABCDE
1ABDE
2C1C2
3Start locationFrequencyStart locationFrequency
4EEE1#N/ALLL7
5AAA2EqualAAA2
6FFF2#N/AMMM5
7BBB2C2 HigherBBB3
8CCC6C1 HigherCCC2
9GGG2#N/ANNN2
10DDD2C1 HigherOOO7
11HHH1#N/ADDD1
12III1#N/APPP1
13JJJ1#N/AQQQ2
Sheet2
Cell Formulas
RangeFormula
C4:C13C4=LOOKUP(B4/INDEX($E$4:$E$13,MATCH(A4,$D$4:$D$13,0)),{0,1,2},{"C2 Higher","Equal","C1 Higher"})
 
Upvote 0
I am having some trouble with the formula. I don't think it is comparing the correct numbers as for some Locations even though i can see the frequencies are not Equal it displays "Equal". Below is an example. Any help is appreciated!

ABCDE
AAA6C1 HigherIII
6​
BBB9
#N/A​
JJJ
3​
CCC6C2 HigherLLL
3​
DDD3C2 HigherMMM
4​
EEE10EqualHHH
6​
FFF1C2 HigherLHR
1​
GGG1EqualEEE
8

I am using the formula you provided me with @irobbo314 (thank you!). =LOOKUP(B4/INDEX($E$4:$E$13,MATCH(A4,$D$4:$D$13,0)),{0,1,2},{"C2 Higher","Equal","C1 Higher"}) in column C.
 
Upvote 0
I thought I was clever with the lookup formula. This should do it.

can-you-find-the-pattern.xlsx
ABCDE
1ABCDE
2AAA6.00EqualIII6.00
3BBB9.00#N/AAAA6.00
4CCC6.00C2 HigherCCC8.00
5DDD3.00#N/AMMM4.00
6EEE10.00C1 HigherHHH6.00
7FFF1.00#N/ALHR1.00
8GGG1.00#N/AEEE8.00
Sheet1
Cell Formulas
RangeFormula
C2:C8C2=IF(INDEX($E$2:$E$8,MATCH(A2,$D$2:$D$8,0))=B2,"Equal",IF(INDEX($E$2:$E$8,MATCH(A2,$D$2:$D$8,0))<B2,"C1 Higher","C2 Higher"))
 
Upvote 0

Forum statistics

Threads
1,214,982
Messages
6,122,575
Members
449,089
Latest member
Motoracer88

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