+ Reply to Thread
Results 1 to 12 of 12

Requesting some help with regards to a vlookup formula

  1. #1
    Registered User
    Join Date
    11-21-2016
    Location
    New York
    MS-Off Ver
    Office 2007
    Posts
    7

    Requesting some help with regards to a vlookup formula

    Hello, I'm trying to figure out a formula that will allow me to search for a text result within a range of cells between a date that is specified in another cell and will give the value of the amount of rows that contain said value.

    Sounds a little complicated but I basically have a sheet that has first column specifying date and second column specifying a text in this case being the letter A or B

    What I'd optimally like to do is set a value of a cell to be a date range and then have the formula in a different cell reference that date range, find the range in the first column, then look at the second column to see what rows have a or b letters in them and then calculate the amount of rows with a or b


    I've been trying to string something together with vlookup plus row and date but it hasn't been going well.

    Any help would be greatly appreciated. Thank you

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Requesting some help with regards to a vlookup formula

    This sounds easy, but would be easier still if your date range was in 2 cells (one containing the "from" date and the other the "to" date). Will you please attach a sample Excel workbook? Please don't attach a picture of one.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    11-21-2016
    Location
    New York
    MS-Off Ver
    Office 2007
    Posts
    7

    Re: Requesting some help with regards to a vlookup formula

    The date range can be split up into two cells quite easily so that the difference calculations can be done. The only thing that needs to remain is the original date of action. I am optimally looking for the least amount of values so that I can split all up the results and then add them to another sheet as needed. Essentially I'd prefer a formula just for A and another just for B.

    I added the file to my attachments let me know if youre able to get it. And thank you so much for your help.
    Attached Files Attached Files

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Requesting some help with regards to a vlookup formula

    Take a look at the yellow shaded cells. Regarding the time slots bit. Does that have to be within the same date ranges?
    Attached Files Attached Files

  5. #5
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Requesting some help with regards to a vlookup formula

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

    where K2, L2 are the range of dates and J3 is "a" or "b"

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

    where K2, L2 are the range of dates and J7, K7 are the range of time slots.

    see the file
    Attached Files Attached Files
    Last edited by José Augusto; 11-21-2016 at 02:53 PM. Reason: correct J$3 to $J3 in first formula

  6. #6
    Registered User
    Join Date
    11-21-2016
    Location
    New York
    MS-Off Ver
    Office 2007
    Posts
    7

    Re: Requesting some help with regards to a vlookup formula

    wow that's working perfectly. Yes the time slots have to be within the same date range that is selected for A and B. Also if I wanted to specify the same formula to located locations I can just switch the value of the cell that its referencing however the only problem I am receiving is that is will only look for exactly the name as written and not act essentially like a 'contains' filter. I can create duplicates of the formula into multiple cells and then have the reference cell be multiple variations of the search term so that it covers all the possible variations of the same location.

    Essentially if someone doesn't fully fill out the address and puts in Arthur st instead of Arthur street west or puts in Arthur st W instead of fully filling out the name.

    I sincerely appreciate the help and would love to get a better understanding of what the variables are meaning inside of the formula as well as donating somehow for the help.

  7. #7
    Registered User
    Join Date
    11-21-2016
    Location
    New York
    MS-Off Ver
    Office 2007
    Posts
    7

    Re: Requesting some help with regards to a vlookup formula

    I created another sample sheet that has a little more of a breakdown. I am trying to be able to breakdown street, repair, a/b, time, and amount between dates and for addresses that may not be exact.
    Attached Files Attached Files

  8. #8
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Requesting some help with regards to a vlookup formula

    Try this in K13 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    See the file
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    11-21-2016
    Location
    New York
    MS-Off Ver
    Office 2007
    Posts
    7

    Re: Requesting some help with regards to a vlookup formula

    Quote Originally Posted by José Augusto View Post
    Try this in K13 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    See the file
    So a few new variable have been added to the sheet that I am trying to filter out with these formulas. I want to be able to setup multiple different selections that I am looking for. As of now I have one lookup that has been put in as a reference if anyone can help come up with a formula. Also a little explanation as to how the formula works would be greatly appreciated as it helps me learn and edit if need be.

    Thank you so much for your help.
    Attached Files Attached Files
    Last edited by Jman2102; 11-28-2016 at 01:22 PM. Reason: Added quote from member replying to.

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Requesting some help with regards to a vlookup formula

    We're all happy to explain what's been done. But there's no point in doing so until you're getting the right answer. it's also helpful to state WHO you are replying to (especially when more than one member has tried to help).

    However, you latest sheet looks a bit of a jumble. What results do you expect to see, and where do you expect to see them?

  11. #11
    Registered User
    Join Date
    11-21-2016
    Location
    New York
    MS-Off Ver
    Office 2007
    Posts
    7

    Re: Requesting some help with regards to a vlookup formula

    My apologies glenn, that post was in reference to Jose, I will update here once the formula meets my needs and then ask for the explanation when appropriate.

    Thank you again for all of your help.

  12. #12
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Requesting some help with regards to a vlookup formula

    Quote Originally Posted by Jman2102 View Post
    My apologies glenn, that post was in reference to Jose, I will update here once the formula meets my needs and then ask for the explanation when appropriate.

    Thank you again for all of your help.
    Hi

    I suppose the summary I made in the file that attached, clarifies the way to make filters. See the file
    Attached Files Attached Files

+ 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. Requesting Confirmation of a formula in Excel 2003
    By James Drouin in forum Excel General
    Replies: 4
    Last Post: 10-25-2016, 01:23 PM
  2. Requesting Formula/VBA for arranging heteregenous content in a cell
    By cyberdony2k in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-26-2015, 05:50 AM
  3. [SOLVED] Requesting for a formula to retun text.
    By lifeisaspreadsheet in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 04-14-2013, 11:43 AM
  4. Help In Requesting Data
    By pasteis in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-03-2012, 01:14 PM
  5. Replies: 5
    Last Post: 01-05-2012, 08:26 PM
  6. [SOLVED] requesting formula for distributing a number
    By julie in forum Excel General
    Replies: 5
    Last Post: 08-21-2006, 04:45 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