+ Reply to Thread
Results 1 to 5 of 5

How to jump to the next cell down in excel to compare records after logical test returns f

  1. #1
    Registered User
    Join Date
    08-09-2015
    Location
    uk
    MS-Off Ver
    2013
    Posts
    4

    Question How to jump to the next cell down in excel to compare records after logical test returns f

    Hi there,

    I am in urgent need to create a formula to automatically fill the data on column C(Patentee).

    Where Record ID (1-1, 1-2, etc in table 1) are subdivisions of Record ID (1,2,3 in table 2). I need to assign the Patentee name to each and every record.

    I have got to the point where I can compare the digits in the two record ID colums but need to jump to the next record in table two if the result of the logical text is false.

    Also, how can I compare anything before the "-" as I am using left(recordID, 1) but once I get to decimals etc, the formula isn't good any longer...

    IF(left(RecordID, 1)=VALUE(RecordID),Patentee, ???)

    Any ideas will be much appreciated!

    Cheers,

    K

    Table 1
    Record ID Drug Name Patentee
    1-1 Meropenem (Product) ACS Dobfar S.p.A.
    1-2 Meropenem Intermediate ACS Dobfar S.p.A.
    2-1 Ertapenem (Product) XYZ
    2-2 Ertapenem Intermediate XYZ
    3-1 Orlistat (Product) KRKA, D.D.
    3-2 Orlistat Intermediate KRKA, D.D.
    4-1 Erlotinib Intermediate KRKA, D.D.
    4-2 Erlotinib (Product) KRKA, D.D.


    Table 2
    Record ID Drug Name Patentee
    1 Meropenem ACS Dobfar S.p.A.
    2 Ertapenem XYZ
    3 Orlistat KRKA, D.D.
    Attached Files Attached Files

  2. #2
    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,308

    Re: How to jump to the next cell down in excel to compare records after logical test retur

    If I understand correctly that by decimal you mean >=10 and looking at Table 2 based on Table 1

    =VLOOKUP((LEFT(A3,FIND("-",A3)-1))+0,$E$3:$G$6,3,0)

  3. #3
    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,308

    Re: How to jump to the next cell down in excel to compare records after logical test retur

    Please do not re-post: this is the third posting of this thread.

  4. #4
    Registered User
    Join Date
    08-09-2015
    Location
    uk
    MS-Off Ver
    2013
    Posts
    4

    Re: How to jump to the next cell down in excel to compare records after logical test retur

    That's fantastic John, this works, you have saved my day !
    Thank you very much!
    Katherine

  5. #5
    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,308

    Re: How to jump to the next cell down in excel to compare records after logical test retur

    Glad to help. Could you please mark as SOLVED ("Thread tools" on initial post). Thank you.

+ 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. IF function using cell colour as logical test
    By denk15 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-22-2014, 09:40 AM
  2. [SOLVED] Using cell references in IF logical test
    By Petijandro in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 02-01-2013, 09:34 AM
  3. Replies: 5
    Last Post: 12-09-2012, 11:04 PM
  4. IF Logical Test for Time Range In Cell
    By Bob McCusker in forum Excel General
    Replies: 8
    Last Post: 07-23-2010, 04:58 AM
  5. If false, do the logical test for next cell
    By Zvetam in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-21-2008, 07:48 AM
  6. [SOLVED] Logical Test comparison using cell color
    By chamuko in forum Excel General
    Replies: 2
    Last Post: 11-08-2005, 11:25 PM
  7. logical test for each and every cell in range
    By matt in forum Excel General
    Replies: 5
    Last Post: 09-16-2005, 07:05 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