Using If and Large Formula

manloonw

New Member
Joined
Mar 18, 2021
Messages
7
Office Version
  1. 365
Platform
  1. Windows
Hi All,

Looking for a solution for the below:

New Column with either R or S. If Transaction for X, are less than 4 on 11/12/20 than all columns are "R", If more than four transaction on 11/12/20, use "R" on that transaction, all others use "S".

Can anyone help with this formula? I currently can only get the <=4 based on date.

IF(COUNTIFS(B:B,B3,C:C,C3)<=4,"R",0))
X/YDateTimeKindsTicketNet SalesTime zoneTypePrice
X
11/12/2020​
12:35Adult
5​
250​
12​
50​
X
11/12/2020​
12:35Others
2​
50​
12​
25​
X
11/12/2020​
21:30Adult
10​
750​
21​
75​
X
11/12/2020​
10:45Adult
2​
100​
10​
50​
X
11/12/2020​
12:40Adult
5​
250​
12​
50​
X
11/12/2020​
12:40Others
7​
175​
12​
25​
Y
11/12/2020​
22:15Adult
4​
300​
22​
75​
Y
11/12/2020​
22:15Others
3​
150​
22​
50​
Y
11/12/2020​
22:15Adult
4​
300​
22​
75​
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
For us here we cannot see what column are there ;)

Please use XL2BB to capture your worksheet. That way helpers here can see where you apply formula, what columns and rows.
 
Upvote 0
See if this helps:

ABCDEFGGIJKLMNO
2​
X/YDateTimeKindsTicketNet SalesTime zoneTypePriceReleaseWeekR/SLower RateO. RateIncome
3​
X
11/12/2020​
12:35Adult
5​
250​
12​
50​
Minorwk1s
0.4​
100​
4​
X
11/12/2020​
12:35Others
2​
50​
12​
25​
Minorwk1s
0.4​
20​
5​
X
11/12/2020​
21:30Adult
10​
750​
21​
75​
Minorwk1r
0.45​
337.5​
6​
X
11/12/2020​
10:45Adult
2​
100​
10​
50​
Minorwk1s
0.4​
40​
7​
X
11/12/2020​
12:40Adult
5​
250​
12​
50​
Minorwk1s
0.4​
100​
8​
X
11/12/2020​
12:40Others
7​
175​
12​
25​
Minorwk1r
0.45​
78.75​
9​
Y
11/12/2020​
22:15Adult
4​
300​
22​
75​
Minorwk1s
0.4​
120​
10​
Y
11/12/2020​
22:15Others
3​
150​
22​
50​
Minorwk1r
0.45​
67.5​
11​
Y
11/12/2020​
22:15Adult
4​
300​
22​
75​
Minorwk1s
0.4​
120​
 
Upvote 0
Need further explanation on:
If Transaction for X, are less than 4 on 11/12/20 means on this sample Transaction X on 11/1/2020 = 6 ?
Then all columns are R. What columns are we looking at?
If more than four transaction on 11/12/20, use "R" on that transaction, all others use S. Again where is this S should be? Are you talking about column L? If so, then I cannot understand column L is like that for S and R. Are these expected result?
 
Upvote 0
Sorry about the lack of information.

Please ignore what's currently in Column L, I'm looking for a correct formula to go in this column.

X Relates to an entity. So for example, there are only 3 transactions on Y on the 11/12/20 therefore for Column L all values should = "R"

For X, as there are more than 4 transaction on the 11/12/20, I would like Column L to have a "R" based on the top 4 the highest values (Column F) = Row 5,9, 11 & (either 3 or 7, but not both)

can this be possible done in one formula ?
 
Upvote 0

Forum statistics

Threads
1,214,645
Messages
6,120,711
Members
448,984
Latest member
foxpro

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