What formula to be used

loknathmondal

New Member
Joined
Sep 1, 2015
Messages
31
Hi,

I have huge data which has lakhs of rows in excel

I want get the reward column to be filled automatically by using formula.

1. If a customer earns 225 points in any Quarter he will get Mango.
2. If a customer earns 450 points (225 points any qrt+ 225 points any qrt) in any 2 Quarter he will get Banana.
3. If a customer earns 700 points (225 points any qrt+ 225 points any qrt + 250 points any qrt) in any 3 Quarter he will get Apple.
4. If a customer earns 850 points (225 points any qrt+ 225 points any qrt + 225 points any qrt +175 points any qrt) in any 4 Quarter he will get Orange.

Data Given below.

SRNoCustomer NameQrt 1 - PointQrt 2 - PointQrt 3 - PointQrt 4 - PointReward
1A. Edwin 102319881731354
2A.ISMAIL539741624246
3A.Koteswararao595293256305
4A.Nagaraju118042659595816
5A.p Srivastav6474481059189
6A K DAS0305760328
7A Shankar46378882447
8A sudhakar98830969628
9A TRINATH REDDY41426864954
10A.M.Babu24470536428
11A.Madhu57626226027
12A.RAMA RAO579491460127
13A.SAIDULU82710486733
14A.Venkateswarao136254378434
15AVISHEK .011652721380
16AADHI NARAYAN81306318569
171.SK JALAL UDDIN 1.SK JALAL UDDIN00071
1811.DHARADHAR SARDAR 11.DHARADHAR SARDAR002630
1927.JIKIRIA SK 27.JIKIRIA SK001370
203.LAXMIRAM MURMU 3.LAXMIRAM MURMU005000
2133.SIRAJUDDIN SK 33.SIRAJUDDIN SK00283235
224.GHOSTHO GOPAL DAS 4.GHOSTHO GOPAL DAS00472363
23SUDHOY LOHAR048350125
24Shibu5421280
25A MALLESWARAN .23045570
26A MANI A MANI00722145
27A Manivel00540
28A MIDYA0020
29A MONDAL0100
30A MONDAL0020
31A MURTHY 034930
32ZASIMUDDIN SEKH0020699
33ZASIR AHEMAD .0612097
34ZATTAR000435
35Zaved bhai323724257219
36Zaveri Shah001734356
37ZAWADUL834117321012682
38ZAWED3103282320
39ZAWED KHAN00156366
40ZAYED ALI00310

<colgroup><col><col><col span="4"><col></colgroup><tbody>
</tbody>


<tbody>
</tbody>

what formula i can use on this excel sheet
and there is lakhs of rows in the excel sheet.


Regards
Loknath
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
"1. If a customer earns 225 points in any Quarter he will get Mango"
=> it means at least 225 or exactly 225
the same for others
 
Upvote 0
You could try this:

Code:
=IF(SUM(C3:F3)>=850,"Orange",IF(SUM(C3:F3)>=700,"Apple",IF(SUM(C3:F3)>=450,"Banana",IF(C3>=225,"Mango",IF(D3>=225,"Mango",IF(E3>=225,"Mango",IF(F3>=225,"Mango","")))))))

Manipulate the cell references as needed. Then drag or auto-fill to the end of your data.
 
Upvote 0
1. If a customer earns 225 points in any Quarter he will get Mango.
2. If a customer earns 450 points (225 points any qrt+ 225 points any qrt) in any 2 Quarter he will get Banana.
3. If a customer earns 700 points (225 points any qrt+ 225 points any qrt + 250 points any qrt) in any 3 Quarter he will get Apple.
4. If a customer earns 850 points (225 points any qrt+ 225 points any qrt + 225 points any qrt +175 points any qrt) in any 4 Quarter he will get Orange.

Loknath

Hi,

I don't think OP is Just looking for the Total score for the rankings, this is what I believe OP wants according to his description:


