+ Reply to Thread
Results 1 to 11 of 11

Find furthest right cell with IF statement and get cell value in same column?

  1. #1
    Forum Contributor
    Join Date
    04-30-2013
    Location
    D.C.
    MS-Off Ver
    Excel 2010
    Posts
    192

    Find furthest right cell with IF statement and get cell value in same column?

    Hi Excellers,

    How do I write a formula that will spit out the cell value in any cell in the same column with the furthest right cell that has a value based on a IF statement?

    Attached is a scenario workbook.

    Thank you.
    Attached Files Attached Files

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Find furthest right cell with IF statement and get cell value in same column?

    Enter this array formula in B10 and copy down

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    ***Array formula must be entered by using key combination of CTRL+SHIFT+ENTER and not just ENTER

    Or you can sue this non-array formula

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by AlKey; 02-22-2016 at 08:56 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: Find furthest right cell with IF statement and get cell value in same column?

    This should work if every cell in Row 2 up till the furthest cell is non-blank.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    If cells in Row 2 may have blanks in between the start and furthest cell, try the following Array Formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Note: Array Formulas must be entered/confirmed with [Ctrl] + [Shift] + [Enter]

  4. #4
    Forum Contributor
    Join Date
    04-30-2013
    Location
    D.C.
    MS-Off Ver
    Excel 2010
    Posts
    192

    Re: Find furthest right cell with IF statement and get cell value in same column?

    That works perfectly for the workbook I have provided!

    However, I was unable to duplicate this to the workbook where I want the formula to nest in. I have simplified the workbook with just two months. It has the same exact concept above but for each of the 12 months.

    I want the forumla to nest in the sheet "Denomacion". You will see a mess of previous formula that worked for just January (Enero). It would not continue onto the other months. -___-

    Here you go.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    04-30-2013
    Location
    D.C.
    MS-Off Ver
    Excel 2010
    Posts
    192

    Re: Find furthest right cell with IF statement and get cell value in same column?

    I am bumping to further my inquire about the formula.

  6. #6
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: Find furthest right cell with IF statement and get cell value in same column?

    I'm unable to follow your new sheet. are you able to exemplify it by showing which cells are working fine, which ones are not and how should they work.

  7. #7
    Forum Contributor
    Join Date
    04-30-2013
    Location
    D.C.
    MS-Off Ver
    Excel 2010
    Posts
    192

    Re: Find furthest right cell with IF statement and get cell value in same column?

    Thank you for your time, here is the explanation pulled from the workbook.

    ------

    The goal is to fix the denomacion box work properly on the sheet 'Budget'.

    The data is pulled from the sheet 'denomacion'.

    On the sheet 'denomacion', lies the culprit. Its home is in column C while everything else is perfectly fine so the focus is on only column C.

    How it should work:
    - When I mark an 'x' in G7 on sheet 'Budget', column C on sheet 'denomacion' should then pull from the same column under G7 for each item such as ahorro, renta, alimentacion, etc. that has an 'x' next to it in column E

    - However, when I move onto the next column to mark an 'x' in H7 on sheet 'Budget', column C on sheet 'denomacion' should now pull from the same column under H7 for each item with an 'x' next to it in column E. Same for S7 with an 'x' next to it in column Q and so on.

    - This should continue all the way through to column EO, skipping the blanks in between and all other data, of course.


    Hope this is clear enough. Please inquire if you need further clarification.

    Thanks!
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    04-30-2013
    Location
    D.C.
    MS-Off Ver
    Excel 2010
    Posts
    192

    Re: Find furthest right cell with IF statement and get cell value in same column?

    Bumping again in hope of a response with assistance.

  9. #9
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: Find furthest right cell with IF statement and get cell value in same column?

    Try pasting this array formula* in Denomacion!C4:
    Please Login or Register  to view this content.
    You are going to get a #Value however if you'll press the F2 key and then press Ctrl, Shift and Enter simultaneously, It will work, as indicated by the appearance of brackets {} around the formula. At that point you can copy it down the column as far as desired. Here is a copy of your file with the formula applied and an x placed in column U:
    Copy of SampleWBv1.xlsx
    Let me know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  10. #10
    Forum Contributor
    Join Date
    04-30-2013
    Location
    D.C.
    MS-Off Ver
    Excel 2010
    Posts
    192

    Re: Find furthest right cell with IF statement and get cell value in same column?

    Thank you very much, JeteMc!

    The array formula provided does work well! I was dreading array formulas for a while because I know how complicated and problematic they can get.

    Thanks again!

    Marking this as SOLVED.

  11. #11
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: Find furthest right cell with IF statement and get cell value in same column?

    Your Welcome, thank you for the feedback and for marking the thread 'Solved'. I hope that you have a good day.

+ 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. Tricky Problem trying to find data in the furthest right cell.
    By mrmcmillanrevis in forum Excel General
    Replies: 6
    Last Post: 02-15-2015, 03:00 PM
  2. Value furthest from zero between cell range
    By PeanutPete in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 01-30-2014, 06:24 AM
  3. [SOLVED] Questions about formulas that return information in the furthest right cell
    By hilltop804 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-23-2013, 11:12 AM
  4. [SOLVED] Find column number of the furthest non-blank column
    By SPOPKY in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-25-2013, 11:50 AM
  5. Using furthest down Cell for math statements
    By ssword in forum Excel General
    Replies: 19
    Last Post: 11-03-2010, 04:31 PM
  6. Make a cell value = the furthest value to the right
    By Lucien in forum Excel General
    Replies: 9
    Last Post: 09-29-2008, 06:40 AM
  7. Find Furthest Number to the Left
    By dvent in forum Excel General
    Replies: 1
    Last Post: 12-18-2007, 09:08 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