+ Reply to Thread
Results 1 to 7 of 7

Returning values based on value in cell

  1. #1
    Registered User
    Join Date
    02-29-2020
    Location
    West Yorkshire, UK
    MS-Off Ver
    Office 365 Business
    Posts
    8

    Returning values based on value in cell

    Hello all,

    I could do with some help! So I've got a column that I want excel to check and if it is contains today's date, I want it to give me all the values from another column that relate to the rows that contain that date. If that makes sense.

    So I have the dates I need it to check in Column N, the values I want it to return in Column A and I want it to do it down all the rows. So I got as far as:

    =INDEX(A:A,MATCH($C$5,N:N,0))

    (C5 is where I have =TODAY)

    So some of you now immediately realise why this won't work! It just returns the first correct date and value it gets to I think. That is it. Any further matching dates below, it doesn't register then or return the values associated in column A.

    Any help would really be appreciated! 😁 🙏

  2. #2
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: Returning values based on value in cell

    Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. Just before posting, scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.

  3. #3
    Registered User
    Join Date
    02-20-2020
    Location
    Australia
    MS-Off Ver
    Office 365, 2013 & Google Sheets
    Posts
    26

    Re: Returning values based on value in cell

    Hi there, are you able to attach a sample of the sheet you are using? Would make things a lot easier

  4. #4
    Registered User
    Join Date
    02-29-2020
    Location
    West Yorkshire, UK
    MS-Off Ver
    Office 365 Business
    Posts
    8

    Re: Returning values based on value in cell

    Hello,

    I have provided a very skeleton sheet due to confidential details. Basically on Sheet 2 I want the presented information to fill column D which will then generate (already done) some of the extra info I want from the sheet.

    Cell D8 has the formula I tried and the ones below are manually entered so hopefully you can see what I'm wanting excel to do for me!

    I'm sure it can do it - for those more excel savvy than myself! 😅
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: Returning values based on value in cell

    Attach file
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    02-29-2020
    Location
    West Yorkshire, UK
    MS-Off Ver
    Office 365 Business
    Posts
    8

    Re: Returning values based on value in cell

    CARACALLA!

    You're a genius! Thank you so much! That has sorted it!!

    Very much appreciated 😁🙏🙏

  7. #7
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Returning values based on value in cell

    Hi Adamjm,

    You could also use this non-array version in A8 copied down

    =IFERROR(INDEX('Sheet 1-resource sheet'!$E$4:$E$22,AGGREGATE(15,6,(ROW('Sheet 1-resource sheet'!$E$4:$E$22)-ROW('Sheet 1-resource sheet'!$E$4)+1)/('Sheet 1-resource sheet'!$N$4:$N$22=$B$5),ROWS($A$8:A8))),"")
    HTH
    Regards, Jeff

+ 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] Help returning value from the intersection in a table based on two other cell values
    By BJB1976 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-09-2017, 02:40 AM
  2. [SOLVED] Returning values based on another cell
    By Russet in forum Excel General
    Replies: 4
    Last Post: 10-24-2015, 11:03 AM
  3. Returning Value based on specific values in a cell range
    By mgallacher in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-10-2015, 11:30 AM
  4. Replies: 9
    Last Post: 09-07-2014, 05:42 PM
  5. [SOLVED] Returning cell values in a comment based on values in another workbook
    By Barking_Mad in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 04-10-2014, 04:13 AM
  6. Replies: 4
    Last Post: 05-29-2013, 04:18 AM
  7. Returning a value to a single cell based on multiple values elsewhere.
    By archieross in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-05-2012, 07:35 PM

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