Sum & If function possible?

radley1

New Member
Joined
Feb 17, 2023
Messages
8
Office Version
  1. 365
Platform
  1. Windows
Hello!

I have some data where I need to find out the number of units of stock that have been allocated to different customers on certain days if they say "YES" to having a delivery.
The required formula would be something like

IF (Delivery day = Monday) AND (Delivery? = YES) then sum total of numbers in the row that this is applicable too to show stock used for that.

This would then return that =
NINE Cocoa Coconut Seed Bar - on Monday there are 3 customers that have Delivery = Yes and have ordered this product. Total would be 4 in B5.

Brynmor Cashew & Coconut Flapjack - on Tuesday there are 1 customer with Delivery = Yes and have ordered 10 of this product. Total would be 10 in C10.

Is there any formula that could handle this? Or any suggestions on how to get this data if it needs to be shifted around would be super helpful!

1676644030485.png
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
not quit sure i follow the customer 1 - 8 row

anyway

=IF(SUMIFS($F3:$Q3,$F$2:$Q$2,B$2)=0,"", SUMIFS($F3:$Q3,$F$2:$Q$2,B$2))
or if you want to show the 0
just
SUMIFS($F3:$Q3,$F$2:$Q$2,B$2)

Book2
ABCDEFGHI
1
2MondayTuesdayWednesdayThursdayMondayMondayTuesdayWednesday
3customer13   21
4customer2    
5customer3 1  1
6customer4    
7customer5    
8customer6  4 4
9customer7    
10customer8    
11customer9    
Sheet2
Cell Formulas
RangeFormula
B3:E11B3=IF(SUMIFS($F3:$Q3,$F$2:$Q$2,B$2)=0,"", SUMIFS($F3:$Q3,$F$2:$Q$2,B$2))


Note: Images are difficult to see , and also requires that I input all the data myself, which means I may make an error, which is very time consuming, and from my point of view less likely to get a response, if a complicated spreadsheet. Plus we cannot see any of the formulas used.

Therefore -

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC , then put the sample spreadsheet onto a share
I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed
 
Upvote 0

Forum statistics

Threads
1,215,220
Messages
6,123,693
Members
449,117
Latest member
Aaagu

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