Solved

Google Driive calc - Assign correlative numbers 1, 2,   to a equal codes

Posted on 2016-08-03
3
79 Views
Last Modified: 2016-08-03
Hi,

I would like to know if ther is any formula to automatically assign the same correlative number to equal or repetitive codes.

For column  ORDEN is there any  formula to assing the same number to ORDEN for each equal Ordernumber as in this example?
That is ORDEN 1 for all repetied order 200001195
ORDEN 2 for all repeted order 200001198

ORDEN      Ordernumber
1      200001195
1      200001195
1      200001195
2      200001198
2      200001198
3      100005020
3      100005020
3      100005020
3      100005020

Thanks again
0
Comment
Question by:apocalip30
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 50

Accepted Solution

by:
Rgonzo1971 earned 500 total points
ID: 41740397
Hi,

Pls enter a 1 at line 2
at line 3 this formula
=IF(B3=B2;A2;A2+1)

Open in new window

and fill down

Regards
0
 

Author Closing Comment

by:apocalip30
ID: 41740417
Thanks !!
0
 
LVL 18

Expert Comment

by:xtermie
ID: 41740421
If these are not in sequence the formula above will not work.
It would be preferable to put unique ORDEN and Ordernumber combinations into a separate sheet and use a vlookup statement to fill in the ORDEN based on exiting Ordernumber values in that lookup sheet.
If there is no such number, the next number will be automatically assigned.
However, in this case do not forget to add the new unique ORDEN and Ordernumber combination to the lookup sheet and update the lookup reference in the formula

Check the example I've attached.
Example_Orden.xlsx
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Calculate number of months in Excel 13 30
Macro that Locks & Unlocks Worksheet 4 31
Pull Phone Number out of Cell 3 12
Array not populating all cells in Excel 6 24
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

697 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question