+ Reply to Thread
Results 1 to 6 of 6

Insert value in one column based on info in another column

  1. #1
    Registered User
    Join Date
    12-13-2017
    Location
    Sweden
    MS-Off Ver
    Office 365 v2207
    Posts
    8

    Insert value in one column based on info in another column

    Hi

    I need help with a formula.

    I have two colums with data (C and D). I want data to be written in E based on the data in D:
    Find first 5 A. Write A1.
    Find next 8 A. Write A2
    Find next 8 A. Write A3
    Find next 5 A. Write A4
    Find next 8 A. Write A5

    Se attached file what I mean.
    Attached Files Attached Files

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Insert value in one column based on info in another column

    Something like this:
    Please Login or Register  to view this content.

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Insert value in one column based on info in another column

    e4=IF(D4="A",IFERROR("A"&LOOKUP(COUNTIF(D$4:D4,D4),{1,6,14,22,27,35},{1,2,3,4,5}),""),"")
    Try this and copy towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Insert value in one column based on info in another column

    in E4
    =IF(D4="A",LOOKUP(COUNTIF(D$4:D4,"A"),{0,6,14,22,27,35},{"A1","A2","A3","A4","A5"}),"")
    and copy down the column
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  5. #5
    Registered User
    Join Date
    12-13-2017
    Location
    Sweden
    MS-Off Ver
    Office 365 v2207
    Posts
    8

    Re: Insert value in one column based on info in another column

    Thanks a lot! All of them worked!

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Insert value in one column based on info in another column

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Extract selected column data based on column header info
    By ajay6985 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-09-2017, 02:07 AM
  2. [SOLVED] Calculating info in a column based on a "greater than" date & info in another column
    By fpm2002 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-06-2017, 12:58 AM
  3. Populate Column A based on Info in Column D
    By gbatz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-22-2014, 04:42 AM
  4. Replies: 4
    Last Post: 10-02-2013, 03:00 PM
  5. add info to new column based on current column
    By elmobram22 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-14-2013, 03:22 AM
  6. Insert/Update particular column based on background colour of another column
    By onenessboy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-01-2012, 03:28 AM
  7. Join Cells in One Column Based on Info in 2nd Column
    By fedorzarkhin in forum Excel General
    Replies: 8
    Last Post: 04-08-2012, 04:18 PM

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