Can you shorten this formula?= IF($D2>=50000, 50, IF($D2>=49000, 49, IF($D2>=48000, 48, IF($D2>=47000, 47, IF($D2>=46000, 46, IF($D2>=45000, 45, ...

saikatsarkar

New Member
Joined
Sep 12, 2023
Messages
1
Platform
  1. Windows
I'm on Google Sheets
Can you shorten this formula?

= IF($D2>=50000, 50, IF($D2>=49000, 49, IF($D2>=48000, 48, IF($D2>=47000, 47, IF($D2>=46000, 46, IF($D2>=45000, 45, IF($D2>=44000, 44, IF($D2>=43000, 43, IF($D2>=42000, 42, IF($D2>=41000, 41, IF($D2>=40000, 40, IF($D2>=39000, 39, IF($D2>=38000, 38, IF($D2>=37000, 37, IF($D2>=36000, 36, IF($D2>=35000, 35, IF($D2>=34000, 34, IF($D2>=33000, 33, IF($D2>=32000, 32, IF($D2>=31000, 31, IF($D2>=30000, 30, IF($D2>=29000, 29, IF($D2>=28000, 28, IF($D2>=27000, 27, IF($D2>=26000, 26, IF($D2>=25000, 25, IF($D2>=24000, 24, IF($D2>=23000, 23, IF($D2>=22000, 22, IF($D2>=21000, 21, IF($D2>=20000, 20, IF($D2>=19000, 19, IF($D2>=18000, 18, IF($D2>=17000, 17, IF($D2>=16000, 16, IF($D2>=15000, 15, IF($D2>=14000, 14, IF($D2>=13000, 13, IF($D2>=12000, 12, IF($D2>=11000, 11, IF($D2>=10000,10, IF($D2>=9000, 9, IF($D2>=8000, 8, IF($D2>=7000, 7, IF($D2>=6000, 6, IF($D2>=5000, 5, IF($D2>=4000, 4, IF($D2>=3000, 3, IF($D2>=2000, 2, IF($D2>=1000, 1, IF($D2>=0, 0, ""))))))))))))))))))))) )))))))))) )))))))))) ))))))))))
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Welcome to the forum, maybe something like the below:
Excel Formula:
=--IF(LEN(A1)=5,LEFT(A1,2),IF(LEN(A1)=4,LEFT(A1,1),0))
 
Upvote 0
Try:

Excel Formula:
=IF($D2<0,"",INT(MIN($D2,50000)/1000))
 
Upvote 0

Forum statistics

Threads
1,215,639
Messages
6,125,968
Members
449,276
Latest member
surendra75

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