Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-10-2024, 03:06 PM
Soapm Soapm is offline Calculating Prices for Clothing Windows 10 Calculating Prices for Clothing Office 2019
Novice
Calculating Prices for Clothing
 
Join Date: Apr 2024
Posts: 6
Soapm is on a distinguished road
Question Calculating Prices for Clothing

Our church is selling logo'd clothing to the members.
I have all the orders in a spreadsheet but I can't figure out how to have it calculate pricing. Here is an example...


Code:
PR16BLK Full Zip Hoodie
Adult:
$40 (S-XL)
$45 (2X-3X)
$45 (4X-5X)
Youth:
$30 (XS-XL)
This particular item is in column C where I have the product code (PR16BLK) at the top (row 1)

I have the member names on the rows going down (3 to 27 for example)


I would like to be able to total the prices of the column depending on the size value in each cell. Example, if a person orders an XL we put that in their cell. I can even get it to display the dollar amount at the bottom using;


Code:
=IF(C6="XL",40,45)
What I can't figure out is how to add the others sizes to the equation then total them all up at the bottom?


Am I barking up the right tree? Is this something excel can do?




TIA!
Reply With Quote
  #2  
Old 04-10-2024, 07:47 PM
Logit Logit is offline Calculating Prices for Clothing Windows 10 Calculating Prices for Clothing Office 2007
Expert
 
Join Date: Jan 2017
Posts: 533
Logit is a jewel in the roughLogit is a jewel in the roughLogit is a jewel in the rough
Default

Looks like you need a different layout for your workbook. Perhaps it you could attach a sample workbook with a small amount of data .. .then include a sample sale to be reviewed.
Reply With Quote
  #3  
Old 04-10-2024, 09:27 PM
Soapm Soapm is offline Calculating Prices for Clothing Windows 10 Calculating Prices for Clothing Office 2019
Novice
Calculating Prices for Clothing
 
Join Date: Apr 2024
Posts: 6
Soapm is on a distinguished road
Default

I could tomorrow but it will take me some time to remove the privacy stuff but I'm really close right now.


What I'm doing is inserting a column next to the column I'm trying to calculate with this formula.



Code:
=IF(C3="2x", 45, IF(C3="3x", 45, IF(C3="4x", 45, IF(C3="5x", 45, IF(LEFT(C3,1)="Y", 30, 40)))))
The problem is, it's still giving me a 40 when the field is blank (this product not ordered for that person) and I don't know how to say do nothing if the field is blank.



Once I get these columns to work I can hide them and put their total underneath the row I'm calculating.
Reply With Quote
  #4  
Old 04-10-2024, 09:38 PM
Soapm Soapm is offline Calculating Prices for Clothing Windows 10 Calculating Prices for Clothing Office 2019
Novice
Calculating Prices for Clothing
 
Join Date: Apr 2024
Posts: 6
Soapm is on a distinguished road
Default

I am sure there is a much easier way to skin this cat but I think I have liftoff. This gives me the value I need in the column I'll be hiding. I can then make them sum into the visible cell with the total price.


Code:
=IF(C3="2x", 45, IF(C3="3x", 45, IF(C3="4x", 45, IF(C3="5x", 45, IF(LEFT(C3,1)="Y", 30, IF(ISBLANK(C3), "", 40))))))
Reply With Quote
  #5  
Old 04-10-2024, 11:42 PM
ArviLaanemets ArviLaanemets is offline Calculating Prices for Clothing Windows 8 Calculating Prices for Clothing Office 2016
Expert
 
Join Date: May 2017
Posts: 873
ArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud of
Default

