Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Using Basic Excel Functions


I've got a string of characters (city, state and zip) that is all
contained in 1 cell. I know how to separate them into different cells
using basic excel functions; i.e.,

Assuming data is in A27:
City
=Left(A27,Len(A27)-8)

State
=Mid(A27,Len(A27)-7,2)

Zip
=Right(A27,5)

The problem is that the character strings are in different rows; 1 set
of data is in Row 27 and the next is in Row 41. How do I increment the
rows by 14 using the formulas above?


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Using Basic Excel Functions

=LEFT(OFFSET($A$27,(ROW($A1)-1)*14,0),LEN(OFFSET($A$27,(ROW($A1)-1)*14,0))-8
)

=Mid(OFFSET($A$27,(ROW($A1)-1)*14,0),LEN(OFFSET($A$27,(ROW($A1)-1)*14,0))-7,
2)

=Right(OFFSET($A$27,(ROW($A1)-1)*14,0),5)

Then drag fill down the column.

assumes data is offset by 14 rows.

--
Regards,
Tom Ogilvy


Novice wrote in message
...

I've got a string of characters (city, state and zip) that is all
contained in 1 cell. I know how to separate them into different cells
using basic excel functions; i.e.,

Assuming data is in A27:
City
=Left(A27,Len(A27)-8)

State
=Mid(A27,Len(A27)-7,2)

Zip
=Right(A27,5)

The problem is that the character strings are in different rows; 1 set
of data is in Row 27 and the next is in Row 41. How do I increment the
rows by 14 using the formulas above?


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Visual basic functions Brett Excel Worksheet Functions 2 September 17th 09 12:21 PM
Excel n00b, how to do basic math functions Omohundro Excel Worksheet Functions 7 October 29th 07 07:39 PM
Basic Excel formula Mickeym1962 Excel Worksheet Functions 2 August 25th 07 09:08 PM
Basic excel functions dharmender mehra Excel Worksheet Functions 4 March 19th 07 12:02 AM
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. Robert AS Excel Worksheet Functions 4 December 2nd 04 10:49 AM


All times are GMT +1. The time now is 01:34 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"