Shortening formula

shimaa01234

Active Member
Joined
Jun 24, 2014
Messages
446
Can Shortening this formula
=IF(X6="Successful","Not choose",IF(AND(X6="Residuum",SUM(SUM(IF(E6<$E$5,$E$5-E6),IF(I6<$I$5,$I$5-I6),IF(M6<$M$5,$M$5-M6),IF(Q6<$Q$5,$Q$5-Q6),IF(U6<$U$5,$U$5-U6)),W6)<$W$5),"choose","Not choose"))
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Any chance you can post a sample and what you are trying to accomplish exactly?
 
Upvote 0
This is an example of what is required?
ItalianEnglishFrench GeographyGeneral Mathematics
Business yearHalf yearLast yearTotalBusiness yearHalf yearLast yearTotalBusiness yearHalf yearLast yearTotalBusiness yearHalf yearLast yearTotalBusiness yearHalf yearLast yearTotalTotalresultChoose or not choose
1020205010202050612123081616406121230200
525 520 312 416 312100
6914.529.5910.51130.54.57.55.517.581513.536.55.59.59.524.5138.5Successfulnot choose
1113399.521.527.5312.51510165.588.52275ResiduumChoose
39.512.5258492117.5513.51214111366.5ResiduumChoose
625139.53.5720473.514.5779.523.55.54.57.517.588.5Residuumnot choose
7.510.515331157111381110.529.55.547.51789.5Residuumnot choose

<colgroup><col span="20"><col><col><col span="2"></colgroup><tbody>
</tbody>
 
Upvote 0
Hi

Try :-
Code:
=IF(AND($X6="Residuum",SUM((E6<$E$5)*($E$5-E6),(I6<$I$5)*($I$5-I6),(M6<$M$5)*($M$5-M6),(Q6<$Q$5)*($Q$5-Q6),(U6<$U$5)*($U$5-U6),W6)<$W$5),"Choose","Not Choose")

hth
 
Upvote 0

Forum statistics

Threads
1,216,038
Messages
6,128,447
Members
449,453
Latest member
jayeshw

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