Formula help - a IF And formula (maybe)?

deboz

New Member
Joined
Jul 28, 2008
Messages
8
Hi Excel Guru's

I am getting myself beyond confused with an excel formula and would really appreciate some help. I am using Excel 365.

I have a sheet I use to track the cost of exams. In column F I have a IF statement to determine the cost of the exam based on the exam type. I now also need to the formula to look at column G to change the price depending if is a voucher, courier or self Print.

In cell F6, I would like a formula that does something like this:
If cell D6 equals ITIL 4 Foundation, then the base cost would be E19, and then if G6 equals voucher then the price would be G19 ((or if G6 equals Courier then the price would be F19))

Is this possible? I would really appreciate the help as I have confused myself so much nothing is making sense now.

I hope I have added the Mini Sheet correctly.

Regards
Deb


Tracking Sheet test formula.xlsx
ABCDEFGHLMQRSTU
1COURSE DETAILSInvoiceSUPPLIER INVOICES
2Date OrderedSemdetExam DateExam TypeNo. OrderedTotal cost of order ($)Deliver Methodtesting columnrec'dTotal No Exams UsedRateNo. Exams inv'dTotal Due Invoice No.Discount
3FALSEFALSE0$0.00
4FALSEFALSE0$0.00
5FALSEFALSE0$0.00
628/4/21YVF-VIR-001ITIL 4 Foundation6$1,501.20Voucher2805/5/216$280.006$1,680.0029580
727/4/21YDD-VIR-008ITIL 4 Foundation10$2,800.00Voucher28028/4/2110$280.0010$2,800.0028639
819/4/21IT4-VIR-00JITIL 4 Foundation16$4,003.20Voucher28027/4/2116$280.0016$4,480.0026412
99/4/21YRN-SYD-00116/04/21ITIL 4 Foundation10$2,502.00Self Print250.220/4/216$250.206$1,501.2026320
107/4/21IT4-BRI-00EITIL 4 Foundation10$2,502.00COURIER250.226/4/216$250.206$1,537.2027977
1129/3/21IT4-VIN-003ITIl 4 MPT3$1,155.60Voucher30/3/213$280.003$840.0021373
1225/3/21YNK-VIR-001ITIL 4 Foundation14$3,502.80Voucher26/3/2114$280.0014$3,920.0020265
1322/3/21YDR-VIR-003ITIL 4 Foundation13$3,252.60Voucher23/3/2113$280.0013$3,640.0019307
1427/1/21IT4-VIN-003ITIL 4 Foundation5$1,251.00Voucher7/10/145$280.005$1,400.005394
1518/1/21IT4-VIR-00FITIL 4 Foundation7$1,751.40Voucher19/1/217$280.007$1,960.003242
16
17Resit Cost
18excl GSTBase CostPaperWebAU + GST
19ITIL Foundation$244.00$250.20$280.00$280.00
20ITIl 4 MPT$379.00$385.20$415.00$415.00
21ITIl 4 Specialist$379.00$385.20$415.00$415.00
22ITIL Practitioner$379.00$385.20$415.00$415.00
Exam
Cell Formulas
RangeFormula
R3:R15R3=M3
S3:S5,S9:S10S3=SUM(Q3*R3+J3)-U3
S6:S7,S14:S15S6=SUM(Q6*R6)-U6
S8,S11:S13S8=SUM(Q8*R8)
Q3:Q5,Q9:Q10Q3=IF(D3="ITIL 4 Foundation",$F$19,IF(D3="ITIL 4 MBT",$F$20,IF(D3="ITIL4 Specialist",$F$21,IF(D3="ITIL Practitioner",$F$22))))
H6:H10H6=IF(G6="Voucher",280,250.2)
F3:F6,F8:F10,F12:F15F3=IF(D3="ITIL 4 Foundation",$F$19*E3,IF(D3="ITIL 4 MBT",$F$20*E3,IF(D3="ITIL4 Specialist",$F$21*E3,IF(D3="ITIL Practitioner",$F$22*E3))))
F7F7=E7*280
F11F11=IF(D11="ITIL 4 Foundation",$F$19*E11,IF(D11="ITIL 4 MPT",$F$20*E11,IF(D11="ITIL4 Specialist",$F$21*E11,IF(D11="ITIL Practitioner",$F$22*E11))))
F19:F22F19=E19+6.2
G19:G22G19=E19+36
H19:H22H19=G19
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E19Cell Value>TODAY()textNO
E19Cell Value>(TODAY)textNO
E20:E22Cell Value>TODAY()textNO
E20:E22Cell Value>(TODAY)textNO
F19:F22Cell Value>TODAY()textNO
F19:F22Cell Value>(TODAY)textNO
H20:I20Cell Value="Voucher"textNO
C14:C15Cell Value>TODAY()textNO
C14:C15Cell Value>(TODAY)textNO
C1,F17,C23:C1048576,C15:C16,C3:C13Cell Value>TODAY()textNO
H21:I22Cell Value="Voucher"textNO
C1,F17,C23:C1048576,C15:C16,C3:C13Cell Value>(TODAY)textNO
G23:H1048576,H17:I19,G1:H16Cell Value="Voucher"textNO
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Sorry, I realise my formula does not look at E19 for the initial cost, I was working this all out as I was typing for help.
 
Upvote 0

Forum statistics

Threads
1,214,982
Messages
6,122,575
Members
449,089
Latest member
Motoracer88

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