+ Reply to Thread
Results 1 to 3 of 3

Based on formaulaAutofill one column based on another column using a certain logic

  1. #1
    Registered User
    Join Date
    07-09-2009
    Location
    india
    MS-Off Ver
    Excel 2003
    Posts
    5

    Based on formaulaAutofill one column based on another column using a certain logic

    Hi,

    I have two columns in my excel sheet say EventName and EventId ,where based on the EventName the Event_id should get auto-populated.

    Say if the value of event_name is ab the event_id would be 1 and if it's ** the event-id would be 2,but again if the event_name is ab,the event_id should be 1.

    I am attaching here a example table of how the entries should look like:

    Event_id Event_Name
    1 ab
    2 bc
    3 **
    1 ab
    3 **
    4 df
    5 ed
    2 bc

    Hence when the Event-name is occurring for the first time in Event_Name column the event_id column should get populated with the max value+1 for that column,while for same entry in Event_name column the event_id should get the corresponding value of the same event_name.

    Can someone please guide me on how to achieve this?

    Thanks
    Arnab

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    re: Based on formaulaAutofill one column based on another column using a certain logic

    i can only do it with a couple of helper columns which you could put on another sheet or just hide
    Attached Files Attached Files
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    07-09-2009
    Location
    india
    MS-Off Ver
    Excel 2003
    Posts
    5

    re: Based on formaulaAutofill one column based on another column using a certain logic

    Hi ForumGuru,

    Thankyou very much,this worked fine.

    Thanks Arnab

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1