adding value cell if

AI Training: For Busy Decision Makers & Professionals Book now

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

Adding value to cell if word is in another cell | Excel forum

resolvedResolved · Urgent Priority · Version 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

 

Training courses

 

Training information:

See also:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Excel tip:

Reconciling a list to correspond with another

May have a list that needs to make but on another sheet one list seems to be out, eg. product list one sheet contains all product and inventory data, while the other contains pricing data. Both need to match with all products but there is more products in one list than the other. To find the disparaging product compare data in the two columns that need to match Make sure that order the same way.
Create another column in the sheet that has the most items and type in the first cell


=Exact(text1,text2) text1 being the cell that you want compared with text2 cell reference. Drag to filldown and your first false will give you for first cells that does not match. Correct insert the row with data in other sheet and continue the process until all the data returns true. Delete the column inserted.

View all Excel hints and tips


Server loaded in 0.13 secs.