#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Trim and copy

I have multiple worksheets.

Sheet1 contains:

System Group Level Status Description
SYS1 SF99530 0007198 4 CUMULATIVE PTF PACKAGE C7198530
SYS2 SF99530 0007016 4 CUMULATIVE PTF PACKAGE C7016530

Sheet2 contains:

System Current CUM
SYS1
SYS2

How can I have sheet 2 automatically update based on referencing and
trimming cells in sheet1 to result in:

System Current CUM
SYS1 C7198530
SYS2 C7016530

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Trim and copy

Your example is a bit short on detail, but try this:

=RIGHT(VLOOKUP(A2,Sheet1!A$2:E$20,5,0),8)

and then copy down as required. If SYS1 occurs many times in your data
(assumed to be 20 rows in the formula), then this will return the
first occurence, so you will need another field to help make it
unique.

Hope this helps.

Pete

On Nov 21, 6:15 pm, bmolintas
wrote:
I have multiple worksheets.

Sheet1 contains:

System Group Level Status Description
SYS1 SF99530 0007198 4 CUMULATIVE PTF PACKAGE C7198530
SYS2 SF99530 0007016 4 CUMULATIVE PTF PACKAGE C7016530

Sheet2 contains:

System Current CUM
SYS1
SYS2

How can I have sheet 2 automatically update based on referencing and
trimming cells in sheet1 to result in:

System Current CUM
SYS1 C7198530
SYS2 C7016530


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Trim and copy

I'm receiving error "a value is not available to the formula of function".

More info - Sheet1 data is a result of an MS query from an IBM iSeries system.
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Trim and copy

I was not specifying the correct column. It works as expected. Thanks for
your help!
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Trim and copy

You're welcome - thanks for feeding back.

Pete

On Nov 21, 9:53 pm, bmolintas
wrote:
I was not specifying the correct column. It works as expected. Thanks for
your help!


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
Using =TRIM() Chuda Excel Worksheet Functions 6 November 9th 06 03:05 PM
Trim Steved Excel Worksheet Functions 7 August 1st 06 05:43 AM
Trim if? John Excel Worksheet Functions 6 June 26th 06 04:44 PM
trim geza Excel Worksheet Functions 2 June 8th 05 07:03 PM
Trim Again ferdy New Users to Excel 5 May 12th 05 02:50 PM


All times are GMT +1. The time now is 07:50 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"