#1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 4
Default Comparing Data

I would 1st like to say thank you for anyone who reads this as what I am
currently doing is taking way to long and I'm sure there is a better way of
speeding this up.

This is what I'm trying to do. I have a workbook that contains 2 worksheets
(lets say 1 of them is called sheet1 and the other is sheet2) and I'm looking
at sheet1 to see if the same exact invoice number is on sheet2. I would like
to know if there is a forumula that will automatically look for the same
invoice number in sheet2 and display a true/false answer in sheet1 to let me
know whether or not the same invoice number exists in both worksheets.

If it would be rather difficult you think for me to do it this way I'm open
to other idea's. Thank you again for your time.

- Matt
  #2   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 1,071
Default Comparing Data

Check out XL help for the MATCH function.
--

Tushar Mehta
http://www.tushar-mehta.com
Custom business solutions leveraging a multi-disciplinary approach
In Excel 2007 double-click to format may not work; right click and select
from the menu


"Speedy Brewskie" wrote:

I would 1st like to say thank you for anyone who reads this as what I am
currently doing is taking way to long and I'm sure there is a better way of
speeding this up.

This is what I'm trying to do. I have a workbook that contains 2 worksheets
(lets say 1 of them is called sheet1 and the other is sheet2) and I'm looking
at sheet1 to see if the same exact invoice number is on sheet2. I would like
to know if there is a forumula that will automatically look for the same
invoice number in sheet2 and display a true/false answer in sheet1 to let me
know whether or not the same invoice number exists in both worksheets.

If it would be rather difficult you think for me to do it this way I'm open
to other idea's. Thank you again for your time.

- Matt

  #3   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 4
Default Comparing Data

Hi thanks for responding Tushar I did find it but it's not very specific as
to how to do it when you have more than 1 sheet inside a workbook. If you
can be a little more specific I'd greatly appreciate it :).

Thanks again,

Matt

"Tushar Mehta" wrote:

Check out XL help for the MATCH function.
--

Tushar Mehta
http://www.tushar-mehta.com
Custom business solutions leveraging a multi-disciplinary approach
In Excel 2007 double-click to format may not work; right click and select
from the menu


"Speedy Brewskie" wrote:

I would 1st like to say thank you for anyone who reads this as what I am
currently doing is taking way to long and I'm sure there is a better way of
speeding this up.

This is what I'm trying to do. I have a workbook that contains 2 worksheets
(lets say 1 of them is called sheet1 and the other is sheet2) and I'm looking
at sheet1 to see if the same exact invoice number is on sheet2. I would like
to know if there is a forumula that will automatically look for the same
invoice number in sheet2 and display a true/false answer in sheet1 to let me
know whether or not the same invoice number exists in both worksheets.

If it would be rather difficult you think for me to do it this way I'm open
to other idea's. Thank you again for your time.

- Matt

  #4   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 1,071
Default Comparing Data

The best way to learn is to let XL guide you as to how to specify the various
arguments of any function.

Select the cell where you want the function.

