+ Reply to Thread
Results 1 to 2 of 2

IF + AND (or vlookup formula?)

  1. #1
    Registered User
    Join Date
    01-09-2016
    Location
    Poland
    MS-Off Ver
    2007
    Posts
    6

    IF + AND (or vlookup formula?)

    Hi guys,

    I need a help with my spreadsheet (it's attached below for reference)

    I have data populated by scraping VBA macro in range J2:S9

    Table in range A1:G9 should automatically "process" with formulas data according to my needs. Each row represents separate game. Under each game there will be either one (the same) or two (different) lines available

    For example for third row (game id 2) line is the same (0.5). Therefore cell B3 should display this line (0.5) and in next cell (C3) display the highest value from respective columns =MAX(K3, N3, Q3). Cell D3 should do the same but for an away team so =MAX(L3, O3, R3) (in this case for cell C2 correct number to display is 0.93 and for cell D2 it's 1). Cells E2, F2 and G2 in this scenario should be auto-populated with "n/a" text.

    However it gets tricky for rows like second row (game id 1). In this case line A is the same as line B but different than line C, therefore for each line maximum values have to be treated separately (formula must also deal with similar situations when for example Line A is the same as line C but different than line B) therefore cell B2 should display one unique line (0/0.5) cell C2 and D2 should display the highest respective value (so either K2 or N20 for C2 and L2 or O2 for D2). Then another line should be auto-populated by formula in cell E2 (0.5 from cell P2) and therefore F2 will be simply a value from cell R2 and H2=R2

    I hope it does make sense, attaching the spreadsheet below
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,420

    Re: IF + AND (or vlookup formula?)

    Welcome to the forum! Please take a moment to re-read forum rule #1 and then amend your thread title to something that better explains your problem. Changing your thread title is not optional, which means you must change it. Thanks!

    • Use concise, accurate thread titles.
    • Your post title should describe your problem, not your anticipated solution.
    • Use terms appropriate to a Google search - poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice tell us nothing.
    • Responding to a request to change your thread title by doing so is mandatory.

    To change a title go to your first post, click EDIT then Go Advanced and change your title.

    No help to be offered, please, until the OP complies with this request.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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] VLOOKUP formula or VLOOKUP worksheet.function
    By Crispy85 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-09-2017, 09:40 AM
  2. Replies: 5
    Last Post: 12-07-2016, 09:18 AM
  3. VBA external VLOOKUP instead of VLOOKUP-formula in cell
    By ExcelBonk in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-07-2016, 02:41 PM
  4. [SOLVED] Vlookup with column name instead of col_index_name(3rd Section of Vlookup formula)
    By akulka58 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-21-2014, 10:42 AM
  5. [SOLVED] VBA code for change vlookup formula to vlookup formula with ISNA
    By erprasannaa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-12-2013, 03:33 AM
  6. Vlookup referencing a vlookup formula
    By laurenann in forum Excel General
    Replies: 1
    Last Post: 01-24-2011, 05:52 PM
  7. [SOLVED] vlookup-reate a vlookup formula?
    By Pam C in forum Excel General
    Replies: 1
    Last Post: 03-16-2006, 12:15 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