Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Molly
 
Posts: n/a
Default if/then statements

There are two spreadsheets in this project. On one spreadsheet I have over
8000+ rows with several columns: one column contains a product number,
another contains colors available for the product, and several other columns
describing the product. On the second spreadsheet I have about 2000 rows with
the same information.

Problem is: I need to somehow ask Excel to look at the second spreadsheet,
taking each row at a time, move over to the first spreadsheet, check to see
if the product number exists and then check to see if the color in the second
spreadsheet exists in the first spreadsheet. If the product from the second
spreadsheet doesn't exist on the first, I need to tell Excel to add a row to
the first spreadsheet. If the product from the second spreadsheet does exist
on the first and the color does not exist, I need to tell Excel to add a
return in the color column and then add the color from the second spreadsheet
to the first. If the product from the second spreadsheet does exist on the
first and the color does exist, I need to tell Excel to copy the row to
another blank spreadsheet.

HELP!!
  #2   Report Post  
Dnereb
 
Posts: n/a
Default


Do you have to keep your stuf in Excel? Or is transferring it to Access
an option?
This volume of data and comparing "records"to search if they already
exist and the looking up based on productnumber or all products that
have a yellow variaty can be done far better in Access.



--
Dnereb
------------------------------------------------------------------------
Dnereb's Profile:
http://www.excelforum.com/member.php...o&userid=26182
View this thread: http://www.excelforum.com/showthread...hreadid=399696

  #3   Report Post  
Molly
 
Posts: n/a
Default

Thanks for your response.

I was this --| |<-- close to importing the spreadsheets into Access and
doing just that. I can do this in any format to get it done -- just don't
want to spend all weekend figuring it out as I need it Monday.

I'm in no way, shape or form an expert in Access so you might see further
postings in the Access discussion groups!

"Dnereb" wrote:


Do you have to keep your stuf in Excel? Or is transferring it to Access
an option?
This volume of data and comparing "records"to search if they already
exist and the looking up based on productnumber or all products that
have a yellow variaty can be done far better in Access.



--
Dnereb
------------------------------------------------------------------------
Dnereb's Profile:
http://www.excelforum.com/member.php...o&userid=26182
View this thread: http://www.excelforum.com/showthread...hreadid=399696


  #4   Report Post  
Blue Hornet
 
Posts: n/a
Default

A relatively quick and simple way to do this is:
1. Create a new column IN EACH SHEET that concatenates the unique
information you want to capture in Sheet2 (the one with the 2000 or so
lines). For example if your columns are like:
A = Ford
B = Pickup
C = Blue
D = 4x4
then E1 on BOTH Sheet1 and Sheet2 could be:
= A1 & "-" & B1 & "-" & C1 & "-" D1 or:
Ford-Pickup-Blue-4x4

Copy this formula down all 8000+ rows.

2. Now do a VLOOKUP from Sheet1 into Sheet2 like:
= if( isna( VLOOKUP( E1, Sheet2!$E$1:$E$8000, 1, false)), "Copy this
row!", "")

Copy this formula down all 8000+ rows.

3. You'll have a list of "Copy this row!" alongside each of the rows
that need to be copied into Sheet2. You can sort on this value, then
copy and paste the entire group into Sheet2.

4. Finally, you can either delete or hide the concatenation and
VLOOKUP colums (I like to keep them as a check that I'm not missing any
values).

Chris

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
if/then statements with "counta" Patty via OfficeKB.com Excel Discussion (Misc queries) 5 July 13th 05 08:13 PM
Next w/o For If/Then Loop littlegreenmen1 Excel Discussion (Misc queries) 5 June 9th 05 05:28 PM
Nested IF statements John Simons Excel Worksheet Functions 14 February 16th 05 06:17 AM
If/Then statements with images??? Brw Excel Worksheet Functions 1 November 18th 04 10:43 AM
If statements Mark Excel Worksheet Functions 3 November 2nd 04 08:39 PM


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