Need Help with Simple Formula

bamaisgreat

Well-known Member
Joined
Jan 23, 2012
Messages
831
Office Version
  1. 365
Platform
  1. Windows
I have a simple spreadsheet that I use to keep up with sales. I have C4 that has price sold for and D4 that shows the 9% sales tax. I have a total at the end that simply adds them together and shows the total. I have recently added 2 columns for Credit Card charges 1 that figures 3% of the total sale and one that has payment method which has a dropdown that says Credit Card, Debit Card and Cash. I need the formula to look into F4 and if it says Credit Card add the amount in E4 to the total. If it says Debit or Cash do nothing else. Make Since?
This is an Example.
<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>
Price MarkedSold ForTax 9%CC 3%Way of PayTotal
Credit Card




<colgroup><col style="width: 100px"><col width="100"><col width="100"><col width="100"><col width="100"><col width="100"></colgroup><tbody>
[TD="align: right"]350.00[/TD]
[TD="align: right"]325.00[/TD]
[TD="align: right"]29.25[/TD]
[TD="align: right"]45.00[/TD]

[TD="bgcolor: #ff9900, align: right"]354.25[/TD]

</tbody>
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
=IF(F4="Credit Card", SUM(C4,D4,E4), SUM(C4,D4))
Note that SUM(C4,D4,E4) can simply be written as SUM(C4:E4)
 
Upvote 0
Thanks for all the help. Could i possibly add a formula in E4 that if F4 doesnt say Credit Card then the sum of this formula(=(C4+D4)*3%) will be 0
 
Upvote 0
I think this may help out:

In column E which is the Tax 9% field I simply put a formula of: =D4*.09

In column F which is the CC 3% field I simply put a formula of: =IF(G4="Credit Card",D4*0.03,0)

In column G which is the Way of Pay column I simply put a validation drop box list containing either "Cash", "Debit", or "Credit Card" (if you need help in creating a drop down list for this column you can look here): How to add a drop-down list to an Excel cell - TechRepublic

Then finally in column H which is called the Total field I simply put this formula: =IF(G4="Credit Card",D4+E4+F4,D4+E4)

Then I simply copied all the cells in columns E, F, and H down to fill with the same formula. I have tested this out on various examples with cash, or debit in the Way of Pay field and it doesn't calculate the 3% CC fee, it only calculates it when you select Credit Card from the drop down list in column G.


Cheers!<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>
 
Upvote 0
On more question. I have the following in D4 =C4*9% I need this to be if F4 has "Cash WPT" in it that the value is 0
 
Upvote 0
If the drop down says "Cash WPT" I need the tax cell to be 0. So in other word no tax if CASH WPT is payment method.
 
Upvote 0

Forum statistics

Threads
1,225,139
Messages
6,183,094
Members
453,147
Latest member
Bree2019

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