Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,149,917 members, 7,806,667 topics. Date: Tuesday, 23 April 2024 at 08:24 PM

Test Your Knowledge Of Excel On This - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Test Your Knowledge Of Excel On This (3913 Views)

Macaranta.com:monetize Your Knowledge. / Is It Possible For Someone To Learn Python Without The Knowledge Of Html? / Becoming A Hacker With No Formal Knowledge Of It (2) (3) (4)

(1) (2) (Reply) (Go Down)

Test Your Knowledge Of Excel On This by degbads(m): 11:12am On Jun 29, 2008
Hi programmers, please test your knowledge of excel on this, i need to extract information from specific cells, each in about 200 excel documents, i can't do this manually, i could use some help here.
Thanks
Re: Test Your Knowledge Of Excel On This by awizzy1(m): 11:09pm On Jul 02, 2008
sounds silly but makes alot of sense, find a way broo,
Re: Test Your Knowledge Of Excel On This by adewaleafolabi(m): 9:11am On Jul 03, 2008
I never liked excel grin but i think maybe a macro might be useful or a visual basic app might be of help
Re: Test Your Knowledge Of Excel On This by ThePhantom(m): 8:07pm On Jul 03, 2008
Simple VBA Script will do that. Give me a little more details and I will post the code for you
Re: Test Your Knowledge Of Excel On This by ebot64(m): 10:00pm On Jul 03, 2008
your explanation of the problem is not very clear. If you can send me a mail describing the problem in details with an attachment of an example Excel sheet containing the data to be extracted, your solution may just be a mail away using VB.net 2005.

I am sure VSTO (Visual Studio Tools for Office) would solve the problem.

You can reach me on 08034443497 and ceo@ebotech.biz or ebot64@yahoo.com

www.ebotech.biz
Re: Test Your Knowledge Of Excel On This by degbads(m): 4:35pm On Jul 08, 2008
Guys thanks for your replies, i'll just explain d problem a little further, i have thousands of excel files like the one attached, i need to extract the filled data from specific cells (B1 - B7 of each excel document) and use it in populating a database, but i have thousands of these files, so i can't manually copy and paste, so i need something, anything, code, software, application etc to help me do this.
Please expecting your replies
Thnkx a million

Re: Test Your Knowledge Of Excel On This by Ibime(m): 11:17pm On Jul 11, 2008
Wow, that is a hard one. Good luck. I suggest you take a whole day off and do it - but you will have Corpal Tunnel syndrome in your wrist bones by the time you are done. If you had done the originals in Access or SQL, you wouldn't have all these problems. They are all in different files so I don't know of any method to extract the same information from thousands of files at once but there should be one. Hopefully someone can help you with your problem . . . .
Re: Test Your Knowledge Of Excel On This by Kobojunkie: 12:08am On Jul 12, 2008
@Poster, if al your excel files have the same format, I believe what you need done is relatively easy.
Re: Test Your Knowledge Of Excel On This by degbads(m): 7:26pm On Jul 12, 2008
Guys I keep ' hearing' its easy or its possible but nobody's really saying anything. pls someone say something, i need to earn me a raise
thnks
Re: Test Your Knowledge Of Excel On This by Kobojunkie: 9:42pm On Jul 12, 2008
You need to write a small application that checks for all the excel files within a directory folder, opens and extracts each data in the same way from the excel files and then writes the information to the database table you created to have it written to.
Re: Test Your Knowledge Of Excel On This by degbads(m): 10:53am On Jul 13, 2008
Kobojunkie:

You need to write a small application that checks for all the excel files within a directory folder, opens and extracts each data in the same way from the excel files and then writes the information to the database table you created to have it written to.
Thanks kobojunkie, but thats d point, i want to know what application to write and what language to write it in .
Re: Test Your Knowledge Of Excel On This by Kobojunkie: 2:55pm On Jul 13, 2008
You can write it in Any Language you want to. As long as you have the ability to read Excel files and can write to your current database. Application is just another word for functional code block.
Re: Test Your Knowledge Of Excel On This by degbads(m): 4:35pm On Jul 13, 2008
thanks again Kobojunkie, but d point is i'm still coming up in programming, can u give me the code or snippet
Re: Test Your Knowledge Of Excel On This by Kobojunkie: 4:37pm On Jul 13, 2008
degbads:

thanks again Kobojunkie, but d point is i'm still coming up in programming, can u give me the code or snippet


Are you a programmer If yes, what language do you code in?
Re: Test Your Knowledge Of Excel On This by degbads(m): 4:50pm On Jul 14, 2008
hi kobojunkie, thanks again, i'm currentlylearning php and javascript, the other programs i know are old ones Qbasic and Fortran,thanks
Re: Test Your Knowledge Of Excel On This by Kobojunkie: 4:53pm On Jul 14, 2008
OKay, I have little knowledge of PHP at this point but if you follow the logic outlined so far, you should be able to write this easily in PHP.
Re: Test Your Knowledge Of Excel On This by Akolawole(m): 2:14am On Jul 16, 2008
@Poster

