This site uses cookies.
Some of these cookies are essential to the operation of the site,
while others help to improve your experience by providing insights into how the site is being used.
For more information, please see the ProZ.com privacy policy.
Create a warning in Excel (characters restrictions)
Thread poster: VIELLES Ophélie
VIELLES Ophélie France Local time: 05:48 Member (2012) English to French + ...
Nov 20, 2018
Hi!
I'd like to create an automatic "script" in an Excel column that would count characters (such as NBCAR) but also display a warning when the limit is exceeded. (each string have a different limitation)
For instance :
Column A : source text
Column C : characters limitations (specific for each row) for text in column A
Column D : warning if source text (in column A) exceeds the character limit (specified in column C)
Hi!
I'd like to create an automatic "script" in an Excel column that would count characters (such as NBCAR) but also display a warning when the limit is exceeded. (each string have a different limitation)
For instance :
Column A : source text
Column C : characters limitations (specific for each row) for text in column A
Column D : warning if source text (in column A) exceeds the character limit (specified in column C)
Is there any way to create an automatic warning to achieve this?
The contents of this post will automatically be included in the ticket generated. Please add any additional comments or explanation (optional)
Michael Davies Denmark Local time: 05:48 Member (2009) Danish to English + ...
Automatic warning of excessive length
Nov 20, 2018
Bonjour Ophélie,
You could use the formula: =IF(LEN(+A4)>+B4; "WARNING"; "") in column C to display ,e.g., the text 'WARNING' if the length of the text exceeds the max. string length specified in column B.
Cordialement,
Michael
Subject:
Comment:
The contents of this post will automatically be included in the ticket generated. Please add any additional comments or explanation (optional)
Thomas T. Frost Portugal Local time: 04:48 Danish to English + ...
Also conditional formatting
Nov 20, 2018
Michael has given you the answer, although the + signs are redundant (they have no function).
An alternative is to use Conditional Formatting to change the colour of the offending cells to red (or another formatting). This eliminates the need for a separate warning column. See the screenshot.
Note that if you need to update the formula, press F2 first.
The contents of this post will automatically be included in the ticket generated. Please add any additional comments or explanation (optional)
VIELLES Ophélie France Local time: 05:48 Member (2012) English to French + ...
TOPIC STARTER
Thank you!
Nov 20, 2018
Thanks to both of you, I'll give it a try this evening (as soon as my file is ready) and let you know if it works!
Subject:
Comment:
The contents of this post will automatically be included in the ticket generated. Please add any additional comments or explanation (optional)
Stepan Konev Russian Federation Local time: 07:48 English to Russian
Just minor remarks
Nov 20, 2018
1. I guess it should be A1>B1 if I start from line 1, right?
2. If you use a CAT tool for translation, the formulas would not be updated automatically. As far as I know F2 only works for one cell at a time. To update all formulas you should use Alt+Shift+Ctrl+F9.
Subject:
Comment:
The contents of this post will automatically be included in the ticket generated. Please add any additional comments or explanation (optional)
VIELLES Ophélie France Local time: 05:48 Member (2012) English to French + ...
TOPIC STARTER
thank you, it works like a charm
Nov 22, 2018
Thanks to all of you for your kind help, the formula worked like a charm. I haven't tweaked it without the + sign though, but I'll give it a try later. I guess this post will be useful to other translators....
By the way, I'm also curious to understand the difference between using =IF(LEN and =NBCAR (suggested by one of my colleague)? (with a red warning as well). Is one solution better than the other one? Thanks again!
Subject:
Comment:
The contents of this post will automatically be included in the ticket generated. Please add any additional comments or explanation (optional)
Thomas T. Frost Portugal Local time: 04:48 Danish to English + ...
Plus and NBCHAR
Nov 22, 2018
VIELLES Ophélie wrote:
I haven't tweaked it without the + sign though, but I'll give it a try later. I guess this post will be useful to other translators....
By the way, I'm also curious to understand the difference between using =IF(LEN and =NBCAR (suggested by one of my colleague)? (with a red warning as well). Is one solution better than the other one? Thanks again!
My understanding is that the only function of the plus sign here is for Excel to accept this legacy notation from other software. The plus sign used this way has no function in Excel.
Excel does not recognise any NBCHAR function. I guess this is the name in some other software.
Subject:
Comment:
The contents of this post will automatically be included in the ticket generated. Please add any additional comments or explanation (optional)
Pastey is an innovative desktop application that bridges the gap between human expertise and artificial intelligence. With intuitive keyboard shortcuts, Pastey transforms your source text into AI-powered draft translations.
Exclusive discount for ProZ.com users!
Save over 13% when purchasing Wordfast Pro through ProZ.com. Wordfast is the world's #1 provider of platform-independent Translation Memory software. Consistently ranked the most user-friendly and highest value