#1   Report Post  
Jerry
 
Posts: n/a
Default Formula Help

I am trying to create a formula to do the following:

A1 contains a zip code.
Column B is a listing of zip codes with neach code in
it's own cell from B1 to B10.

I want what I think is an IF/Then formula that says IF A1
is found in the range from B1 to B10, then "Yes", if
not "No". Can anyone ehlp? Thanks.
  #2   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Here's one way:

=IF(A1="","",IF(COUNTIF(B1:B10,A1)0,"Yes","No"))

Biff

-----Original Message-----
I am trying to create a formula to do the following:

A1 contains a zip code.
Column B is a listing of zip codes with neach code in
it's own cell from B1 to B10.

I want what I think is an IF/Then formula that says IF A1
is found in the range from B1 to B10, then "Yes", if
not "No". Can anyone ehlp? Thanks.
.

  #3   Report Post  
Jerry
 
Posts: n/a
Default

Thanks Biff. It works with one annoying problem. If I
sort by column, A1 in the COUNTIF section ticks up one to
A2. I want it to remain on A1. Any ideas?

-----Original Message-----
Hi!

Here's one way:

=IF(A1="","",IF(COUNTIF(B1:B10,A1)0,"Yes","No" ))

Biff

-----Original Message-----
I am trying to create a formula to do the following:

A1 contains a zip code.
Column B is a listing of zip codes with neach code in
it's own cell from B1 to B10.

I want what I think is an IF/Then formula that says IF

A1
is found in the range from B1 to B10, then "Yes", if
not "No". Can anyone ehlp? 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
revert formula insertion to old method Don't be a pain in the ass Setting up and Configuration of Excel 0 January 24th 05 01:49 PM
Cell shows formula and not the result of the formula. stumpy1220 Excel Worksheet Functions 2 January 14th 05 05:11 PM
Relative Indirect Formula Referencing? Damian Excel Worksheet Functions 1 January 7th 05 04:16 AM
Help with macro formula and variable Huge project Excel Worksheet Functions 0 December 28th 04 01:27 AM
Cell doesn't show formula result - it shows formula (CTRL + ' doe. o0o0o0o Excel Worksheet Functions 6 November 19th 04 03:13 PM


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