+ Reply to Thread
Results 1 to 9 of 9

Find last non-blank value in column, multiply by value in same row, diff column

  1. #1
    Registered User
    Join Date
    09-15-2014
    Location
    Michigan
    MS-Off Ver
    Office 2010
    Posts
    4

    Find last non-blank value in column, multiply by value in same row, diff column

    I have several monthly reports where data is imported form another file, and therefore the values in the data range changes each month, as well as the location and number of non-blank cells. The range is always numeric, values are always in ascending order down the column (though there are typically multiple values that are the same in its respective column), but the location of the last non-blank cell changes with each new month's data set.

    I haven't found a solution that does what I'm trying to do, which is:

    Find the last non-blank cell in a column, take the value of that last non-blank cell and multiply it to a static number that is in the same row, but a different column to the right.

    In the example, the "totals" column is irrelevant. I'm attempting to make a new row at the bottom that returns the value of the last non-blank cell in its respective column multiplied by the static multiplier (column N) that is in that non-blank cell's row.

    Any help is greatly appreciated!


    Excel Example 1.jpg

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,863

    Re: Find last non-blank value in column, multiply by value in same row, diff column

    Are these real blank cells or formulas which show "nothing" like:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If the cells are "real blanks" you can simply use COUNT to find a number of numeric values and OFFSET to return value from a cell in specific position (vertical based on COUNT, and horizontal - on required number of columns right).

    PS. recommended reading on pictures vs. sample files: http://www.excelforum.com/forum-rule...rum-rules.html
    Best Regards,

    Kaper

  3. #3
    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 last non-blank value in column, multiply by value in same row, diff column

    You can use this formula to find last value in column A

    =LOOKUP(25^25,A:A)
    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

  4. #4
    Registered User
    Join Date
    09-15-2014
    Location
    Michigan
    MS-Off Ver
    Office 2010
    Posts
    4

    Re: Find last non-blank value in column, multiply by value in same row, diff column

    These are real blank cells, no formulas, spaces, etc.

    Thanks for info on the file attachment....This is my first post.

  5. #5
    Registered User
    Join Date
    09-15-2014
    Location
    Michigan
    MS-Off Ver
    Office 2010
    Posts
    4

    Re: Find last non-blank value in column, multiply by value in same row, diff column

    I appreciate the input so far, though it isn't really getting me where I'm trying to be. I may not be explaining it correctly.

    I'm looking to write a formula that will search (for example) cells A2:A14, find the value in the last cell with data, then depending on what cell location that is (lets say it is A12), multiply the value in A12 by the number in the same row (row 12) but another column (column N).

    I'm looking for this because each month the last cell with data in any particular column can change and I always want to multiply the value in the last data cell with a number in the same row, just a different column.

    It's a little tough I'm thinking. Thanks!

  6. #6
    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 last non-blank value in column, multiply by value in same row, diff column

    I think you never tried formula in post #3 otherwise you would see that it is doing exactly what you looking for.

    Here is the same formula with set range A2:A14

    =LOOKUP(25^25,A2:A14)

    A
    B
    C
    1
    Values Result
    2
    155
    863
    3
    545
    4
    456
    5
    6
    12
    7
    15
    8
    6545
    9
    10
    45
    11
    45
    12
    863
    Last edited by AlKey; 09-15-2014 at 05:04 PM.

  7. #7
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,719

    Re: Find last non-blank value in column, multiply by value in same row, diff column

    ....so taking Alkey's suggestion one step further this formula will do what you want, i.e. multiply the last number in A2:A14 with the number in the same row in column N

    =LOOKUP(9.99E+307,A2:A14)*LOOKUP(9.99E+307,A2:A14,N2:N14)
    Audere est facere

  8. #8
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,863

    Re: Find last non-blank value in column, multiply by value in same row, diff column

    Or with my approach:
    Please Login or Register  to view this content.
    This one is for december from your picture (by the way on a screenshot august and june do not follow: "The range is always numeric, values are always in ascending order down the column" - I taken for granted, that real data do.)

  9. #9
    Registered User
    Join Date
    09-15-2014
    Location
    Michigan
    MS-Off Ver
    Office 2010
    Posts
    4

    Re: Find last non-blank value in column, multiply by value in same row, diff column

    Great, that was exactly what I needed. Thanks for all the help!

+ 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] Find specific values and multiply them by a number in their column
    By Thomas92W in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-29-2014, 01:22 PM
  2. Replies: 2
    Last Post: 01-13-2013, 06:50 AM
  3. Replies: 6
    Last Post: 01-26-2012, 09:15 PM
  4. macro to find first blank cell in a column cut the value from left adjacent column
    By willykin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-01-2012, 09:23 AM
  5. Replies: 8
    Last Post: 08-06-2009, 09:02 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