My advice is, design your workbook more database-like. E.g.:
A sheet where all goods are registered in table like
GoodsCode, GoodsName
and define the datarange in column GoodsCode as dynamic named range (all dynamic named ranges mentioned are meant to use as sources for Data Validation lists in other tables);
A sheet where all good types are registered in a table like
GoodsType
with values like "Adult", "Youth", etc., and the datarange is defined as dynamic named range;
A sheet where all goods types and sizes are registered in goods registry table like
GoodsID, GoodsCode, GoodsType, GoodsSize, GoodsPrice
where in columns GoodsCode and GoodsType cells are defined as Data Validation List, to allow select there only goods codes registered in goods table and goods types table respectively, and the column GoodsCodeAndSize is a hidden calculated column, combined from CoodsCode, GoodsType, and GoodsSize values in same row (e.g. "Hood/Adult/XS-XL"), and again defined as Dynamic Named Range;
A sheet, where all members are registered in a table like
Member
, defined a Dynamic Named range;
All above are lookup tables, which you need to update only, when you need to add new members, or goods.

And then the data input table, like
OrderDate, Member, GoodsID, Quantity, UnitPrice, Amount
where UnitPrice is read from goods tegistry table, and Amounts is calculated as Quantity*UnitPrice.

My advice is also to define all those tables as Defined Tables, so all formulas, data validation llist, etc., are updated automatically, whenever a new row is added to table, and the filtering is added by default to all defined tables too. And it will be easy to define any column of defined table as dynamic range too.

Lock headers of all tables, so they will be always visible.

On input sheet, leave at least 2 empty rows at top of page, and into 1st row there enter the subtotal formulas to calculate the sum for filtered values in column where Amount is calculated.

The simples way to get any totals will be to set filters for input table (for OrderDate and Member columns), and the subtotal formula at top of sheet returns the wanted result.

When you want the report in table form, design a report sheet, where you at top of sheet determine e.g. order date, and in table below is displayed a summary for all members gaving ordered any goods in this order. But design of such report will be much more complicated for current post.
Reply With Quote
  #6  
Old 04-11-2024, 12:57 AM
Soapm Soapm is offline Calculating Prices for Clothing Windows 10 Calculating Prices for Clothing Office 2019
Novice
Calculating Prices for Clothing
 
Join Date: Apr 2024
Posts: 6
Soapm is on a distinguished road
Default

Quote:
Originally Posted by ArviLaanemets View Post
My advice is, design your workbook more database-like. E.g.:
A sheet where all goods are registered in table like
GoodsCode, GoodsName
and define the datarange in column GoodsCode as dynamic named range (all dynamic named ranges mentioned are meant to use as sources for Data Validation lists in other tables);
A sheet where all good types are registered in a table like
GoodsType
with values like "Adult", "Youth", etc., and the datarange is defined as dynamic named range;
A sheet where all goods types and sizes are registered in goods registry table like
GoodsID, GoodsCode, GoodsType, GoodsSize, GoodsPrice
where in columns GoodsCode and GoodsType cells are defined as Data Validation List, to allow select there only goods codes registered in goods table and goods types table respectively, and the column GoodsCodeAndSize is a hidden calculated column, combined from CoodsCode, GoodsType, and GoodsSize values in same row (e.g. "Hood/Adult/XS-XL"), and again defined as Dynamic Named Range;
A sheet, where all members are registered in a table like
Member
, defined a Dynamic Named range;
All above are lookup tables, which you need to update only, when you need to add new members, or goods.

And then the data input table, like
OrderDate, Member, GoodsID, Quantity, UnitPrice, Amount
where UnitPrice is read from goods tegistry table, and Amounts is calculated as Quantity*UnitPrice.

My advice is also to define all those tables as Defined Tables, so all formulas, data validation llist, etc., are updated automatically, whenever a new row is added to table, and the filtering is added by default to all defined tables too. And it will be easy to define any column of defined table as dynamic range too.

Lock headers of all tables, so they will be always visible.

On input sheet, leave at least 2 empty rows at top of page, and into 1st row there enter the subtotal formulas to calculate the sum for filtered values in column where Amount is calculated.

The simples way to get any totals will be to set filters for input table (for OrderDate and Member columns), and the subtotal formula at top of sheet returns the wanted result.

When you want the report in table form, design a report sheet, where you at top of sheet determine e.g. order date, and in table below is displayed a summary for all members gaving ordered any goods in this order. But design of such report will be much more complicated for current post.

