+ Reply to Thread
Results 1 to 9 of 9

populate row information based on cell condition or cell value

  1. #1
    Forum Contributor
    Join Date
    08-28-2013
    Location
    grand rapids, michigan
    MS-Off Ver
    Excel 2010
    Posts
    163

    populate row information based on cell condition or cell value

    Hello Friends,

    Policy in row 2 is 49 months old and should be relegated to a page for policies between 37 and 60 months

    Policy in row 3 is 19 months old and should be relegated to a page for policies between 0 and 30 months old

    Policy in row 4 is 32 months old and should be relegated to a page for policies between 31 and 36 months old

    Column 3 (H) represents policy age.

    I have sample formulae on a flash drive that would give me enough of a refresher on how to figure out this simple formula, but I have a new office and this computer will not recognize the flash drives. I wrote a ticket to IS, but we all know how long that will take. Please be kind an give me a refresher on this.

    Thank you.
    Attached Files Attached Files
    Last edited by opusarlo; 11-02-2015 at 10:15 AM. Reason: newer version posted

  2. #2
    Valued Forum Contributor
    Join Date
    02-04-2009
    Location
    Texas
    MS-Off Ver
    Excel 2016
    Posts
    665

    Re: populate row information based on cell condition or cell value

    do you want to identify the page or move the info.
    Identify the page - set up a range with Row: 0,31,37 & Another Row Page #
    Use Match to identify the correct column (Policy in Row 2 would return 3, Policy in Row 3 would return 1)
    Then you could use lookup or index to return the result you want.

  3. #3
    Forum Contributor
    Join Date
    08-28-2013
    Location
    grand rapids, michigan
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: populate row information based on cell condition or cell value

    I don't know where you get your Excel knowledge, but I would write a pretty fat check to have it. Sorry bro, I never took a class so I have no idea what you are talking about. I have been using formulae gleaned from here and tweaking them to make them work for new projects. I just cannot access the formulae right now. Is there a possibility showing me an example with the file I uploaded? If not, is OK too. Not trying to put you out.
    Attached Files Attached Files
    Last edited by opusarlo; 11-02-2015 at 10:16 AM. Reason: newer version posted

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,737

    Re: populate row information based on cell condition or cell value

    Do you want the whole of the policy information copied to the relevant sheet, or just parts of it?

    Pete

  5. #5
    Forum Contributor
    Join Date
    08-28-2013
    Location
    grand rapids, michigan
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: populate row information based on cell condition or cell value

    Columns C, E, H, P are the columns I am most interested in. Policy #, policy name, months since review, and comments.

  6. #6
    Forum Contributor
    Join Date
    08-28-2013
    Location
    grand rapids, michigan
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: populate row information based on cell condition or cell value

    Here is where I am so far with the retrofitting of a formula


    Excel Forum Version Policy Spreadsheet.xlsm

    Not only does it still not work, but it won't even tell my why. This is the formula you see entered in A1 of '>60 days overdue'

    =IFERROR(INDEX(Master!$A$3:$P$6,SMALL(IF(Master!$H$3:$H$6>170,ROW(Master!$H$3:$H$6)-1),ROWS($H$1:H1)),MATCH(I$1,Master!$H$3:$P$3,)),"")

    yes I entered it as an array (cntrl, alt, enter)

    Please tell me why this is not working and how to get it to work. You can tell by reading the tabs how I am wanting to sort this data.

  7. #7
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,737

    Re: populate row information based on cell condition or cell value

    I've attached the file that I worked on when I first replied to you - I've been waiting for you to get back to me.

    In the main sheet I inserted two new columns (S and T) and put this formula in T2:

    =IF(H2="","-",MATCH(H2,{0,31,37,61})&"_"&COUNTIF(T$1:T1,MATCH(H2,{0,31,37,61})&"_*")+1)

    and copied this down to beyond your data - the hyphens show where the formula is active. The formula identifies which of the 4 age groups column H falls into, and then adds a sequential number to the end of this, separated by an underscore. Consequently, each record has a unique identifier. I've also added two test records to show the effect of the formula more clearly.

    In the subsidiary sheets I've inserted a new row 1 and put the numbers 1 to 4 in cell A1 to correspond to the appropriate age group. I've also put this formula in cell S5:

    =IFERROR(MATCH($A$1&"_"&ROWS($1:1),'All Policies'!$T:$T,0),"-")

    and again this is copied down beyond the data expected (to row 20 in the example file). This formula finds the row in the main sheet where the record occurs, starting with record 1 for that age group and continuing down the page (with a hyphen showing where the record does not exist.

    In cell A5 of the subsidiary sheets I've used this formula:

    =IF(OR($S5="-",$S5=""),"",IF(INDEX('All Policies'!A:A,$S5)="","",INDEX('All Policies'!A:A,$S5)))

    which brings the data from column A of the main sheet where column S indicates it is present, and ensures that blank entries are shown as blank. This formula is copied across to column R, so that it brings all the fields for that record, and the appropriate formatting has been applied to each cell using the Format Painter from the main sheet. The row of formulae have then been copied down to row 20 in each of the subsidiary sheets.

    Hope this helps.

    Pete
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    08-28-2013
    Location
    grand rapids, michigan
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: populate row information based on cell condition or cell value

    This solution is as complete as it is complex. I completely appreciated it, as it appears to be one that might be more responsive to retrofitting in the future. Thank you for the time it obviously took to revamp the book instead of just offer a solution in the form of a formula. The explanation helps me understand it much better than if it had not been there.

  9. #9
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,737

    Re: populate row information based on cell condition or cell value

    Glad to be of help - thanks for the rep.

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

    Pete

+ 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. Extract information from a string and populate in another cell
    By shoniaml in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 11-22-2013, 04:29 AM
  2. Populate cells with specific information based on one cell
    By MrMims in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-13-2013, 02:25 PM
  3. Populate data based on cell information
    By famico78 in forum Excel General
    Replies: 6
    Last Post: 04-04-2013, 06:11 PM
  4. [SOLVED] What can I use to populate a cell using information in other cells?
    By rcabunac in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-11-2012, 09:21 AM
  5. Populate a cell based on another cells condition
    By verder27 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-23-2012, 12:36 AM
  6. Select worksheet based on condition & populate cell based on condition
    By beth1069 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-19-2011, 01:27 PM
  7. how to populate information from one excel to another cell to a specified cell
    By david_benjamin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-07-2011, 01:15 PM
  8. Replies: 2
    Last Post: 08-02-2010, 09:25 AM

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