Use of two formulas

ryanrimsky

New Member
Joined
Apr 6, 2023
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi,

I'm trying to relieve some stress and make our spreadsheets easier.
We have a weird process, so the payment method (Card, Direct Debit, Apple Pay, Bank Transfer, etc) determines where we put the gross value in.
Card and Apple pay payments go through as 'Card'.
Direct Debit and Bank Transfer go through as 'Bank'.

I want to add a formula to automatically calculate the VAT and NET from whichever cell is filled with the gross value.
Sorry if this is confusing or I haven't explained it too well.

Book1
ABCDEFG
1DatePayment DetailsPayment Method Bank Card VAT Net
206/04/2023Example 1Card£ 100.00
306/04/2023Example 2Direct Debit£ 20.00
407/04/2023Example 3Apple Pay£ 50.00
508/04/2023Example 4Bank Transfer£ 200.00
Sheet1
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
if the other columns are blank - how about using MAX() or SUM()
and then the formula to either add vat or calculate

not sure what you need here

if its 20% already included
then
Max(D2,E2)

Book6
ABCDEFG
1DatePayment DetailsPayment Method Bank Card VAT Net
245022Example 1Card10016.666666783.3333333
345022Example 2Direct Debit203.3333333316.6666667
445023Example 3Apple Pay508.3333333341.6666667
545024Example 4Bank Transfer20033.3333333166.666667
Sheet1
Cell Formulas
RangeFormula
F2:F5F2=(MAX(D2:E2)/1.2)*0.2
G2:G5G2=MAX(D2:E2)/1.2
 
Upvote 0

Forum statistics

Threads
1,215,085
Messages
6,123,030
Members
449,092
Latest member
ikke

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