Single or double

James Clear

Board Regular
Joined
Jul 12, 2021
Messages
139
Office Version
  1. 365
  2. 2016
  3. 2013
  4. 2010
Platform
  1. Windows
Hi team,

I need urgnet help tp dervie whether single or double basis amount and premium

For example = let us say amount is 18000 and it has 2 premiums ( 252 & 504 ) then against 504 it should come as DOUBLE and against 252 it should come as SINGLE in the applicant column

Please help me basis excel version 365 ( Maybe by Let function )



AmtPremiumApplicant
18,000504Double
18,000252Single
20,000280Single
20,000560Double
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Try this, idk for ur logic, but i just know the logic is : if data Bigger = Double and Smaller = Single

*If there’s any unclear information please let me know :)

=LET(A,FILTER($H$2:$H$5,$G$2:$G$5=G2),B,INDEX($H$2:$H2,MATCH(G2,$G$2:$G2,1)),IF(B=MAX(A),"Double","Single"))

1699609767807.png
 
Upvote 0
Solution
This seems to work too.

Book1
GHI
1AmtPremiumApplicant
218,000504Double
318,000252Single
420,000280Single
520,000560Double
Sheet1
Cell Formulas
RangeFormula
I2:I5I2=IF(AND(COUNTIF(G:G,G2)>1,H2=MAXIFS($H$2:H5,$G$2:G5,G2)),"Double","Single")
 
Upvote 0
The reason I didn't do it that way is that it doesn't work if there isn't a matching pair.

In this case, it seems like it should say Single for 18,000 as there is only 1 item.

AmtPremiumApplicant
18,000​
504​
Double
20,000​
280​
Single
20,000​
560​
Double
 
Upvote 0

Forum statistics

Threads
1,215,352
Messages
6,124,451
Members
449,161
Latest member
NHOJ

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