Using the LARGE function conditionally

Pauljj

Well-known Member
Joined
Mar 28, 2004
Messages
2,047
Ihave a column (A) with days of the week in and column B with sales figures.

I need to use the LARGE function to work out what the 1st, 2nd etc etc largest sales days are based on the day of the week. So the best Monday, the best Tuesday and so on. does anyone have any ideas on this ?

Thanks

Paul
 

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.
=LARGE(IF(WEEKDAY(A1:A40)=2,B1:B40),1)

The bolded 2 is the number to indicate Weekday.
1=Sun
2=Mon
etc..

Bolded 1 is the # to change for nth largest..

Formula Confirmed with CTRL + SHIFT + ENTER
 
Upvote 0
Ihave a column (A) with days of the week in and column B with sales figures.

I need to use the LARGE function to work out what the 1st, 2nd etc etc largest sales days are based on the day of the week. So the best Monday, the best Tuesday and so on. does anyone have any ideas on this ?

Thanks

Paul

Are the days of the week true date values?
 
Upvote 0
Hi there Jonmo, I have tried this with minor modification

LARGE(IF(WEEKDAY('2006-2007'!BS$4:BS$1500)=2,'2006-2007'!CV$4:CV$1500),ROW(A2)-ROW(A$1))

then confirming with Ctrl + **** + Enter

but I get a #VALUE error ??
 
Upvote 0
Sorry this does work, for some reason my calculations are all very slow, I think its because I have a lot of arrays on the sheet


many thanks for you help

Paul
 
Upvote 0

Forum statistics

Threads
1,224,802
Messages
6,181,054
Members
453,014
Latest member
Chris258

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