A CHOOSEIF or LISTIF equivalent of SUMIF

TMLstan

New Member
Joined
Jul 9, 2017
Messages
26
Office Version
  1. 365
Platform
  1. Windows
I have a Nightly Report with sales data entered in rows and days of the week in columns. For simplicity sake, lets say column 1 lists the sales data (SALES in A2, COGS in A3, LABOR in A4 and OP PROFIT in A5) and the days of the week are in columns B through H with column I as WTD.

There are actually ten of these reports with a separate tab for each store.

I want to create a tab with a new report, a side-by-side comparison of the stores daily performance for the most current day. The same sales data line items as the store reports in Column A2:A4 but Stores 1 through 10 in columns B through K and a total in column L.

What I cannot figure out is a formula to pick the most current days data from each of the store reports for each line item, essentially the equivalent of a “SUMIF” formula for the CHOOSE function if that makes sense.

I would appreciate any help.
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
You could use an index/match: where your column match value will link to a cell referencing a date to view.
 
Upvote 0
I suggest that you update your Account details (click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version.

Also, that you investigate XL2BB for providing small sample data & expected results to make it easier for helpers to understand just what you have & where it is and also what you want & where it is to be.


Something like this? Note that this does require the labels in column A to be on identical rows in all worksheets.

TMLstan 2020-03-23 1.xlsm
ABCDEF
1MONTUEWEDTHUFRI
2SALES581
3COGS511
4LABOR759
5OP PROFIT435
Store 1


TMLstan 2020-03-23 1.xlsm
ABCDEF
1MONTUEWEDTHUFRI
2SALES176
3COGS378
4LABOR537
5OP PROFIT872
Store 2


TMLstan 2020-03-23 1.xlsm
ABCDEF
1MONTUEWEDTHUFRI
2SALES135
3COGS2912
4LABOR875
5OP PROFIT2122
Store 3



Formula in B2 is copied across and down.

TMLstan 2020-03-23 1.xlsm
ABCD
1Store 1Store 2Store 3
2SALES165
3COGS1812
4LABOR975
5OP PROFIT522
Summary
Cell Formulas
RangeFormula
B2:D5B2=LOOKUP(10^10,INDIRECT("'"&B$1&"'!$B"&ROW()&":$H"&ROW()))
 
Upvote 0
Updated my profile. Thank you for making me aware of that.

I'm going to need a few hours to digest and understand your suggestion. It looks good though! o_O

Thanks for the quick reply.
 
Upvote 0
Updated my profile. Thank you for making me aware of that.

Thanks for the quick reply.
You're welcome on both counts. :)
And thank you for updating your profile.

I'm going to need a few hours to digest and understand your suggestion. It looks good though! o_O
Post back with details it it needs some tweaking.
 
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,582
Members
449,089
Latest member
Motoracer88

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