Monday, September 26, 2016

How to Fix Problem - Deleting the last character in a string of text (that is not always the same number of characters)?

Deleting the last character in a string of text (that is not always the same number of characters)

Hi All,
I'm using a combination of concatenate functions and IF statements to get a sting of text based on user input.  I want to have each word separated by a comma except for the last word.  I tried using replace and subsitute but the issue I'm having is that
the number of characters change.  Please see my example below:
Here is part of my formula:
CONCATENATE(IF('Input Sheet'!$D$53="YES","WC, ",""),"",IF('Input Sheet'!$D$54="YES","GL, ",""),"",IF('Input Sheet'!$D$55="YES","AL, ",""),.....it goes on and on
My results look like this:
WC, GL, AL,
or like
WC, AL, Crime, Inland,
I want to be able to delete the last comma, but depending on user selection my results will vary and the number of character vary.
Thanks,
Donna

Keys to the Problem Deleting the last character in a string of text (that is not always the same number of characters)

Download Error Fixer (Free)

If you prepend the commas (instead of appending them)...like this:
CONCATENATE(IF('Input Sheet'!$D$53="YES",", WC ",""),"",IF('Input Sheet'!$D$54="YES",", GL",""),"",IF('Input Sheet'!$D$55="YES",", AL",""),.....

Then your formula can be something like thisl:
=MID(CONCATENATE(IF('Input Sheet'!$D$53="YES",", WC ",...etc...),3,255)

Does that help?

Ron Coderre
Microsoft MVP (2006 - 2010) - Excel

P.S.
If any post answers your question, please mark it as the Answer (so it won't keep showing as an open item.)

Make Sure that your Computer Meets the System Requirements

You need to double-check your computer's hardware configuration against the following Microsoft requirements. If your PC hardware is not up to par, then make sure you update where necessary before continuing:

Microsoft Windows Requirements :

  • 1 gigahertz (GHz) or faster 32-bit (x86) or 64-bit (x64) processor
  • 16 GB available hard disk space (32-bit) or 20 GB (64-bit)

Another Safe way to Repair the Problem: Deleting the last character in a string of text (that is not always the same number of characters):

How to Fix Deleting the last character in a string of text (that is not always the same number of characters) with SmartPCFixer?

1. You can Download SmartPCFixer here. Install it on your system. When you open SmartPCFixer, it will perform a scan.

2. After the scan is done, you can see the errors and problems need to be fixed. Click Fix All.

3. The Repair part is finished, the speed of your computer will be much higher than before and the errors have been removed. You can also use other functions in SmartPCFixer. Like dll downloading, windows updating and print spooler error repair.


Related: How to Update & Download NVidia GeForce 6100/nForce 420 WHQL Certified driver v.178.13,How to Update & Download NVidia GeForce 7600 GS Video Driver v.295.75 Certified,How Can I Update & Download NVidia GeForce 820M Driver v.344.48 WHQL,[Solved] Download NVidia GeForce GTX 560M VGA Driver v.296.17 Certified,Way to Update & Herunterladen NVidia GeForce GT 130M Video Treiber v.295.75 Certified,How to Update & Download SONY SVE14A1X1RH Realtek Ethernet Driver,Where to Download SONY SVS13A2W9ES Bluetooth Driver (Intel) v.2.6 - 2.6.23.40059,Best Way to Update & Download SONY VGN-CR203E Conexant HDAUDIO SoftV92 Data Fax Modem with SmartCP Setup Program v.7.62.0.50 driver,Best Way to Download SONY VGN-FE790G/N Wireless LAN Driver v.10.6.0.29,Method to Update & Download SONY VGN-NR31Z/S Firmware Extension Parser Device v.8.0.2.3,How to Fix Error 0x0000c1f5 SoluciĆ³n?,Error 0x80071a91 Win7 Fix Patch,Error 0x800ccc60 Windows Live Mail [Solved],Error Message 0x800ccc79 Outlook 2000 Fix,What is Error 0xc1ab0001?,[Answered] x64 saplugin dll,How to Fix Problem - Kb943729 Download?,Troubleshooting: Bccode D1 Error,Java Runtime Tech Support,Troubleshooting: ERROR NO SUCH GROUP Error
Read More: Date\/Time manipulation using Excel 2003 [Solved],Troubleshooter of Error: Dashboard help - summing and ranking items,Fast Solution to Error: dates and sumifs formula,Troubleshoot:Dell photo AIO printer 994 does not work on windows 8 Error,Troubleshooter of Error: Dazzle Dvc 100 On Windows

No comments:

Post a Comment