Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-26-2021, 12:20 AM
zillah zillah is offline Using formula to rewrite a phrase in different way ? Windows 7 64bit Using formula to rewrite a phrase in different way ? Office 2010 64bit
Advanced Beginner
Using formula to rewrite a phrase in different way ?
 
Join Date: Nov 2009
Posts: 34
zillah is on a distinguished road
Default Using formula to rewrite a phrase in different way ?

Hi folk




Cell E9 has this phrase : 'S.P.C BAR TO'
E10 has this phrase : 'IPC Connection TO'



Using Excel formula How can i rewrite below phrase :


Cell E16 :'TO S.P.C BAR'
Cell E17: 'TO IPC Connection'


Thx
Reply With Quote
  #2  
Old 03-26-2021, 05:18 AM
Purfleet Purfleet is offline Using formula to rewrite a phrase in different way ? Windows 10 Using formula to rewrite a phrase in different way ? Office 2019
Expert
 
Join Date: Jun 2020
Location: Essex
Posts: 345
Purfleet is a splendid one to beholdPurfleet is a splendid one to beholdPurfleet is a splendid one to beholdPurfleet is a splendid one to beholdPurfleet is a splendid one to beholdPurfleet is a splendid one to beholdPurfleet is a splendid one to behold
Default

Please add workbook examples, it just wastes time recreating data

Try =TRIM("TO "&LEFT(E9,FIND("TO",E9)-1))
Reply With Quote
  #3  
Old 03-26-2021, 07:33 AM
ArviLaanemets ArviLaanemets is offline Using formula to rewrite a phrase in different way ? Windows 8 Using formula to rewrite a phrase in different way ? Office 2016
Expert
 
Join Date: May 2017
Posts: 873
ArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud of
Default

Into E9, enter the formula
Code:
=IF(ISODD(ROW()),"S.P.C. BAR TO","IPC Connection TO")
and copy down as much as you need.

This assumes those texts are repeated for every row in copied range.
In case you need fields in intermediate rows empty (i.e. the pair of rows is repeated after 7 next rows), The formula will be like
Code:
=IF((ROW()-9)/7=INT((ROW()-9)/7),"S.P.C. BAR TO",IF((ROW()-10)/7=INT((ROW()-10)/7),"IPC Connection TO",""))
Reply With Quote
  #4  
Old 03-26-2021, 06:41 PM
zillah zillah is offline Using formula to rewrite a phrase in different way ? Windows 7 64bit Using formula to rewrite a phrase in different way ? Office 2010 64bit
Advanced Beginner
Using formula to rewrite a phrase in different way ?
 
Join Date: Nov 2009
Posts: 34
zillah is on a distinguished road
Default

Thx Purfleet and ArviLaanemets
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using formula to rewrite a phrase in different way ? Determine if a Phrase is on a Line by Itself scienceguy Word VBA 2 06-06-2020 04:58 AM
Insert <tab> in a phrase with condition kjxavier Word 1 08-01-2014 08:57 PM
Using formula to rewrite a phrase in different way ? code to rewrite numbers romanticbiro Word VBA 7 02-15-2014 03:04 PM
Using formula to rewrite a phrase in different way ? Exclude phrase from email kiwiora Outlook 2 07-16-2012 03:03 PM
Using formula to rewrite a phrase in different way ? How to find exact phrase CabbageTree Outlook 2 05-14-2012 11:24 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:16 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft