MrExcel Message Board

Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old May 8th, 2002, 08:31 AM   #1
Wing-it
New Member
 
Join Date: May 2002
Posts: 8
Default

hello folks, 1st timer here, Well this is my question. I have a range of numbers in two columns, and I would like to be able to for instance say Im looking for a number between 500 - 480, when it locates the number to indicate it in the column next to it with a number 1 0r 2.
this is what im using but Im out in left field and at a loss. The $t$3 and $u$3 cells are the different number ranges that i can change to looking for.

=IF($T$3<=T8,IF($U$3>=U8,1,""))

526 454 answer
510 477 answer
500 477 answer

thanks


[ This Message was edited by: Wing-it on 2002-05-08 07:35 ]
Wing-it is offline   Reply With Quote
Old May 8th, 2002, 08:44 AM   #2
Ian Mac
MrExcel MVP
 
Join Date: Feb 2002
Location: Newcastle, UK
Posts: 1,174
Default

Quote:
On 2002-05-08 07:31, Wing-it wrote:
hello folks, 1st timer here, Well this is my question. I have a range of numbers in two columns, and I would like to be able to for instance say Im looking for a number between 500 - 480, when it locates the number to indicate it in the column next to it with a number 1 0r 2.
this is what im using but Im out in left field and at a loss. The $t$3 and $u$3 cells are the different number ranges that i can change to looking for.

=IF($T$3<=T8,IF($U$3>=U8,1,""))

526 454 answer
510 477 answer
500 477 answer

thanks


[ This Message was edited by: Wing-it on 2002-05-08 07:35 ]
not sure what you mean by a 1 or 2

but this may be helpful

=IF(AND(T8<=$T$3,U8>=$U$3),1,"")

or alternatively:

=(T8<=$T$3)*(U8>=$U$3)*1

where the answer will be 1 or 0

any help?


__________________
"Have a good time......all the time"
Ian Mac
Ian Mac is offline   Reply With Quote
Old May 8th, 2002, 09:22 AM   #3
Wing-it
New Member
 
Join Date: May 2002
Posts: 8
Default

Ian,

Thanks for the post, But that still is not getting the answer im looking for. Its pulling only half of the range, Not the range from one number to the other. like if i choose 530 - 490, it calls 541 - 482. Do you have another idea as to how I can pull the range im looking for.

Thanks again
Wing-it is offline   Reply With Quote
Old May 8th, 2002, 09:28 AM   #4
Ian Mac
MrExcel MVP
 
Join Date: Feb 2002
Location: Newcastle, UK
Posts: 1,174
Default

Quote:
On 2002-05-08 08:22, Wing-it wrote:
Ian,

Thanks for the post, But that still is not getting the answer im looking for. Its pulling only half of the range, Not the range from one number to the other. like if i choose 530 - 490, it calls 541 - 482. Do you have another idea as to how I can pull the range im looking for.

Thanks again
I'm now entirely lost as to what you need.
could explain further what

like if i choose 530 - 490, it calls 541 - 482

means.
Where do these numbers come from?
__________________
"Have a good time......all the time"
Ian Mac
Ian Mac is offline   Reply With Quote
Old May 8th, 2002, 09:38 AM   #5
Wing-it
New Member
 
Join Date: May 2002
Posts: 8
Default


Thickness Range
530 490


A End B End
max min max min
526 454 519 451
510 477 525 468
500 471 495 457
507 473 507 469
506 476 530 478
496 470 535 476
488 474 511 471
518 466 484 465
501 481 510 479
513 484 495 473
510 470 504 485
495 486 491 473
489 454 514 476
491 470 513 483
491 464 478 465
523 467 479 452
476 487 502 477
530 463 1 495 469
479 491 549 489
506 450 482 446
475 457 515 475
502 456 475 463


sort of a little data base, at the top in thickness range I can choose the range I'm looking for, in the column next to the number it will indicate which ones are in that range.

Sorry about that sometimes I have a hard time discribing things.

Wing-it
If it will help i could send to u

[ This Message was edited by: Wing-it on 2002-05-08 08:43 ]
Wing-it is offline   Reply With Quote
Old May 8th, 2002, 10:06 AM   #6
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
Default

Quote:
On 2002-05-08 08:38, Wing-it wrote:

Thickness Range
530 490


A End B End
max min max min
526 454 519 451
510 477 525 468
500 471 495 457
507 473 507 469
506 476 530 478
496 470 535 476
488 474 511 471
518 466 484 465
501 481 510 479
513 484 495 473
510 470 504 485
495 486 491 473
489 454 514 476
491 470 513 483
491 464 478 465
523 467 479 452
476 487 502 477
530 463 1 495 469
479 491 549 489
506 450 482 446
475 457 515 475
502 456 475 463


sort of a little data base, at the top in thickness range I can choose the range I'm looking for, in the column next to the number it will indicate which ones are in that range.

Sorry about that sometimes I have a hard time discribing things.

Wing-it
If it will help i could send to u

[ This Message was edited by: Wing-it on 2002-05-08 08:43 ]
Is this a 2-coulmn or 4-column table?

If the latter, which rows contain the pair you want look for?
Aladin Akyurek is offline   Reply With Quote
Old May 8th, 2002, 10:26 AM   #7
Wing-it
New Member
 
Join Date: May 2002
Posts: 8
Default

Ok this is a 4 column data base with about 1200 numbers in each column.

Example:

cell T3 and U3 are the cells I choose for the formula to search for. 500 480

Thickness Range
500 480


A End B End
max min max min
526 454 1 519 451 1
510 477 1 525 468 1
500 471 1 495 457
507 473 1 507 469 1
506 476 1 530 478 1
496 470 535 476 1
488 474 511 471 1
518 466 1 484 465
501 481 510 479 1
513 484 495 473

the result should indicate in the column to the right of the two data columns.

What im looking for, is if i indicate set of number between 500 - 470, it should indicated in the column next to the data which number falls in between the range I choose.

Well I can't seam to get the post to stay formated to show u, All i can say is there are two columns of data then the answer or the formula is in the column next to the two data columns the other two columns are a repeat of the same thing.

thanks

[ This Message was edited by: Wing-it on 2002-05-08 09:34 ]
Wing-it is offline   Reply With Quote
Old May 8th, 2002, 10:46 AM   #8
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
Default

Quote:
On 2002-05-08 09:26, Wing-it wrote:
Ok this is a 4 column data base with about 1200 numbers in each column.

Example:

cell T3 and U3 are the cells I choose for the formula to search for. 500 480

Thickness Range
500 480


A End B End
max min max min
526 454 1 519 451 1
510 477 1 525 468 1
500 471 1 495 457
507 473 1 507 469 1
506 476 1 530 478 1
496 470 535 476 1
488 474 511 471 1
518 466 1 484 465
501 481 510 479 1
513 484 495 473

the result should indicate in the column to the right of the two data columns.

What im looking for, is if i indicate set of number between 500 - 470, it should indicated in the column next to the data which number falls in between the range I choose.

Well I can't seam to get the post to stay formated to show u, All i can say is there are two columns of data then the answer or the formula is in the column next to the two data columns the other two columns are a repeat of the same thing.

thanks [img]/board/images/smiles/icon_smile.gif[/img]

[ This Message was edited by: Wing-it on 2002-05-08 09:34 ]
I'll assume your database to start at row 3 from A3 on: that is, 526 (the first number) is in A3, 454 in B3, C3 is currently empty, 519 in D3, 451 in E3, and F3 is currently empty.

Apparantly, you want a forrmula in C3 that checks whether T3 is between A3 and B3, and another formula in F3 that checks whether U3 is between D3 and E3.

If so,

in C3 enter and copy down:

=($T$3>=B3)*($T$3<=A3)

in F3 enter and copy down:

=($U$3>=E3)*($U$3<=D3)

Hope this is what you are looking for.
Aladin Akyurek is offline   Reply With Quote
Old May 8th, 2002, 11:07 AM   #9
Wing-it
New Member
 
Join Date: May 2002
Posts: 8
Default

well thats close, but I want the formula to be able to check the range I give 500 - 590, or any range, the formula needs to check both a & B column at the same time it see if it falls in between or is in the same range. Which looks for anything from 500 to 590 from each column

Thanks again
Wing-it is offline   Reply With Quote
Old May 8th, 2002, 11:40 AM   #10
Wing-it
New Member
 
Join Date: May 2002
Posts: 8
Default

Please don't give up on me know!!!!
Wing-it is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On

Forum Jump


All times are GMT -4. The time now is 11:30 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
All contents Copyright 1998-2012 by MrExcel Consulting.
diabetic desserts recipes recipes Diabetic Soups Holiday Pizza Recipes Popcorn Recipes Recipes For Microwave Pasta Recipes Casserole Recipes Chili Recipes Curry Recipes Crockpot Recipes Apples Recipes Bread Recipes Vegetarian Recipes Vegetable recipes Desserts Recipes Appetizers Ethnic Recipes Meat Dishes Barbecue Recipes Sauces Recipes Marinade Recipes Low Fat Recipes Frugal Gourmet Kitchen Classics Recipes On The Grill Cook Books Seafood Recipes Cajun Recipes Breads Low Fat Low Fat Breads Bread Machine Recipes Yeast Breads Quick Breads Fat Free Vegetarian Salad Recipes Eggplant Recipes Radish Recipes Tomato Recipes Jalapeno Recipes Potato Recipes Lettuce Recipes Cabbage Recipes Beans Ambrosia Recipes Biscotti Recipes Desserts Low Fat Cookie Recipes Cheesecake Recipes Cake Recipes Pie Recipes Muffin Recipes Custard Recipes Best Appetizers Appetizers Low Fat Salsa Recipes Dip Recipes International Recipes Afghan Recipes Alaska Recipes French Recipes German Recipes Greek Recipes Italian Recipes Spanish Recipes Thai Recipes Korean Recipes Chinese Recipes Mexican Recipes Indian Recipes Beef Recipes Pork Pork & Ham Pork Butts Pork Chop Recipes Pork Ribs Rulled Pork Poultry Recipes Stews Recipes Ground Beef Barbecue Grill Barbecue Smoker All Purpose Sauce BBQ Sauce Barbecue Sauce Carolina BBQ Sauce Pickle Recipes Marinades Smoking Low Fat Appetizers & Dips Low Fat Breakfast Low Fat Cakes Low Fat Cheesecakes Low Fat Cookies Low Fat Desserts Low Fat Fish & Seafood Low Fat Meats Low Fat Pasta Low Fat Pies Low Fat Salads Low Fat Sandwiches Low Fat Sauces & Condiments Low Fat Sides Low Fat Soups Low Fat Vegetarian Baker's Dozen Taste of Home Recipe Book Bon Appetit Cookbook Blacktie Cookbook Buster Cook Book Cookbook USA Cook Book Cook Book Sara's Cookbook Sara's Cookbook Appetizers and Dips Poultry recipes Diabetic recipes Holiday recipes Miscellaneous recipes 110 recipes 1986 Usenet cookbook 2900 recipes Cyberrealm recipes Great sysops of world Specialty recipes Ceideburg recipes Cheese recipes Chili recipes Fruits recipes Garlic recipes Great chefs of NY Londontowne recipes Raisins recipes Recipes for kids US Food Vegetarian recipes Bread recipes Drinks Meat Dishes Brisket recipes Caribou recipes Chicken recipes Filet mignons recipes Pork recipes Swordfish recipes Turkey recipes Pasta recipes Uncategorized recipes Ethnic recipes Canada recipes English recipes Ethiopia recipes Germany recipes Greece recipes Mexican recipes Philippines recipes Welsh recipes Microwave recipes Soups recipes Vegetable recipes Asparagus recipes Barley recipes Brown rice recipes Lentil recipes Mushrooms recipes Salads recipes Wild rice Desserts recipes Cakes recipes Chocolate recipes Cookies recipes Ice cream recipes