How can add best two integers from different three sheets

nskatoch

Board Regular
Joined
Dec 30, 2013
Messages
53
Office Version
  1. 365
Platform
  1. Windows
How can add best two integers from different three worksheets.

I have three sheets PWT1,PWT2,PWT3. How i can add best two integers of same cell oo three diffent sheets.
I have used following formula but it not works:

=IFERROR(SUM(LARGE('PWT1'!C6:'PWT2'!C6:'PWT3'!C6,1),LARGE('PWT1'!C6:'PWT2'!C6:'PWT3'!C6,2)),"")
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
=if(and(ptw1!C6<ptw2!C6,ptw1!C6<ptw3!c6,ptw2!C6+ptw3!C6............

you now need to see if ptw2!c6 is the smallest, if it is add 1 and 3, if it is not you know 3 is smallest so add 1 and 2
 
Upvote 0
How can add best two integers from different three worksheets.

I have three sheets PWT1,PWT2,PWT3. How i can add best two integers of same cell oo three diffent sheets.
I have used following formula but it not works:

=IFERROR(SUM(LARGE('PWT1'!C6:'PWT2'!C6:'PWT3'!C6,1),LARGE('PWT1'!C6:'PWT2'!C6:'PWT3'!C6,2)),"")
I am not sure you need the IFERROR function call (if you do, add it back in). Give this formula a try...

=MAX(PWT1!C6,PWT2!C6,PWT3!C6)+MEDIAN(PWT1!C6,PWT2!C6,PWT3!C6)
 
Last edited:
Upvote 0
Try this if the sheets are consecutive...

SUM(LARGE(PWT1:PWT3!C6,1),LARGE(PWT1:PWT3!C6,2))



Or this...

SUM(PWT1!C6,PWT2!C6,PWT3!C6)-MIN(PWT1!C6,PWT2!C6,PWT3!C6)
 
Upvote 0
=if(and(ptw1!C6<ptw2!c6,ptw1!c6<ptw3!c6,ptw2!c6+ptw3!c6............
< ptw2!C6,ptw1!c6 < ptw3!C6), ptw2!C6+ptw3!C6,......................
you now need to see if ptw2!c6 is the smallest, if it is add 1 and 3, if it is not you know 3 is smallest so add 1 and 2</ptw2!c6,ptw1!c6<ptw3!c6,ptw2!c6+ptw3!c6............
 
Upvote 0

Forum statistics

Threads
1,215,509
Messages
6,125,216
Members
449,215
Latest member
texmansru47

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