I am sure i have linked about 3 excel files sometimes ago by just cross-referencing.

It can be done with no real programming.
Re: Test Your Knowledge Of Excel On This by AbidemiA: 3:08pm On Jul 16, 2008
Hi degbads,

I can solve your problem using c# or vb.net , but you need to answer the following ques;

1. Which DBMS engine are you using for the output?
2. Do you have all the excel files within the same folder
3. Are there other excel files aside from those that are your data source within the folder(s).

You can contact me on info@adten.net

Cheers
Re: Test Your Knowledge Of Excel On This by Kobojunkie: 3:14pm On Jul 16, 2008
good one
Re: Test Your Knowledge Of Excel On This by Ibime(m): 1:18am On Jul 20, 2008
There are several software that you can use to merge workbooks but they usually cost about $10. Use the trial version I have linked below. It only works for a maximum of five spreadsheets. If it works, you can purchase it if you wish. If you don't like it, just type in "Merge Excel workbooks" into google and it will give you several software that can do it but they all cost about $10.00

http://merge-workbooks.download-242-23985.datapicks.com/
Re: Test Your Knowledge Of Excel On This by degbads(m): 4:14pm On Jul 27, 2008
Ibime:

There are several software that you can use to merge workbooks but they usually cost about $10. Use the trial version I have linked below. It only works for a maximum of five spreadsheets. If it works, you can purchase it if you wish. If you don't like it, just type in "Merge Excel workbooks" into google and it will give you several software that can do it but they all cost about $10.00

http://merge-workbooks.download-242-23985.datapicks.com/

Thanks ibime i tried the software but it only gathered all the sheets in to one workbook, which isn't what i need i need all the data from certain cells in about 1000 docs gathered in to a single work sheet.
Akolawole:

@Poster

I am sure i have linked about 3 excel files sometimes ago by just cross-referencing.

It can be done with no real programming.

Thanks also akolawole please how did u do this.
Abidemi_A:

Hi degbads,

I can solve your problem using c# or vb.net , but you need to answer the following ques;

1. Which DBMS engine are you using for the output?
2. Do you have all the excel files within the same folder
3. Are there other excel files aside from those that are your data source within the folder(s).

You can contact me on info@adten.net

Cheers




i need to the data to be on an excel document i believe from that i can convert to any necessary format, all the files and only the files are within the same folder.

thnks
Re: Test Your Knowledge Of Excel On This by Kobojunkie: 5:44pm On Jul 27, 2008
Can you show us what code you have so far? I am assuming you have done some work on this and maybe still unable to solve it for one reason or another.
Re: Test Your Knowledge Of Excel On This by ocherome(m): 7:58pm On Aug 01, 2008
Hi degbads,

I will do it for you.

i have started writing the codes i do PHP.

If you have them in same workbook, then easy will do it on excel macro using VB

my email: admin@naija121.com

contact me i will for futher guild line;

everything will be posted here for everybody's benefit

Thanks.
Re: Test Your Knowledge Of Excel On This by degbads(m): 8:21pm On Aug 01, 2008
Thanks Ocherome,
Thats very sweet, looking forward to your post.
Re: Test Your Knowledge Of Excel On This by JustJoined(m): 9:34am On Aug 02, 2008
This short script in Visual FoxPro might help


**--------------This creates a folder on you c: drive for all the work

m.DataDrive = 'c:'
m.DataPath = '\nairaland'

SET DEFAULT TO c:

IF !DIRECTORY(m.DataDrive)
MESSAGEBOX('Please make sure you have a C: drive mapped')
QUIT
ELSE
IF !DIRECTORY(m.DataDrive+m.DataPath)
MD nairaland
CD nairaland
ENDIF
ENDIF

**----------------Creates a temporary VFP table
CLOSE ALL
CREATE TABLE tmpDUMP FREE (fldName c(100), fldValue c(200))

**----------------Appends from excel sheet
APPEND FROM ? TYPE XL5 SHEET sheet1


**----------------If the excel sheets are uniform and data placed same way in all the documents
**----------------You can do this,
DIMENSION rowval(RECCOUNT())
x = 1

GO TOP
SCAN WHILE !EOF()

rowval(x) = ALLTRIM(fldValue)
x = x+1

ENDSCAN


**------------------------You can do whatever you want here e.g.
**------------------------Insert into SQL Server or reformat and export
IF EOF()
m.cnn = [DRIVER=SQL SERVER;SERVER=] + "127.0.0.1" + [;DATABASE=nairaland;uid=sa;pwd=nairaland]
lnConnHandle=SQLSTRINGCONNECT(m.cnn)

