#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Excel formula help

Hi

I am trying to check a cell in excel against a column and see if it is present, if it is then I want a yes or no answer.

All the values are in txt and they are not words, they are codes.

I want to see if a code from cell x appears in column y - then have an answer yes or no.

I need to then copy this formula through 7000 rows checking the next cell (below the one above) with the SAME column fields

Thanks

EggHeadCafe - Software Developer Portal of Choice
Table and Stored Procedure Profile Providers for ASP.NET
http://www.eggheadcafe.com/tutorials...-procedur.aspx
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Excel formula help

One way...

=IF(COUNT(MATCH(X1,Y:Y,0)),"Yes","No")

Copy down as needed

--
Biff
Microsoft Excel MVP


<Kevin Rudd wrote in message
om.au...
Hi

I am trying to check a cell in excel against a column and see if it is
present, if it is then I want a yes or no answer.

All the values are in txt and they are not words, they are codes.

I want to see if a code from cell x appears in column y - then have an
answer yes or no.

I need to then copy this formula through 7000 rows checking the next cell
(below the one above) with the SAME column fields

Thanks

EggHeadCafe - Software Developer Portal of Choice
Table and Stored Procedure Profile Providers for ASP.NET
http://www.eggheadcafe.com/tutorials...-procedur.aspx



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Copying formulas through multiple cells

Thanks Biff

However how to I copy it through 7000 lines without cutting and pasting it and not dragging it down, because although it changes the cell reference automatically (required) it also moves the reverence column down one cell each time, (not required) the column reference is the same set of cells for the whole 7000 reference cells.

thanks





T. Valko wrote:

One way...
13-Nov-09

One way...

=IF(COUNT(MATCH(X1,Y:Y,0)),"Yes","No")

Copy down as needed

--
Biff
Microsoft Excel MVP


<Kevin Rudd wrote in message

Previous Posts In This Thread:

EggHeadCafe - Software Developer Portal of Choice
Professional ASP.NET Web Services [Wrox]
http://www.eggheadcafe.com/tutorials...spnet-web.aspx
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Copying formulas through multiple cells

Thanks Biff

However how to I copy it through 7000 lines without cutting and pasting it and not dragging it down, because although it changes the cell reference automatically (required) it also moves the reverence column down one cell each time, (not required) the column reference is the same set of cells for the whole 7000 reference cells.

thanks





T. Valko wrote:

One way...
13-Nov-09

One way...

=IF(COUNT(MATCH(X1,Y:Y,0)),"Yes","No")

Copy down as needed

--
Biff
Microsoft Excel MVP


<Kevin Rudd wrote in message

Previous Posts In This Thread:

EggHeadCafe - Software Developer Portal of Choice
EBCDIC Encoding with .NET
http://www.eggheadcafe.com/tutorials...-with-net.aspx
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Copying formulas through multiple cells

Enter the formula in A1 or whatever column is appropriate.

In Namebox type A1:A7000 and Enter

CTRL + D to copy down.

The row reference will increment but Y:Y will stay constant.


Gord Dibben MS Excel MVP

On Sun, 15 Nov 2009 17:49:36 -0800, Kevin Rudd wrote:

Thanks Biff

However how to I copy it through 7000 lines without cutting and pasting it and not dragging it down, because although it changes the cell reference automatically (required) it also moves the reverence column down one cell each time, (not required) the column reference is the same set of cells for the whole 7000 reference cells.

thanks





T. Valko wrote:

One way...
13-Nov-09

One way...

=IF(COUNT(MATCH(X1,Y:Y,0)),"Yes","No")

Copy down as needed




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default excel cell copying

Thanks Biff

However how to I copy it through 7000 lines without cutting and pasting it and not dragging it down, because although it changes the cell reference automatically (required) it also moves the reverence column down one cell each time, (not required) the column reference is the same set of cells for the whole 7000 reference cells.

thanks



T. Valko wrote:

One way...
13-Nov-09

One way...

=IF(COUNT(MATCH(X1,Y:Y,0)),"Yes","No")

Copy down as needed

--
Biff
Microsoft Excel MVP


<Kevin Rudd wrote in message

Previous Posts In This Thread:

EggHeadCafe - Software Developer Portal of Choice
ASP.NET TraceListener for Debugging
http://www.eggheadcafe.com/tutorials...tener-for.aspx
  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default excel cell copying

I don't understand what you mean.

=IF(COUNT(MATCH(X1,Y:Y,0)),"Yes","No")


I assume you want to check cells starting in X1. If you copy the formula
down the column then X1 will increment to X2, X3, X4 etc. The column
references will not change.


--
Biff
Microsoft Excel MVP


<Kevin Rudd wrote in message
om.au...
Thanks Biff

However how to I copy it through 7000 lines without cutting and pasting it
and not dragging it down, because although it changes the cell reference
automatically (required) it also moves the reverence column down one cell
each time, (not required) the column reference is the same set of cells
for the whole 7000 reference cells.

thanks



T. Valko wrote:

One way...
13-Nov-09

One way...

