corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » Excel - Google isn't helping with this one


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author Excel - Google isn't helping with this one
A2H GO
Member

Registered: 14th Sep 04
Location: Stoke
User status: Offline
29th Oct 11 at 13:09   View User's Profile U2U Member Reply With Quote

I want to prevent people from putting anything other than H,T, U,O followed by up to 3 numbers into a cell.

Like H7, H77, or H777.

Not 7H, H or H7777.

M2RTY
Member

Registered: 25th May 01
User status: Offline
29th Oct 11 at 14:31   View User's Profile U2U Member Reply With Quote

Its under the custom format tab, where to tell it its text or currency etc
pow
Premium Member

Avatar

Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
30th Oct 11 at 09:04   View Garage View User's Profile U2U Member Reply With Quote

Data Validation
A2H GO
Member

Registered: 14th Sep 04
Location: Stoke
User status: Offline
30th Oct 11 at 10:22   View User's Profile U2U Member Reply With Quote

Yep, think I need soothing along the lines of this:

=AND(ISNUMBER(SEARCH(LEFT(E17,1), "HTUO")), ISNUMBER(MID(E17,2,LEN(E17))+0), LEN(E17<=4))
Robbo
Member

Registered: 6th Aug 02
Location: London
User status: Offline
30th Oct 11 at 11:17   View User's Profile U2U Member Reply With Quote

quote:
Originally posted by pow
Data Validation
Dom
Member

Registered: 13th Sep 03
User status: Offline
30th Oct 11 at 13:37   View User's Profile U2U Member Reply With Quote

quote:
Originally posted by Robbo
quote:
Originally posted by pow
Data Validation



This, although IIRC it still allows you to paste anything to a cell so it isn't full proof.

Edit - VBA would probably be the best solution, could also regex it (plenty of VBA examples on google)

[Edited on 30-10-2011 by Dom]

 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
is there a program that...... chris_uk Geek Day 6 1909
16th Jun 05 at 00:47
by Dan B
 
Excel Help AndyKent Geek Day 3 1465
6th Oct 07 at 10:22
by aPk
 
R119 offence code R Lee General Chat 5 275
31st Mar 09 at 17:12
by R Lee
 
Neon wall clocks? Ojc House Day 12 482
22nd Jun 11 at 00:35
by Ben G
 
Microsoft Excel strick206 Geek Day 10 1491
6th Jul 11 at 14:46
by Sam
 

Corsa Sport » Message Board » Off Day » Geek Day » Excel - Google isn't helping with this one 29 database queries in 0.0195959 seconds