Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Miscellaneous > Archive > Off-Topic-Archive > Need Excel help
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!

bottom of page
  
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
Paul Hanson is offline Paul Hanson
King
Dilbert
Aug 1999
time: 05:30
  Old Post 09-09-2003 02:03
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Need Excel help Support Apolyton, buy Civilization: The Boardgame

I've been tasked with creating a basic Excel program (although this probably isn't the correct term), but I've only ever used it about twice before in my life. What I need to do is this:

I need to write a program that allows you to input a number (six figure, if it's important), which is then checked against a list of six figure numbers to see if it matches any of them. It then needs to say if it does or not. Presentation isn't important (not at the moment, anyway), it just needs to work. So far, I have the numbers entered into one of the columns, but my Excel knowledge ends roughly about here.

Little help, anyone? Please?

Sharpe is offline Sharpe
King
Ontario
May 1999
time: 00:30
  Old Post 09-09-2003 02:09
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Help yourself to an AD-FREE life

=match(A3,B1:B100,0)

where a3 is where the inputted number is typed in and B1:B100 where the list of numbers that you want to see if there is any matches.

If there is a match, a number will result which indicates how far down the list the matched number is.

If there isn't a match, you will get "N/A".

if you want a "TRUE" or "FALSE" answer then modify the formula to

=if(isna(match(a3,B1:B100,0))=false,"MATCH","NO MATCH")

You can also replace the B1:B100 with just the column to get the entire column scanned (eg match(a3,B:B,0))

Last edited by Sharpe on 09-09-2003 at 02:16

Japher is offline Japher
Prince
Ook! Ook! Ack! Ack! Ack!
Jun 2002
time: 05:30
  Old Post 09-09-2003 02:12
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Put an end to popups!

Or, you can use the "or" function

Paul Hanson is offline Paul Hanson
King
Dilbert
Aug 1999
time: 05:30
  Old Post 09-09-2003 02:28
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Got spare money?

Sorry, thanks for the help and all, but you'll have to dumb it down a bit because I keep getting dialogue boxes about "circular references". Let me give you a bit more info so you can tailor the formula for me, because Christ knows, I can't do it myself.

Lets say I want the number to be entered in box B1, and the true/false answer in box B2. The numbers I want checked are in column A (A1 to A19 at the moment, although I may need to expand this in the future).

Is that enough to modify the formula for me? Thanks in advance to anyone who can sort it out for me.

Japher is offline Japher
Prince
Ook! Ook! Ack! Ack! Ack!
Jun 2002
time: 05:30
  Old Post 09-09-2003 02:44
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Lose 30 kilos (of popups)

With the "Or" fxn (takes a little time, Sharpe's is better for lots of number to compare to)

Put your numbers in A1-A19

In B2:

Highlight field (or just click on it)
Go to Insert -> fxn
Select Logical, A box will open up

"logical 1" B1=A1
"logical 2" B1=A2
"logical 3" B1=A3
etc...

When your done with all logic options OK
Then when you enter a number in B1, B2 will return "True" if it matches the number or "False" if it doesn't.

Japher is offline Japher
Prince
Ook! Ook! Ack! Ack! Ack!
Jun 2002
time: 05:30
  Old Post 09-09-2003 02:47
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Support Apolyton or Terrorists Win

For Sharpe's answer

Put this in B2:

=if(isna(match(B1,B1:B19,0))=false,"MATCH","NO MATCH")

Paul Hanson is offline Paul Hanson
King
Dilbert
Aug 1999
time: 05:30
  Old Post 09-09-2003 02:52
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Support Apolyton, buy Call to Power 2

Sorry, which logical function am I using here?

Paul Hanson is offline Paul Hanson
King
Dilbert
Aug 1999
time: 05:30
  Old Post 09-09-2003 02:55
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Support Apolyton, buy Civilization 2

Never mind, I got Sharpe's method to work with the alterations you gave me (and one or two other minor ones). Thanks a lot, guys.

Mods, you can close this if you want.

Japher is offline Japher
Prince
Ook! Ook! Ack! Ack! Ack!
Jun 2002
time: 05:30
  Old Post 09-09-2003 02:57
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Put an end to popups!

There's two different suggestions here. The "or" function is the easiest.

quote:
Put your numbers in A1-A19

In B2:

Highlight field (or just click on it)
Go to Insert -> fxn
Select Logical, A box will open up

"logical 1" B1=A1
"logical 2" B1=A2
"logical 3" B1=A3
etc...

When your done with all logic options OK
Then when you enter a number in B1, B2 will return "True" if it matches the number or "False" if it doesn't.



Yet if you have a really long list, Sharpe's "If" function is easier.

quote:
Put this in B2:

=if(isna(match(B1,B1:B19,0))=false,"MATCH","NO MATCH")


With the "B1:B19" indicating that list. Oh, it should be "A1:A19".

quote:
=if(isna(match(B1,A1:A19,0))=false,"MATCH","NO MATCH")
[/quote]

Paul Hanson is offline Paul Hanson
King
Dilbert
Aug 1999
time: 05:30
  Old Post 09-09-2003 03:01
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Support Apolyton, buy Civilization III: Complete

Yeah, I noticed the column thing when I tried to get it to work. No big deal.

I just figured Sharpe's method would be better if I had to expand the list at any point in the future, so I just edited A1:A19 to A:A, like he mentioned earlier, and it works fine.

Japher is offline Japher
Prince
Ook! Ook! Ack! Ack! Ack!
Jun 2002
time: 05:30
  Old Post 09-09-2003 03:02
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

kewl

I had never used the "match" thing 'till today. I'm still messing with it

Paul Hanson is offline Paul Hanson
King
Dilbert
Aug 1999
time: 05:30
  Old Post 09-09-2003 03:04
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Increase the size of your Attachments

I think we've both learned something today.

Provost Harrison is offline Provost Harrison
Emperor
The farce is strong with this one.
Feb 2000
time: 05:30
  Old Post 09-09-2003 03:48
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
Support Apolyton

Well on my excel file for work I have been making a lot of use of VLOOKUP

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:30.
Apolyton Time is 00:30.
    top of page
Rate This Thread:
archivepost
Forum Jump:
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0374 seconds (89.14% PHP - 10.86% MySQL) with 31 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net