=IF(COUNT(MATCH(X1,Y:Y,0)),"Yes","No")

Copy down as needed

--
Biff
Microsoft Excel MVP


<Kevin Rudd wrote in message

Previous Posts In This Thread:

EggHeadCafe - Software Developer Portal of Choice
ASP.NET TraceListener for Debugging
http://www.eggheadcafe.com/tutorials...tener-for.aspx



  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default excel cell copying

IF(COUNTIF(A1:A15,B1)0,"yes","no")


"T. Valko" .gbl...
I don't understand what you mean.

=IF(COUNT(MATCH(X1,Y:Y,0)),"Yes","No")


I assume you want to check cells starting in X1. If you copy the formula
down the column then X1 will increment to X2, X3, X4 etc. The column
references will not change.


--
Biff
Microsoft Excel MVP


<Kevin Rudd wrote in message
om.au...
Thanks Biff

However how to I copy it through 7000 lines without cutting and pasting
it and not dragging it down, because although it changes the cell
reference automatically (required) it also moves the reverence column
down one cell each time, (not required) the column reference is the same
set of cells for the whole 7000 reference cells.

thanks



T. Valko wrote:

One way...
13-Nov-09

One way...

=IF(COUNT(MATCH(X1,Y:Y,0)),"Yes","No")

Copy down as needed

--
Biff
Microsoft Excel MVP


<Kevin Rudd wrote in message

Previous Posts In This Thread:

EggHeadCafe - Software Developer Portal of Choice
ASP.NET TraceListener for Debugging
http://www.eggheadcafe.com/tutorials...tener-for.aspx





  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 506
Default Excel formula help

Use this formula in Z1 cell€¦

=IF(ISNA(VLOOKUP(X1,Y:Y,1)=X1),"",IF(VLOOKUP(X1,Y: Y,1)=X1,"YES","NO"))

Now copy the Z1 cell formula and paste it for the remaining cells. The
above formula will check the X1 cell value in Y Column.

If you want to check the X1 and Y1 cell values then use this formula

=IF(ISBLANK(X1),"",IF(X1=Y1,"YES","NO"))

Change the cell reference X1 to your desired cell, if required.

If this post helps, Click Yes!

--------------------
(Ms-Exl-Learner)
--------------------



"Kevin Rudd" wrote:

Hi

I am trying to check a cell in excel against a column and see if it is present, if it is then I want a yes or no answer.

All the values are in txt and they are not words, they are codes.

I want to see if a code from cell x appears in column y - then have an answer yes or no.

I need to then copy this formula through 7000 rows checking the next cell (below the one above) with the SAME column fields

Thanks

EggHeadCafe - Software Developer Portal of Choice
Table and Stored Procedure Profile Providers for ASP.NET
http://www.eggheadcafe.com/tutorials...-procedur.aspx
.

  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 506
Default Excel formula help

A small correction in my previous formula

=IF(X1="","",IF(ISNA(VLOOKUP(X1,Y:Y,1)=X1),"NO",IF (VLOOKUP(X1,Y:Y,1)=X1,"YES","NO")))

--------------------
(Ms-Exl-Learner)
--------------------



"Ms-Exl-Learner" wrote:

Use this formula in Z1 cell€¦

=IF(ISNA(VLOOKUP(X1,Y:Y,1)=X1),"",IF(VLOOKUP(X1,Y: Y,1)=X1,"YES","NO"))

Now copy the Z1 cell formula and paste it for the remaining cells. The
above formula will check the X1 cell value in Y Column.

If you want to check the X1 and Y1 cell values then use this formula

=IF(ISBLANK(X1),"",IF(X1=Y1,"YES","NO"))

Change the cell reference X1 to your desired cell, if required.

If this post helps, Click Yes!

--------------------
(Ms-Exl-Learner)
--------------------



"Kevin Rudd" wrote:

Hi

I am trying to check a cell in excel against a column and see if it is present, if it is then I want a yes or no answer.

All the values are in txt and they are not words, they are codes.

I want to see if a code from cell x appears in column y - then have an answer yes or no.

I need to then copy this formula through 7000 rows checking the next cell (below the one above) with the SAME column fields

Thanks

EggHeadCafe - Software Developer Portal of Choice
Table and Stored Procedure Profile Providers for ASP.NET
http://www.eggheadcafe.com/tutorials...-procedur.aspx
.



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
Excel 2002 Formula: Urgent Conditional Formula Required Right Away - if possible blue[_2_] Excel Discussion (Misc queries) 2 July 11th 07 06:08 PM
Build excel formula using field values as text in the formula val kilbane Excel Worksheet Functions 2 April 18th 07 01:52 PM
Excel 2002 formula displayed not value formula option not checked Dean Excel Worksheet Functions 1 February 28th 06 02:31 PM
i edit a formula (excel) then it displays formula not answer caiman Excel Discussion (Misc queries) 2 September 9th 05 02:09 AM
Converting an Excel formula to an Access query formula Adam Excel Discussion (Misc queries) 1 December 15th 04 03:38 AM


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