vSQL = "Insert Into dbo.nairalandSample (lastname,firstname,sex,age,country) Select "+"'"+rowval(1)+"','"+rowval(2)+"','"+rowval(3)+"','"+rowval(4)+"','"+rowval(5)+"'"
=SQLEXEC(lnConnHandle,vSQL ,'xx')
ENDIF
Re: Test Your Knowledge Of Excel On This by ocherome(m): 4:02pm On Aug 02, 2008
Open microsoft workbook, the same that contains the 1000 sheets, ie you ll be workin on the 1001 sheet now.

on the 1001 sheet is plain and blank, what we will do is to read in the specific cells from 1 to 1000 sheet into the 1001 sheet.

from the sample sheet i got form you. i assume that the rest of the 999 is in that format then we will start.

Game plan: 1001 sheet will contain columns FIRNAME LNAME SEX AGE COUNTRY PHONE ADDRESS
this will give us 1000 line of what we want, then we will use a program to read it into our database.


1) on the 1001 sheet click view => toolbars => control toolbox
on the toolbox you will click on the command button (of course the tooltip will show you that) click once and goto the
far right draw this button on your sheet1001 (the name is commandbutton1)

2) doudle clk on it it will take you to the vb editor

Note: to return back here doulde click on the button

btw
Private Sub CommandButton1_Click()


End Sub


you will write these codes
Re: Test Your Knowledge Of Excel On This by MisterMan(m): 12:49pm On Aug 03, 2008
Hello. I have been 'offline' for so long. I just read this post now. I wonder if you gotten a solution (I coundn't read thru to know if you have gotten the soln). If you have not, just indicate here, and I will see what I can do. Cheers and goodbye
Re: Test Your Knowledge Of Excel On This by MisterMan(m): 12:52pm On Aug 03, 2008
Hi JustJoined,
Seems you program in FoxPro. Man, nothing runs like FoxPro. Too bad MS finally decided to 'kill' FoxPro. They really miss the boat there.
Re: Test Your Knowledge Of Excel On This by ocherome(m): 4:39pm On Aug 04, 2008
ATTACHED HERE IS THE SOLUTION OF THE SAMPLE GET BACK TO ME IF ANY PROBS

Re: Test Your Knowledge Of Excel On This by MisterMan(m): 10:43am On Aug 05, 2008
Here is my own solution. I thought you would e-mail me so to be able to download the stuff. I have created an executable file. First off, you will need to install, then other things run expressly. In most cases, just click on the default. After Installing, go to the folder where you install the program and double click. It asks for the folder where the Excel files are, and in minutes, it completes.

Because I don’t know what you really want to do with it, I saved the results both in .XLS file and FoxPro’s .dbf file. You just save the Excel file and use it the way you want. A sample screenshot is attached.

One caveat however. The phone number is in number format. I have not been able to lay my hand on the documentation in VBA to convert the number to string. The problem actually is the way Excel sees the number. It reports it as number whereas it is actually a string. Apart from that, it runs OK.
Re: Test Your Knowledge Of Excel On This by MisterMan(m): 10:49am On Aug 05, 2008
Here is my own solution. I thought you would e-mail me so to be able to download the stuff. I have created an executable file. First off, you will need to install, then other things run expressly. In most cases, just click on the default. After Installing, go to the folder where you install the program and double click. It asks for the folder where the Excel files are, and in minutes, it completes.

Because I don’t know what you really want to do with it, I saved the results both in .XLS file and FoxPro’s .dbf file. You just save the Excel file and use it the way you want. A sample screenshot is attached.

One caveat however. The phone number is in number format. I have not been able to lay my hand on the documentation in VBA to convert the number to string. The problem actually is the way Excel sees the number. It reports it as number whereas it is actually a string. Apart from that, it runs OK.

Re: Test Your Knowledge Of Excel On This by origen2g: 2:54pm On Aug 05, 2008
INSTRUCTIONS
This attached excel workbook contain macros that will run when you mouse click on the button .The program will assume that all your data will all be as seen in the sample(1).xls file you earlier attached and are all contained in sheet one. It also assumes that the information is formatted into two columns and 8 rows on each worksheet. The program assumes that all the worksheets have been copied to a single folder where all of them can be selected with the mouse. If not, so please copy all the worksheets into a single folder now. The principal means of extracting the data from the sheets is like this

1. You click the button on this worksheet
2. A dialogue box is displayed
3. Browse to the folder where you have all you excel files already copied to, and select all the files
4. Click Ok on the dialogue box
5. The data in sheet 1 of all the selected files will be copied to the sheet 1 of this workbook sequentially, eight rows at a time, until all the workbooks have been exhausted.

Good luck!

Please post a reply if you find any difficulty.

(1) (2) (Reply)

Can I Learn Javascript In One Month / What Is The URL For Jumia Seller Centre API / Is There Any Good Computer Institute In Nigeria?

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 38
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.