+ Reply to Thread
Results 1 to 3 of 3

How to make an IF FUNCTION recur on subsequent rows if it fails.

  1. #1
    Registered User
    Join Date
    01-08-2014
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2010
    Posts
    20

    How to make an IF FUNCTION recur on subsequent rows if it fails.

    Hi,

    I'm hoping someone can help me to resolve the following. I have two columns as per below:

    Number 1 Name 1
    Number 2 Name 2
    Number 3 Name 3
    Number 4 Name 4
    Number 5 Name 5
    Number 6 Name 6
    Number 7 Name 7
    Number 8 Name 8
    Number 9 Name 9
    Number 10 Name 10
    Number 11 Name 11


    I also have a cell (M1) that utilises a data validation list in order to output a user chosen name from the "Name's" column. When a name (eg. Name 4) is chosen, I would like another cell (N1) to output the associated Number (Number 4).

    I was using an IF formula as per below:

    =IF(M1 = CELL1, CELL2, "")
    * Cell 1 is J38 and refers to the cell relevant to "Name 1" and Cell 2 is F38 equals the cell relevant to "Number 1"

    However, obviously this would only return the first row as if the test fails, it doesn't continue down through rows 39 and onwards.

    Thank you!

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: How to make an IF FUNCTION recur on subsequent rows if it fails.

    welcome to the forum. see if the attached file helps. you should also upload a sample file next time or we have to create something ourselves. and worse of all, it might not be what you want.

    =INDEX($F$38:$F$48,MATCH(J1,$J$38:$J$48,0))

    please try to change the range to match your own if it doesn't work before you try to upload your file. to upload a file,
    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Attached Files Attached Files

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    01-08-2014
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: How to make an IF FUNCTION recur on subsequent rows if it fails.

    Thank you that worked perfectly!!! Cheers for the best practice advice as well; I'll take that into account next time

+ 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. Copy the employee Ids to subsequent rows (approx 30 rows) using macro - Roster Type
    By Keerthi Raj in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-21-2013, 01:10 AM
  2. [SOLVED] updating subsequent rows on a different sheet
    By greg19 in forum Excel General
    Replies: 5
    Last Post: 04-09-2013, 09:03 PM
  3. Replies: 2
    Last Post: 06-15-2012, 12:22 PM
  4. How to make WebBrowser control display different HTML files on subsequent macro runs
    By VTHokie11 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-16-2012, 09:34 AM
  5. Referencing subsequent sheets by copying to subsequent columns
    By dglsart in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-23-2011, 11:03 AM

Tags for this Thread

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