+ Reply to Thread
Results 1 to 7 of 7

Match the value from a cell with data from a table

  1. #1
    Forum Contributor
    Join Date
    09-25-2011
    Location
    Lenasia, Johannesburg,South Africa
    MS-Off Ver
    Excel 2019
    Posts
    269

    Match the value from a cell with data from a table

    Greetings

    I am learning numerology and the lotto with excel spreadsheets.

    I am able to calculate a value in a single digit of the date.

    My question is how may I break down the date into single digits which fills in cells two for date two for a month and four for the year.

    The second part of my request is how to copy a row of data if it matches a value from the calculations of the date

    If I reduce the date for example 21 August 2018 (21-8-2018) value will be 4. This 4 I would like it to match the 4 in a table and copy the corresponding values back to the sheeet

    I thank you all for all help and advice received
    Attached Files Attached Files
    Last edited by khanaran; 08-21-2018 at 01:12 PM. Reason: add more information to my request

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Match the value from a cell with data from a table

    Hi, hoe gaan dit in Joeies?

    PE old boy here from Orkney and Klerksdorp, now living in USA

    So, 1st you want the date broken out into it's individual numbers, right? What if the day is less than 10?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Match the value from a cell with data from a table

    Assuming I am correct...
    C5=IF(DAY($E$2)>9,--LEFT(DAY($E$2),1),0)
    D4=--RIGHT(DAY($E$2),1)
    E4=IF(MONTH($E$2)>9,--LEFT(MONTH($E$2),1),0)
    F4=--RIGHT(MONTH($E$2),1)
    H4=--LEFT(YEAR($E$2),1)
    I4=--MID(YEAR($E$2),3,1)
    J4=--RIGHT(YEAR($E$2),1)

  4. #4
    Forum Contributor
    Join Date
    09-25-2011
    Location
    Lenasia, Johannesburg,South Africa
    MS-Off Ver
    Excel 2019
    Posts
    269

    Re: Match the value from a cell with data from a table

    Greetings

    Goed dankie

    I live in Lenasia Johannesburg

    Thanx for the help, however, the year part one line is missing all ok and its working greatly

    the first part of the request is working just needs a slight tweak

    I figured out the missing line

    G4=--LEFT(YEAR($E$2),1)
    H4=--MID(YEAR($E$2),2,1)
    I4=--MID(YEAR($E$2),3,1)
    J4=--RIGHT(YEAR($E$2),1)

    Hope I am correct here

    regards

    Raj

    PS nice to chat to a fellow South African

    I will greatly appreciate it very much if you can help and solve the second part of my request
    Last edited by khanaran; 08-21-2018 at 03:36 PM.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Match the value from a cell with data from a table

    oops I skipped G...
    G4=--LEFT(YEAR($E$2),1)

  6. #6
    Forum Contributor
    Join Date
    09-25-2011
    Location
    Lenasia, Johannesburg,South Africa
    MS-Off Ver
    Excel 2019
    Posts
    269

    Re: Match the value from a cell with data from a table

    Hi

    Thanx a span for the help and at the same I am learning even at the age of 66

    Regards

    raj

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Match the value from a cell with data from a table

    Never too old to learn new stuff (Im 60)

+ 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] Macro to match date in data table and copy cell range containing date.
    By 54ed in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-15-2014, 04:52 AM
  2. Replies: 2
    Last Post: 04-19-2014, 10:06 PM
  3. Replies: 0
    Last Post: 03-05-2014, 05:23 AM
  4. Replies: 0
    Last Post: 07-02-2013, 11:30 AM
  5. Replies: 0
    Last Post: 11-16-2012, 11:42 AM
  6. [SOLVED] Using LOOKUP, MATCH, INDEX to obtain cell value from data table
    By rfernandes in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 09-05-2012, 05:31 PM
  7. Replies: 2
    Last Post: 06-15-2011, 04:57 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