If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Manipulate Link data into a separate excel workbook

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-30-05, 01:03
comf36 comf36 is offline
Registered User
 
Join Date: Aug 2003
Posts: 64
Manipulate Link data into a separate excel workbook

From workbook 1 I link data into workbook 2. I need to manipulate the data in workbook 2 from workbook 1. I have no control over workbook 1 this is why I link only the data I need to workbook 2. I have three questions when I link the data from workbook one into workbook 2.

1. How to merge four cells into one cell linking from worksheet one into workbook 2?
=CONCATENATE(L7," ",M7,L8," ",M8)
I tried this, having trouble with spaces and not sure how to add the link from workbook 1.

2. How to split one cell from workbook one into workbook 2 by 2 cells?
=LEFT(B9,FIND(" ",B9))
=RIGHT(B9,FIND(" ",B9))
This is OK but the RIGHT code display as a number format. I need both to show as a number format. Not sure how to add the link from workbook 1.

3. How to show “0” in workbook two where the cell is “NO” in workbook one?
=IF(NO(VLOOKUP(B9)),0,VLOOKUP(B9))
Not even close, need help with this one from scratch. No sure how to add the link from workbook 1.
Reply With Quote
  #2 (permalink)  
Old 01-30-05, 03:46
Bud Bud is offline
Registered User
 
Join Date: Dec 2003
Location: Dallas, TX
Posts: 995
Quote:
Originally Posted by comf36
1. How to merge four cells into one cell linking from worksheet one into workbook 2?
=CONCATENATE(L7," ",M7,L8," ",M8)
I tried this, having trouble with spaces and not sure how to add the link from workbook 1.
Hi comf36,

For your first one, take a look at the sample workbook I made for you. I think it does what you were asking, and used the Cells that you had just to make it easy. More to come.......... possibly.

have a nice one,
BUD
Attached Files
File Type: zip ConcatenateLink.zip (2.1 KB, 76 views)
Reply With Quote
  #3 (permalink)  
Old 01-30-05, 04:28
Bud Bud is offline
Registered User
 
Join Date: Dec 2003
Location: Dallas, TX
Posts: 995
Quote:
Originally Posted by comf36
2. How to split one cell from workbook one into workbook 2 by 2 cells?
=LEFT(B9,FIND(" ",B9))
=RIGHT(B9,FIND(" ",B9))
This is OK but the RIGHT code display as a number format. I need both to show as a number format. Not sure how to add the link from workbook 1.

3. How to show “0” in workbook two where the cell is “NO” in workbook one?
=IF(NO(VLOOKUP(B9)),0,VLOOKUP(B9))
Not even close, need help with this one from scratch. No sure how to add the link from workbook 1.
Hello again,

Here you go with you last two. Hope these help you out as just one possible way of achieving what you are after. Not a pro but use it enough to get what I need done.

have a nice one,
BUD
Attached Files
File Type: zip ConcatenateLink.zip (2.7 KB, 61 views)
Reply With Quote
  #4 (permalink)  
Old 01-30-05, 15:19
comf36 comf36 is offline
Registered User
 
Join Date: Aug 2003
Posts: 64
Great!
From your examples it worked like a charm. But I still have another problem, when I split the cells and or change the value from "NO" to "0", the formats will not change to numbers from the link table in Access. I get the famous #Num! value in Access from the excel link table.

From the split cells the right code shows #NUM!, the left code the format is number. Both cell should be a number value from the link excel worksheet.
Reply With Quote
  #5 (permalink)  
Old 01-31-05, 03:35
Bud Bud is offline
Registered User
 
Join Date: Dec 2003
Location: Dallas, TX
Posts: 995
Quote:
Originally Posted by comf36
Great!
From your examples it worked like a charm. But I still have another problem, when I split the cells and or change the value from "NO" to "0", the formats will not change to numbers from the link table in Access. I get the famous #Num! value in Access from the excel link table.

From the split cells the right code shows #NUM!, the left code the format is number. Both cell should be a number value from the link excel worksheet.
Hi again comf36,
The format doesn't need to change. In Workbook 1 you would have a cell to hold NO and possibly YES??? You don't place NO in the Cell on Workbook 1, you enter Yes or NO and Workbook 2 displays the result either 0 or "whatever you wish". You were wanting the cells in Workbook 2 to change to "0" when the said cell in Workbook 1 was "NO". That it does, and when you change it to "YES" it can either show "whatever text you wish" or "nothing at all" in Workbook 2. I had no idea from your post there was anything to do with Access. I just changed the Cell Values in Workbook 2 to "Number" and it still worked just fine with no error. So tell me, are you trying to import all this into Access? Tell me exactly what your entire process is so that I can evaluate it and duplicate it to possibly get at a definitive answer for you.

BUD
Reply With Quote
  #6 (permalink)  
Old 02-01-05, 01:57
comf36 comf36 is offline
Registered User
 
Join Date: Aug 2003
Posts: 64
Thumbs up

The excel examples does exactly what I needed, thanks. The Access problem was solve with the transferspreadsheet code;

DoCmd.TransferSpreadsheet transfertype:=acImport, _
spreadsheettype:=acSpreadsheetTypeExcel9, _
tablename:=strTable, _
FileName:=strWorkbook, _
hasfieldnames:=True, _
Range:="tbltype"

Thanks,
Comf36
Reply With Quote
  #7 (permalink)  
Old 02-01-05, 04:40
Bud Bud is offline
Registered User
 
Join Date: Dec 2003
Location: Dallas, TX
Posts: 995
Talking

Quote:
Originally Posted by comf36
The excel examples does exactly what I needed, thanks.
Thanks,
Comf36
Just glad to be able to assist you. Hope you have a nice one,
BUD
Reply With Quote
  #8 (permalink)  
Old 02-01-05, 20:24
comf36 comf36 is offline
Registered User
 
Join Date: Aug 2003
Posts: 64
Question

Bud;
Ran into a bump!
I need to link from a totally different excel workbook and concantanate into a new workbook cell.

='C:\AVG\Products Management\Sales\[CYCLES 2005.xls] MARKETS 2005'!D41&" "&D42&" "&D43&" "&D44&""

This will equal b10, but it's blank; help.

thanks comf36
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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