User User name Password  
   
Thursday 9.1.2025 / 11:36
Search AfterDawn Forums:        In English   Suomeksi   På svenska
afterdawn.com > forums > general discussion > all other topics > excel help
Show topics
 
Forums
Forums
Excel Help
  Jump to:
 
Posted Message
emdadhul
Junior Member
_
4. August 2010 @ 11:25 _ Link to this message    Send private message to this user   
Hi I need help with Excel.

Basically what I want to do is use an IF statement or otherwise to set up excel to allow only one value to be inserted into one of two collums not both. If values are typed into both fields excel shouldn't accept it and give an error message.

Please can someone help me with the Excel Jargon

Many Thanks
Advertisement
_
__
AfterDawn Addict
_
4. August 2010 @ 13:31 _ Link to this message    Send private message to this user   
You need to use validation rules for that, based on an IF statement.

In both of your fields, set a validation rule as follows:




That is the validation rule that would go in cell A2, and vice versa for cell B2. You can set a custom error message in the other tabs.

IF(B2="*",0,0)

IF( - function
B2="*" - B2 equals anything
,0,0) - display nothing (you can change these values to display things within the cell. the first value is what would be displayed if B2 was empty, and the second value is what would be displayed if B2 contained a value)

Hope that helps.

Edit: Based on the above, it would return this..





This message has been edited since posting. Last time this message was edited on 4. August 2010 @ 13:34

emdadhul
Junior Member
_
4. August 2010 @ 14:17 _ Link to this message    Send private message to this user   
Would I be able to copy the Formula into both cells.
emdadhul
Junior Member
_
4. August 2010 @ 14:24 _ Link to this message    Send private message to this user   
Would I be able to ask you for a favour, can you kindly make me a screen capture video of the above
AfterDawn Addict
_
5. August 2010 @ 05:29 _ Link to this message    Send private message to this user   
I don't have any video capture software installed anymore, but if you want I'll make you a spreadsheet with the validation rules set and you can have a look for yourself.


emdadhul
Junior Member
_
5. August 2010 @ 06:32 _ Link to this message    Send private message to this user   
Thanks :-)

Very Helpful
AfterDawn Addict
_
5. August 2010 @ 07:03 _ Link to this message    Send private message to this user   
What I had in mind didn't work in practise, I'll mess around with it some more (I'm not an Excel expert by any means, far from it). You may have to use Visual Basic to achieve your result, in which case I wouldn't be able to help you - Googling it provides quite a few answers. Sorry :-(


emdadhul
Junior Member
_
5. August 2010 @ 07:21 _ Link to this message    Send private message to this user   
Originally posted by Ripper:
What I had in mind didn't work in practise, I'll mess around with it some more (I'm not an Excel expert by any means, far from it). You may have to use Visual Basic to achieve your result, in which case I wouldn't be able to help you - Googling it provides quite a few answers. Sorry :-(
I've never heard of Visual Basic lol......Thanks 4 trying please do let me know if you have any joy with EXCEL.

Many Thanks
AfterDawn Addict
_
5. August 2010 @ 07:54 _ Link to this message    Send private message to this user   
Visual Basic is a type of code that you can use within Excel to perform more advanced functions. You'd be better off posting on a specialised help forum I think, perhaps this one:

http://www.excelforum.com/

Unless someone who is good with VB happens upon this thread!


Advertisement
_
__
 
_
emdadhul
Junior Member
_
5. August 2010 @ 08:02 _ Link to this message    Send private message to this user   
Originally posted by Ripper:
Visual Basic is a type of code that you can use within Excel to perform more advanced functions. You'd be better off posting on a specialised help forum I think, perhaps this one:

http://www.excelforum.com/

Unless someone who is good with VB happens upon this thread!
Thanks will try!!!!
afterdawn.com > forums > general discussion > all other topics > excel help
 

Digital video: AfterDawn.com | AfterDawn Forums
Music: MP3Lizard.com
Gaming: Blasteroids.com | Blasteroids Forums | Compare game prices
Software: Software downloads
Blogs: User profile pages
RSS feeds: AfterDawn.com News | Software updates | AfterDawn Forums
International: AfterDawn in Finnish | AfterDawn in Swedish | AfterDawn in Norwegian | download.fi
Navigate: Search | Site map
About us: About AfterDawn Ltd | Advertise on our sites | Rules, Restrictions, Legal disclaimer & Privacy policy
Contact us: Send feedback | Contact our media sales team
 
  © 1999-2025 by AfterDawn Ltd.

  IDG TechNetwork