+ Reply to Thread
Results 1 to 6 of 6

Help on returning value in the same row

  1. #1
    Registered User
    Join Date
    07-13-2015
    Location
    Brazil
    MS-Off Ver
    2007
    Posts
    11

    Help on returning value in the same row

    I think my problem might have a really simple way to be solved, but I'm having a hard time finding the best function option to be applied. Here we go: On cell U4 I have a "=MIN" function set that gives me the lowest value from K5:K51. "K" column shows temperature values, and "C" column the time they have been registered. Since cell U4 returns me the lowest value, I am trying to set the cell besides this one (V4) to return the time when it happened. Basically I want to cell V4 be able to search, depending on U4 value, the value of the cell two rows to the left.

    As you guys can see, I am really newbie in it and I'm really clueless on this one. If anyone would help me I'd be very grateful! I figured a picture of it would make it easier. I'm also using a portuguese office pack, but it shouldnt make a big difference. Thanks in advance!

    excel.png

  2. #2
    Valued Forum Contributor
    Join Date
    05-13-2010
    Location
    Belo Horizonte, Brazil
    MS-Off Ver
    Excel 2003; 2007
    Posts
    441

    Re: Help on returning value in the same row

    jarout, Good evening.

    Please, next time attach a sample of your Excel file, not a Photo of it.
    It´s easier for people to help you.

    Of course there some ways to do what you want.
    Here you are one of it.

    V4 --> =SUMPRODUCT(($K$4:$K$1000=U4)*($B$4:$B$1000=P4)*($C$4:$C$1000))

    Adapt the range to the reality of your data.

    Is this what you want?
    I hope it helps.
    ...If my answer helped you, Please, click on. * Add Reputation (at left)

    Best regards.
    Marc?lio Lob?o

  3. #3
    Registered User
    Join Date
    07-13-2015
    Location
    Brazil
    MS-Off Ver
    2007
    Posts
    11

    Re: Help on returning value in the same row

    Thanks Mazzaropi! I think I said something wrong when I explained it, I apologize. I tried to adapt changing the ranges in the formula and it came out like this: =SUMPRODUCT(($K$5:$K$52=U4)*($B$5:$B$52=P4)*($C$5:$C$52)). However it really didnt show me the value I wanted. I'm attatching my worksheet now, maybe it'll help better! As I said, U4 gives me the lowest value from K5:K52 range. What I want is V4 to check where the value in U4 came from (in this case it came from K40), and then return the value of eight rows to the left (which would be C40).
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    07-13-2015
    Location
    Brazil
    MS-Off Ver
    2007
    Posts
    11

    Re: Help on returning value in the same row

    I reviewed the formula here Mazzaropi and it worked just fine! I was typing it incorrectly... My bad. Thank you so much for your help!
    Last edited by jarout; 07-14-2015 at 10:31 AM.

  5. #5
    Valued Forum Contributor
    Join Date
    05-13-2010
    Location
    Belo Horizonte, Brazil
    MS-Off Ver
    Excel 2003; 2007
    Posts
    441

    Re: Help on returning value in the same row

    You´re welcome.

    I feel happy to help you.

    Have a nice day.

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Help on returning value in the same row

    If you're using Excel 2007 as your profile indicates then you can use the more efficient SUMIFS function:

    =SUMIFS($C$4:$C$1000,$K$4:$K$1000,U4,$B$4:$B$1000,P4)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. =SUM returning VALUE#
    By kjmosp in forum Excel General
    Replies: 1
    Last Post: 03-14-2014, 05:50 PM
  2. [SOLVED] INDEX MATCH is returning values when it should be returning "0"s.
    By mattsonberg in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-24-2014, 11:51 AM
  3. Replies: 3
    Last Post: 05-03-2012, 04:00 PM
  4. Looking up a value in B and returning the value in A
    By Dan in Toms River in forum Excel General
    Replies: 3
    Last Post: 02-22-2011, 08:09 AM
  5. returning a value
    By twiles in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-24-2010, 10:02 PM
  6. Formula sometimes returning correct answer and sometimes returning 0
    By redimp in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-09-2010, 06:28 AM
  7. If and/or - or + 15% returning with #Value
    By AESP920 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-14-2010, 01:05 PM
  8. [SOLVED] How to? UDF returning nothing
    By G Lykos in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-19-2006, 02:25 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