Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

adding value cell if

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Adding value to cell if word is in another cell

Adding value to cell if word is in another cell

ResolvedVersion 365

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

RE: adding value to cell if word is in another cell

Hi Jens,

That worked perfectly, thank you very much,

Kerri

Excel tip:

Manually rotating a 3D chart

To manually rotate a 3D chart;
Select the chart (edit mode) and click on one corner of the chart display area. A selection border will appear, using the left mouse button on one of the chart's "corners" (mouse pointer changes to a cross) drag the image which becomes a line representation of the chart (as you begin to drag) and rotate the chart to a view of your choice.
If you dont get it right first time, dont worry, the manoeuver is a little bit tricky.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.