Alternative way for long formula typed with IFS

MasmaAbdulhamidli

New Member
Joined
Sep 11, 2022
Messages
22
Office Version
  1. 2016
Platform
  1. Windows
Hi. I have two sheets that I have to get data from each other. I have multiple criteria and I want to downsize my formula length. If any alternative way you know please enlighten me. In the first sheet I have 2722 rows. My criteria are performance score of employees, their score of grades and percentage of performance. I need to get value from another sheet if their performance score is 5, score of grade is 1280 and percentage below 80% get from second sheet their minimum wage limit + their promotions value from first sheet and write in first sheet. If percentage is between 80-100% then get medium wage limit from second sheet + their promotions value from first sheet, If percentage is between 100-120% then get maximum wage limit + their promotions value from first sheet. If someone's percentage limit is above 120% or their performance score is 1 then do nothing and get their data from annual year wage column. I have 42 score of grades and each one has 3 criteria: minimum, medium and maximum. For 2722 employers I need to get data. I wrote formula IFERROR, IFS and AND functions. But it is so long formula and when I want to save excel workbook it says "One or more formulas in this workbook are longer than the allowed limit of 8192 characters. Cell AC1000 contains one of these formulas". And really after 1000th row formula seems different but calculates right.
I share example with you. Thanks a lot!
Sheet 1.png
Sheet 2.png
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Your logic is incomplete so we can only guess.
ie your logic only covers Performance = K3 = 5. How does 1-4 influence the number returned ?
Does a score of 1150 return the 1120 rate ?

See if this gives you any ideas.
You would need to sort your rate table in ascending order (it is curently in descending order)

20240530 Lookup 2D MasmaAbdulhamidli.xlsx
ABCDE
1Score of GradeCol BPerformancePercentate of PerformanceFormula
21281673565110.00%211111
3112157432583.00%155687
Sheet1
Cell Formulas
RangeFormula
E2:E3E2=IF(C2=$K$3,IF(D2>120.01%,B2,VLOOKUP(A2,Sheet2!$B$4:$E$10,IFS(D2>100.01%,4,D2>80.01%,3,D2<80.01%,2),TRUE)),"Not 5")


Rate Table Ascending order

20240530 Lookup 2D MasmaAbdulhamidli.xlsx
BCDE
10-8080-100100-120
2
3Score of GradesMinimumMediumMaximum
41000111205139006166807
51120124549155687186824
61280140741175926211111
Sheet2
 
Upvote 0
Thank you for reply. I have fix performance scores that 1 and 5. And I have fix Score of Grades. I wrote the formula if performance = 5 then do that, if it is not true there is only option is 1 and do for 1's. I have many people in 1000th grade but their percentage are different. So I have 2722 people with different scores and performance and percentage. I need to write formula all of them
 
Upvote 0
Sort your sheet 2 ascending try the formula I gave you, then give examples of what worked and what didn't.
 
Upvote 0

Forum statistics

Threads
1,224,815
Messages
6,181,136
Members
453,021
Latest member
Justyna P

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