Click the Fx button (it's on the formula bar).

In the dialog box, in the 'select a category' dropdown select 'Lookup and
Reference' (or just select 'All')

In the 'Select a function' box, select the MATCH function (type the first
few letters and XL will jump to functions starting with M, then MA, then MAT,
etc).

Click OK and you'll get the function arguments dialog box.

Click in the lookup_value box, then use the mouse to click the cell whose
value you want to look up.

Next, click in the lookup_range box and use the mouse to select the range
you want to search. If necessary, use the worksheet tab to switch to another
worksheet before selecting the range of interest.

Specify a value for the last argument. Enter zero if you want an exact
match with unsorted data.

Click OK to exit the dialog box (or just press ENTER).

--

Tushar Mehta
http://www.tushar-mehta.com
Custom business solutions leveraging a multi-disciplinary approach
In Excel 2007 double-click to format may not work; right click and select
from the menu


"Speedy Brewskie" wrote:

Hi thanks for responding Tushar I did find it but it's not very specific as
to how to do it when you have more than 1 sheet inside a workbook. If you
can be a little more specific I'd greatly appreciate it :).

Thanks again,

Matt

"Tushar Mehta" wrote:

Check out XL help for the MATCH function.
--

Tushar Mehta
http://www.tushar-mehta.com
Custom business solutions leveraging a multi-disciplinary approach
In Excel 2007 double-click to format may not work; right click and select
from the menu


"Speedy Brewskie" wrote:

I would 1st like to say thank you for anyone who reads this as what I am
currently doing is taking way to long and I'm sure there is a better way of
speeding this up.

This is what I'm trying to do. I have a workbook that contains 2 worksheets
(lets say 1 of them is called sheet1 and the other is sheet2) and I'm looking
at sheet1 to see if the same exact invoice number is on sheet2. I would like
to know if there is a forumula that will automatically look for the same
invoice number in sheet2 and display a true/false answer in sheet1 to let me
know whether or not the same invoice number exists in both worksheets.

If it would be rather difficult you think for me to do it this way I'm open
to other idea's. Thank you again for your time.

- Matt

  #5   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 4
Default Comparing Data

Ok I did a little testing by making up 10 fake invoice numbers (8 digits
long) that are in Sheet1. In Sheet2 I put in the same 10 fake invoice
numbers plus inserted a few random fake numbers just to test to see what
happened. With the formula below it didn't give me a true/false answer as I
had hoped, but I did notice that if it couldn't find a number it gave #N/A as
an answer. With the ones it was able to find it either gave me a 1 or 3
which is odd. Can you explain to me why it did it this way? Maybe point me
to a website that will help explain my question to you?

=MATCH(RC[-2],Sheet2!R[1]C[-2]:R[3]C[-2],1)

Thank you again for your time. I appreciate it.

Matt



"Tushar Mehta" wrote:

The best way to learn is to let XL guide you as to how to specify the various
arguments of any function.

Select the cell where you want the function.

Click the Fx button (it's on the formula bar).

In the dialog box, in the 'select a category' dropdown select 'Lookup and
Reference' (or just select 'All')

In the 'Select a function' box, select the MATCH function (type the first
few letters and XL will jump to functions starting with M, then MA, then MAT,
etc).

Click OK and you'll get the function arguments dialog box.

Click in the lookup_value box, then use the mouse to click the cell whose
value you want to look up.

Next, click in the lookup_range box and use the mouse to select the range
you want to search. If necessary, use the worksheet tab to switch to another
worksheet before selecting the range of interest.

Specify a value for the last argument. Enter zero if you want an exact
match with unsorted data.

Click OK to exit the dialog box (or just press ENTER).

--

Tushar Mehta
http://www.tushar-mehta.com
Custom business solutions leveraging a multi-disciplinary approach
In Excel 2007 double-click to format may not work; right click and select
from the menu


"Speedy Brewskie" wrote:

Hi thanks for responding Tushar I did find it but it's not very specific as
to how to do it when you have more than 1 sheet inside a workbook. If you
can be a little more specific I'd greatly appreciate it :).

Thanks again,

Matt

"Tushar Mehta" wrote:

Check out XL help for the MATCH function.
--

Tushar Mehta
http://www.tushar-mehta.com
Custom business solutions leveraging a multi-disciplinary approach
In Excel 2007 double-click to format may not work; right click and select
from the menu


"Speedy Brewskie" wrote:

I would 1st like to say thank you for anyone who reads this as what I am
currently doing is taking way to long and I'm sure there is a better way of
speeding this up.

This is what I'm trying to do. I have a workbook that contains 2 worksheets
(lets say 1 of them is called sheet1 and the other is sheet2) and I'm looking
at sheet1 to see if the same exact invoice number is on sheet2. I would like
to know if there is a forumula that will automatically look for the same
invoice number in sheet2 and display a true/false answer in sheet1 to let me
know whether or not the same invoice number exists in both worksheets.

If it would be rather difficult you think for me to do it this way I'm open
to other idea's. Thank you again for your time.

- Matt



  #6   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 1,071
Default Comparing Data

OK, so now you know that MATCH returns #N/A if it doesn't find a match and a
number (which happens to be the index into the range) if it does. So, put
the result of MATCH in a ISNA() function or a ISNUMBER() function depending
on when you want a TRUE.

ISNA(MATCH(...)) will yield a TRUE if there is no match and a FALSE if there
is.

ISNUMBER(MATCH(...)) will yield a TRUE if there is a match and a FALSE if
there is not.

--

Tushar Mehta
http://www.tushar-mehta.com
Custom business solutions leveraging a multi-disciplinary approach
In Excel 2007 double-click to format may not work; right click and select
from the menu


"Speedy Brewskie" wrote:

Ok I did a little testing by making up 10 fake invoice numbers (8 digits
long) that are in Sheet1. In Sheet2 I put in the same 10 fake invoice
numbers plus inserted a few random fake numbers just to test to see what
happened. With the formula below it didn't give me a true/false answer as I
had hoped, but I did notice that if it couldn't find a number it gave #N/A as
an answer. With the ones it was able to find it either gave me a 1 or 3
which is odd. Can you explain to me why it did it this way? Maybe point me
to a website that will help explain my question to you?

=MATCH(RC[-2],Sheet2!R[1]C[-2]:R[3]C[-2],1)

Thank you again for your time. I appreciate it.

Matt



"Tushar Mehta" wrote:

The best way to learn is to let XL guide you as to how to specify the various
arguments of any function.

Select the cell where you want the function.

Click the Fx button (it's on the formula bar).

In the dialog box, in the 'select a category' dropdown select 'Lookup and
Reference' (or just select 'All')

In the 'Select a function' box, select the MATCH function (type the first
few letters and XL will jump to functions starting with M, then MA, then MAT,
etc).

Click OK and you'll get the function arguments dialog box.

Click in the lookup_value box, then use the mouse to click the cell whose
value you want to look up.

Next, click in the lookup_range box and use the mouse to select the range
you want to search. If necessary, use the worksheet tab to switch to another
worksheet before selecting the range of interest.

Specify a value for the last argument. Enter zero if you want an exact
match with unsorted data.

Click OK to exit the dialog box (or just press ENTER).

--

Tushar Mehta
http://www.tushar-mehta.com
Custom business solutions leveraging a multi-disciplinary approach
In Excel 2007 double-click to format may not work; right click and select
from the menu


"Speedy Brewskie" wrote:

Hi thanks for responding Tushar I did find it but it's not very specific as
to how to do it when you have more than 1 sheet inside a workbook. If you
can be a little more specific I'd greatly appreciate it :).

Thanks again,

Matt

"Tushar Mehta" wrote:

Check out XL help for the MATCH function.
--

Tushar Mehta
http://www.tushar-mehta.com
Custom business solutions leveraging a multi-disciplinary approach
In Excel 2007 double-click to format may not work; right click and select
from the menu


"Speedy Brewskie" wrote:

I would 1st like to say thank you for anyone who reads this as what I am
currently doing is taking way to long and I'm sure there is a better way of
speeding this up.

This is what I'm trying to do. I have a workbook that contains 2 worksheets
(lets say 1 of them is called sheet1 and the other is sheet2) and I'm looking
at sheet1 to see if the same exact invoice number is on sheet2. I would like
to know if there is a forumula that will automatically look for the same
invoice number in sheet2 and display a true/false answer in sheet1 to let me
know whether or not the same invoice number exists in both worksheets.

If it would be rather difficult you think for me to do it this way I'm open
to other idea's. Thank you again for your time.

- Matt

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
ranking query JaimeTimbrell Excel Discussion (Misc queries) 2 February 16th 06 08:09 AM
Comparing data (Before & After) Excel Newbie Excel Worksheet Functions 1 February 13th 06 07:43 PM
From several workbooks onto one excel worksheet steve Excel Discussion (Misc queries) 6 December 1st 05 08:03 AM
Help PLEASE! Not sure what answer is: Match? Index? Other? baz Excel Worksheet Functions 7 September 3rd 05 03:47 PM
Sort pages? David Excel Discussion (Misc queries) 15 May 13th 05 11:33 PM


All times are GMT +1. The time now is 06:28 PM.

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"