Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
basin
 
Posts: n/a
Default Parse a Workbook-Newbie

Hi!
I've got a huge excel file with inventory items in one column, and
quantities in the next column. I need to be able to do two things:
1) Be able to find a specific word in the inventory column and put that out
somewhere else...along with the quantities
2) Be able to simply parse out any inventory with 0 in the quantity column.

I'm not new to excel but am definitely new to any formulas. is there an
add-in of some sort that can help with this??
Thanks!
  #2   Report Post  
Michael
 
Posts: n/a
Default

Hey.

Do you have any experience with Visual Basic? It should be pretty easy to
create a macro and write a short VB script to do the job.

Something like:

dim temp, n

Do 'Counts the number of items you have
n = n + 1
Loop Until IsEmpty(ThisWorkbook.Sheets("Inventory").Cells(n, 1))

For k=1 to n
If (Sheets("Inventory").Cells(k, 2)0) 'If invenotry 0
'Copy item
Sheets("Wherever").Cells(temp,1) = Sheets("Inventory").Cells(k, 1)
'Copy Quantity
Sheets("Wherever").Cells(temp,2) = Sheets("Inventory").Cells(k, 2)
temp= temp+1
end if

next

Something like this... and then do whatever you want when invenory =0...

Hope this helps!

-Michael

"basin" wrote:

Hi!
I've got a huge excel file with inventory items in one column, and
quantities in the next column. I need to be able to do two things:
1) Be able to find a specific word in the inventory column and put that out
somewhere else...along with the quantities
2) Be able to simply parse out any inventory with 0 in the quantity column.

I'm not new to excel but am definitely new to any formulas. is there an
add-in of some sort that can help with this??
Thanks!

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
HOW DO I SUM TWO CELLS FROM ONE WORKBOOK TO ANOTHER WORKBOOK? Bill O'Neal Excel Worksheet Functions 8 August 14th 09 11:36 PM
keeping a toolbar attached to a workbook Paul Ponzelli Excel Discussion (Misc queries) 0 August 12th 05 11:39 PM
Linking a cell to another workbook cell based on a variable name Brian Excel Discussion (Misc queries) 6 June 1st 05 11:54 PM
Unprotect Workbook Kent Excel Discussion (Misc queries) 1 February 4th 05 01:07 AM
Stubborn toolbars in Excel 007 Excel Discussion (Misc queries) 9 December 11th 04 02:02 PM


All times are GMT +1. The time now is 10:03 AM.

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

About Us

"It's about Microsoft Excel"