Wow, wished I could do that. Most of it I can't even imagine. But now that you mention it, I could have used Access. It's been a while but I think I can still make a database to feed excel.


I pastor a church now. I was much better 10 years ago while I was still in corporate America. But at 61 I've forgotten more than I remember.
Reply With Quote
  #7  
Old 04-11-2024, 01:45 AM
ArviLaanemets ArviLaanemets is offline Calculating Prices for Clothing Windows 8 Calculating Prices for Clothing Office 2016
Expert
 
Join Date: May 2017
Posts: 873
ArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud of
Default

Quote:
Originally Posted by Soapm View Post
But at 61 I've forgotten more than I remember.
So You are then a young guy
Somewhere at your age (more than 10 years ago) I started with SQL Server databases from zero.
Reply With Quote
  #8  
Old 04-12-2024, 12:04 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Calculating Prices for Clothing Windows 10 Calculating Prices for Clothing Office 2021
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,779
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

A bit shorter
Code:
=IF(OR(C3={"2x","3x","4x","5x"}), 45, IF(LEFT(C3,1)="Y", 30, IF(ISBLANK(C3), "", 40)))
(array delimiters might vary depending on regional settings)

BTA a small sample sheet with some desensitized data and expected results would help
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #9  
Old 04-12-2024, 01:46 AM
Soapm Soapm is offline Calculating Prices for Clothing Windows 10 Calculating Prices for Clothing Office 2019
Novice
Calculating Prices for Clothing
 
Join Date: Apr 2024
Posts: 6
Soapm is on a distinguished road
Default

Quote:
Originally Posted by Pecoflyer View Post
A bit shorter
Code:
=IF(OR(C3={"2x","3x","4x","5x"}), 45, IF(LEFT(C3,1)="Y", 30, IF(ISBLANK(C3), "", 40)))
(array delimiters might vary depending on regional settings)

BTA a small sample sheet with some desensitized data and expected results would help

Sure could have used this but with my longer formula I got the task achieved. Thanks for everyone who helped, I really appreciate your assistance.
Reply With Quote
  #10  
Old 04-12-2024, 01:49 AM
Soapm Soapm is offline Calculating Prices for Clothing Windows 10 Calculating Prices for Clothing Office 2019
Novice
Calculating Prices for Clothing
 
Join Date: Apr 2024
Posts: 6
Soapm is on a distinguished road
Default

Quote:
Originally Posted by ArviLaanemets View Post
So You are then a young guy
Somewhere at your age (more than 10 years ago) I started with SQL Server databases from zero.

Do you use it regularly? I find I can still learn if I use it regularly. Otherwise, I have to make step by step instructions so I don't have to reinvent the wheel the next time.
Reply With Quote
  #11  
Old 04-14-2024, 11:22 PM
ArviLaanemets ArviLaanemets is offline Calculating Prices for Clothing Windows 8 Calculating Prices for Clothing Office 2016
Expert
 
Join Date: May 2017
Posts: 873
ArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud of
Default

Quote:
Originally Posted by Soapm View Post
Do you use it regularly?
Yes. But mostly to read data from our ERP program, process the read data, and have views in those databases to be read into Excel apps as various reports (mostly graphic ones). The security part of this schema is based on limiting the use of SQL databases data to specific domain user groups. Previously we used SQL Server also as BE for some MS Access apps too, but after the hard- and software and network management was outsourced some years ago, those fell out of use.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
creating a chart for tracking history prices happydz Excel Programming 1 12-27-2017 01:09 AM
Prices from decimals to ticks rollie Excel 1 11-17-2012 08:08 PM
earned value not calculating ketanco Project 3 08-16-2012 02:13 PM
Calculating Prices for Clothing Calculating earned value ketanco Project 3 08-13-2012 09:06 AM
Charting Help - Stock Prices Ligerdub PowerPoint 0 01-03-2012 04:59 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:49 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft