Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Ernest Lai
 
Posts: n/a
Default Formula to see if a number is allocated

I need to find out if a number is allocated or free. Basically on sheet1 is
a load of information. in Column G on this sheet is a unique identifier
number.

In sheet2 I have a list of numbers say from 1-100 which correspond to the
identifier numbers in sheet1. Id like a forumla something like:

"If A1 in sheet 2 = any number in column G in sheet1, then print Allocated,
else print free"

At the moment I have: =IF(A1=Sheet1!G:G,"allocated", "free")
But it does not work. What it is doing is If A1 = everything in column G
then say allocated, else say free. So the results im getting are all free.

Thanks in advance, any help is much appreciated
  #2   Report Post  
Posted to microsoft.public.excel.misc
Harald Staff
 
Posts: n/a
Default Formula to see if a number is allocated

Try

=ISNA(MATCH(A1,Sheet1!G:G,0))

HTH. Best wishes Harald

"Ernest Lai" skrev i melding
...
I need to find out if a number is allocated or free. Basically on sheet1
is
a load of information. in Column G on this sheet is a unique identifier
number.

In sheet2 I have a list of numbers say from 1-100 which correspond to the
identifier numbers in sheet1. Id like a forumla something like:

"If A1 in sheet 2 = any number in column G in sheet1, then print
Allocated,
else print free"

At the moment I have: =IF(A1=Sheet1!G:G,"allocated", "free")
But it does not work. What it is doing is If A1 = everything in column G
then say allocated, else say free. So the results im getting are all
free.

Thanks in advance, any help is much appreciated



  #3   Report Post  
Posted to microsoft.public.excel.misc
Ernest Lai
 
Posts: n/a
Default Formula to see if a number is allocated

thanks a lot that worked a treat!


"Harald Staff" wrote:

Try

=ISNA(MATCH(A1,Sheet1!G:G,0))

HTH. Best wishes Harald

"Ernest Lai" skrev i melding
...
I need to find out if a number is allocated or free. Basically on sheet1
is
a load of information. in Column G on this sheet is a unique identifier
number.

In sheet2 I have a list of numbers say from 1-100 which correspond to the
identifier numbers in sheet1. Id like a forumla something like:

"If A1 in sheet 2 = any number in column G in sheet1, then print
Allocated,
else print free"

At the moment I have: =IF(A1=Sheet1!G:G,"allocated", "free")
But it does not work. What it is doing is If A1 = everything in column G
then say allocated, else say free. So the results im getting are all
free.

Thanks in advance, any help is much appreciated




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
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
2nd attempt ~ complicated formula Luke Excel Worksheet Functions 3 November 9th 05 03:33 AM
Transform a Cell from Formula to Number Sloth Excel Discussion (Misc queries) 4 July 11th 05 05:46 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
Is it possible to change the "result of a formula" to a "number? Renee R. Excel Discussion (Misc queries) 0 February 8th 05 02:27 PM


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