Need a formula for Net Sales

sweetfriend9

New Member
Joined
May 10, 2024
Messages
2
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
Hi ,
I need a formula for Net Sales, to fetch the total from Table to Net Sales Column for vegetables, Fruits, Milk in Credit and Cash columns
Untitled.jpg
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Welcome to the Board!

So, why not just reference the cells from your total row in your Net Sales listing?

I have a feeling there is more detail that you aren't telling us.
Things like:

Does the data grow?
If so, how is that done?
Is the Total row always the last row?

In order to write any formulas, we need to know what cells these all exist in (and you haven't shown that in your screen print).
What exact rows/columns is the main data table in?
What exact rows/columns is the Net Sales data grid in?

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
Thanks Joe for your prompt response !
yes the data grows by date and is done manually , most likely the Total row is the last row.
I was referencing the net sales from the table itself but may cause error as it is done manually .
Is there a way to upload my excel file so that you have a better understanding of my requirements
Thanks
 
Upvote 0
Hello - try the following
=SUMPRODUCT((--($B$3:$G$10)*($B$2:$G$2=B$13)*($B$1:$G$1=$A14)*($A$3:$A$10<TODAY()))))*100/120

Hope this helps
 
Upvote 0
CreditCash
Vegetables
1041.6667​
1915.8333​
Fruits
0​
0​
Milk
0​
333.33333​

Hi - just to note that referring to the above formula, Vegetables, Fruits & Milk are in range A14;A16 and Credit And Cash are in B13 & C13 respectively.
 
Upvote 0

Forum statistics

Threads
1,216,159
Messages
6,129,210
Members
449,493
Latest member
JablesFTW

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