Book1
ABCDEFG
1SRNoCustomer NameQrt 1 - PointQrt 2 - PointQrt 3 - PointQrt 4 - PointReward
21A. Edwin102319881731354Orange
32A.ISMAIL539741624246Orange
43A.Koteswararao595293256305Orange
54A.Nagaraju118042659595816Orange
65A.p Srivastav6474481059189Orange
76A K DAS0305760328Apple
87A Shankar46378882447Apple
98A sudhakar98830969628Apple
109A TRINATH REDDY41426864954Apple
1110A.M.Babu24470536428Apple
1211A.Madhu57626226027Apple
1312A.RAMA RAO579491460127Apple
1413A.SAIDULU82710486733Apple
1514A.Venkateswarao136254378434Apple
1615AVISHEK .011652721380Apple
1716AADHI NARAYAN81306318569Apple
18171.SK JALAL UDDIN 1.SK JALAL UDDIN00071Not a Winner
191811.DHARADHAR SARDAR 11.DHARADHAR SARDAR002630Mango
201927.JIKIRIA SK 27.JIKIRIA SK001370Not a Winner
21203.LAXMIRAM MURMU 3.LAXMIRAM MURMU005000Mango
222133.SIRAJUDDIN SK 33.SIRAJUDDIN SK00283235Banana
23224.GHOSTHO GOPAL DAS 4.GHOSTHO GOPAL DAS00472363Banana
2423SUDHOY LOHAR048350125Mango
2524Shibu5421280Not a Winner
2625A MALLESWARAN .23045570Mango
2726A MANI A MANI00722145Mango
2827A Manivel00540Not a Winner
2928A MIDYA0020Not a Winner
3029A MONDAL0100Not a Winner
3130A MONDAL0020Not a Winner
3231A MURTHY034930Not a Winner
3332ZASIMUDDIN SEKH0020699Not a Winner
3433ZASIR AHEMAD .0612097Not a Winner
3534ZATTAR000435Mango
3635Zaved bhai323724257219Orange
3736Zaveri Shah001734356Banana
3837ZAWADUL834117321012682Orange
3938ZAWED3103282320Apple
4039ZAWED KHAN00156366Mango
4140ZAYED ALI00310Not a Winner
Sheet57
Cell Formulas
RangeFormula
G2=CHOOSE(IF(AND(COUNTIF(C2:F2,">=225")>=3,MIN(C2:F2)>=175),1,IF(AND(COUNTIF(C2:F2,">=225")>=3,COUNTIF(C2:F2,">=250")>=1),2,IF(COUNTIF(C2:F2,">=225")>=2,3,IF(COUNTIF(C2:F2,">=225")>=1,4,5)))),"Orange","Apple","Banana","Mango","Not a Winner")


G2 formula copied down.
 
Upvote 0
Hi,

I don't think OP is Just looking for the Total score for the rankings, this is what I believe OP wants according to his description:

ABCDEFG
1SRNoCustomer NameQrt 1 - PointQrt 2 - PointQrt 3 - PointQrt 4 - PointReward
21A. Edwin102319881731354Orange
32A.ISMAIL539741624246Orange
43A.Koteswararao595293256305Orange
54A.Nagaraju118042659595816Orange
65A.p Srivastav6474481059189Orange
76A K DAS0305760328Apple
87A Shankar46378882447Apple
98A sudhakar98830969628Apple
109A TRINATH REDDY41426864954Apple
1110A.M.Babu24470536428Apple
1211A.Madhu57626226027Apple
1312A.RAMA RAO579491460127Apple
1413A.SAIDULU82710486733Apple
1514A.Venkateswarao136254378434Apple
1615AVISHEK .011652721380Apple
1716AADHI NARAYAN81306318569Apple
18171.SK JALAL UDDIN 1.SK JALAL UDDIN00071Not a Winner
191811.DHARADHAR SARDAR 11.DHARADHAR SARDAR002630Mango
201927.JIKIRIA SK 27.JIKIRIA SK001370Not a Winner
21203.LAXMIRAM MURMU 3.LAXMIRAM MURMU005000Mango
222133.SIRAJUDDIN SK 33.SIRAJUDDIN SK00283235Banana
23224.GHOSTHO GOPAL DAS 4.GHOSTHO GOPAL DAS00472363Banana
2423SUDHOY LOHAR048350125Mango
2524Shibu5421280Not a Winner
2625A MALLESWARAN .23045570Mango
2726A MANI A MANI00722145Mango
2827A Manivel00540Not a Winner
2928A MIDYA0020Not a Winner
3029A MONDAL0100Not a Winner
3130A MONDAL0020Not a Winner
3231A MURTHY034930Not a Winner
3332ZASIMUDDIN SEKH0020699Not a Winner
3433ZASIR AHEMAD .0612097Not a Winner
3534ZATTAR000435Mango
3635Zaved bhai323724257219Orange
3736Zaveri Shah001734356Banana
3837ZAWADUL834117321012682Orange
3938ZAWED3103282320Apple
4039ZAWED KHAN00156366Mango
4140ZAYED ALI00310Not a Winner

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet57

Worksheet Formulas
CellFormula
G2=CHOOSE(IF(AND(COUNTIF(C2:F2,">=225")>=3,MIN(C2:F2)>=175),1,IF(AND(COUNTIF(C2:F2,">=225")>=3,COUNTIF(C2:F2,">=250")>=1),2,IF(COUNTIF(C2:F2,">=225")>=2,3,IF(COUNTIF(C2:F2,">=225")>=1,4,5)))),"Orange","Apple","Banana","Mango","Not a Winner")

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>



G2 formula copied down.

Thanks a lot.

Really appreciated.


Regards
Loknath
 
Upvote 0

Forum statistics

Threads
1,214,834
Messages
6,121,873
Members
449,056
Latest member
ruhulaminappu

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