PC Review


Reply
Thread Tools Rate Thread

checking if a combiantion of values exists on a different row

 
 
C. Corodan
Guest
Posts: n/a
 
      28th Jul 2008
Hello,

I have a sales planning worksheet, some of the columns being:

Sales Rep Customer Ship-to Article Plant Aug 08 Sept 08 ...

There can be up to few hundreds rows. At the top of the worksheet I have a
row with validation boxes that allow me to enter new Sales
Rep/Customer/Ship-to/Article/Plant combinations and the sales forecast for
the respective combination.

1. I want to create a macro that can check if the combination selected in
the validation boxes already exists in the spreadsheet.

2. I also want to check if the respective combination exists in a different
spreadsheet and, if yes, to copy some sales volumes (e.g. Aug and Sept) to
the initial file.

Thanks in advance for your help,
 
Reply With Quote
 
 
 
 
Wigi
Guest
Posts: n/a
 
      28th Jul 2008
Hi

Just to get you started: you might want to use for instance a DCOUNT
function, and test how many records result.

--
Wigi
http://www.wimgielis.be = Excel/VBA, soccer and music


"C. Corodan" wrote:

> Hello,
>
> I have a sales planning worksheet, some of the columns being:
>
> Sales Rep Customer Ship-to Article Plant Aug 08 Sept 08 ...
>
> There can be up to few hundreds rows. At the top of the worksheet I have a
> row with validation boxes that allow me to enter new Sales
> Rep/Customer/Ship-to/Article/Plant combinations and the sales forecast for
> the respective combination.
>
> 1. I want to create a macro that can check if the combination selected in
> the validation boxes already exists in the spreadsheet.
>
> 2. I also want to check if the respective combination exists in a different
> spreadsheet and, if yes, to copy some sales volumes (e.g. Aug and Sept) to
> the initial file.
>
> Thanks in advance for your help,

 
Reply With Quote
 
C. Corodan
Guest
Posts: n/a
 
      28th Jul 2008
Thanks a lot, this is exactly what I was looking for with regards to point
number 1! I was not aware that such a function exists

Any idea for point number 2?

"Wigi" wrote:

> Hi
>
> Just to get you started: you might want to use for instance a DCOUNT
> function, and test how many records result.
>
> --
> Wigi
> http://www.wimgielis.be = Excel/VBA, soccer and music
>
>
> "C. Corodan" wrote:
>
> > Hello,
> >
> > I have a sales planning worksheet, some of the columns being:
> >
> > Sales Rep Customer Ship-to Article Plant Aug 08 Sept 08 ...
> >
> > There can be up to few hundreds rows. At the top of the worksheet I have a
> > row with validation boxes that allow me to enter new Sales
> > Rep/Customer/Ship-to/Article/Plant combinations and the sales forecast for
> > the respective combination.
> >
> > 1. I want to create a macro that can check if the combination selected in
> > the validation boxes already exists in the spreadsheet.
> >
> > 2. I also want to check if the respective combination exists in a different
> > spreadsheet and, if yes, to copy some sales volumes (e.g. Aug and Sept) to
> > the initial file.
> >
> > Thanks in advance for your help,

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
checking if a com component exists or not Abubakar Microsoft VC .NET 1 13th Nov 2006 09:07 PM
checking if an url exists Aldo Microsoft Excel Programming 2 9th Oct 2005 10:20 PM
Checking to see if a database exists... RSH Microsoft VB .NET 1 29th Jun 2005 08:44 PM
Checking if a row exists in a datagrid mirth Microsoft ASP .NET 1 14th Dec 2004 01:58 PM
checking to see if DDL value exists Darrel Microsoft ASP .NET 4 10th Dec 2004 03:23 PM


Features
 

Advertising
 

Newsgroups
 


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