Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Incremental number field with User ID

I have an Excel list in one sheet with a form attached in a separate sheet -
one is a master list of quotes issued and the other is the form to fill out
to complete a quote. Currently a user has to get the next quote number in
the list manually and then enter into the quote form.

The quote takes the format of Q <next number <initials

What I need to achieve is for the user to open the form and be prompted to
give their initials. The form would then grab the next available number in
the list and apply those initials to that number - thus making the quote
number complete. The code would then write that number back to the Quote
Number field of the original list along with a few other details once the
rest of the form has gone about its business.

I can sort of achieve most of this, but the code is very long-winded and
clunky (based upon a macro, basically). I know I could achieve this in
Access however it is causing more problems than it is worth with regards to
linking fields and such - so I need a more efficient Excel code. Can anyone
help?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 233
Default Incremental number field with User ID

A formula should be able to do this:

say initials in column B and ID in A then define a named range/formula:

=TEXT(ROW();"#") & Sheet1!$B1 while standing in cell A1 of sheet1

now you can either fill this ID Down, or insert in on a new quote or
use it as a cell validation formula (just try it for a change you'll
see how it works). You can insert the formula itsself (will update ID
when initials change) or just it's value.

Hope this points in the right direction

DM unseen

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Incremental number field with User ID

Getting an error in the ROW() function...?

Also, initials and ID are the same thing

"DM Unseen" wrote:

A formula should be able to do this:

say initials in column B and ID in A then define a named range/formula:

=TEXT(ROW();"#") & Sheet1!$B1 while standing in cell A1 of sheet1

now you can either fill this ID Down, or insert in on a new quote or
use it as a cell validation formula (just try it for a change you'll
see how it works). You can insert the formula itsself (will update ID
when initials change) or just it's value.

Hope this points in the right direction

DM unseen


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 233
Default Incremental number field with User ID

Sorry,

Im mean Quote ID = <next number <initials

Note that ROW() will get the row number of the current cell,(but maybe
you use other language?)
Please look this up in Excel help.


DM Unseen

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Incremental number field with User ID

I'm failing to see how ROW() applies here - going on what you've said I'm
using that as a formula in a cell (was that what you meant) and it's throwing
up an error because ROW does not accept the argument without further
conditions...?!

"DM Unseen" wrote:

Sorry,

Im mean Quote ID = <next number <initials

Note that ROW() will get the row number of the current cell,(but maybe
you use other language?)
Please look this up in Excel help.


DM Unseen


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
Error Message if user leaves a field blank GillianX Excel Worksheet Functions 1 October 14th 08 05:40 PM
Incremental number for a fetching data The Ron Excel Worksheet Functions 1 November 9th 07 07:21 PM
assign an incremental number to a cell, for each new spreadsheet MarkWatson Excel Worksheet Functions 0 June 21st 07 02:09 AM
How do I set up a field in an Excel form to number it incremental. max Excel Worksheet Functions 1 November 29th 04 10:33 PM
Using a field to let user +/- from values. GaleForce[_5_] Excel Programming 1 July 29th 04 03:50 PM


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