Kerri has attended:
Excel Intermediate course
Excel Advanced course
Excel Dashboards for Business Intelligence course
Power BI Reporting course
Power BI Modelling, Visualisation and Publishing course
Adding value to cell if word is in another cell
Hi,
I am trying to add a value to a column based on the below data. Could anyone help with a formula to calculate the following:
If a country name is listed in the column, I need to calculate 20% of the value in another column.If no country name is listed, I just need the original value to be displayed.
so effectively:
= column a (if no data showing in column d
= 20% of column a if data is showing in column d
Sorry if Im not explaining it correctly!
GP figure before Toms Destination EU TOMS Booking TOMS
-£49.93 French Polynesia
£193.76 Cambodia
-£162.37 New Zealand (Aotearoa)
-£5,149.04 Kenya
-£20.77 France France #VALUE!
RE: adding value to cell if word is in another cell
Hi Kerri,
Thank you for the forum question.
If I understand you right the If function should look like this:
=If(D2="",A2,A2*20%)
Please let me know if it is not what you want to do.
Kind regards
Jens Bonde
Microsoft Office Specialist Trainer
Tel: 0207 987 3777
STL - https://www.stl-training.co.uk
98%+ recommend us
London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector
RE: adding value to cell if word is in another cell
Hi Jens,
Thanks so much for the speedy reply. The calculates 20% of everything, however I'm only looking to calculate the 20% from certain values. Im probably not explaining it. I have an anonomised document, is it possible to forward it as I cant seem to screenshot a table here?
Thanks
RE: adding value to cell if word is in another cell
Yes Kerri,
Send it to:
info@stl-training.co.uk
Kind regards
Jens Bonde
Microsoft Office Specialist Trainer
Tel: 0207 987 3777
STL - https://www.stl-training.co.uk
98%+ recommend us
London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector
RE: adding value to cell if word is in another cell
Great, thank you. I have just sent the attachment, thank you,
Kerri
RE: adding value to cell if word is in another cell
Hi Kerri,
I am sorry that you had to wait for an answer.
When I answered your question I assumed that when you wrote "if no data showing in column d" that you meant the cell was blank, but I can see in your worksheet that you have a zero.
I am not sure based on you explanation if you want to add 20% or want to calculate 20% of the AC column.
If you want to calculate 20% of column AC use:
=IF(AE2=0,AC2,AC2*20%)
If you want to add 20%:
=IF(AE2=0,AC2,AC2*(1_20%))
I hope this is what you want. Please let me know if it is something else.
Kind regards
Jens Bonde
Microsoft Office Specialist Trainer
Tel: 0207 987 3777
STL - https://www.stl-training.co.uk
98%+ recommend us
London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector