+ Reply to Thread
Results 1 to 8 of 8

Formula to pick up data which almost match.

  1. #1
    Registered User
    Join Date
    11-26-2018
    Location
    Sweden
    MS-Off Ver
    2016
    Posts
    39

    Formula to pick up data which almost match.

    Hi,

    I'm trying to write a formula to put a value in a certain cell if two cells match. But the problem is that when i export the data from out business system, the data differs a bit.

    For example the data in column D is :

    HA01 0370
    HA03 0380
    HB01 0210
    HB02 0300

    I have attached excel file with the sheets and desired results.
    I want a formula to only pick up data with HA(the numbers after is not important) in column D and only 06 in column B in Book1. How do I do that?
    Attached Files Attached Files
    Last edited by lababa; 12-05-2018 at 08:43 AM.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,065

    Re: Formula to pick up data which almost match.

    What's your formula?
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    11-26-2018
    Location
    Sweden
    MS-Off Ver
    2016
    Posts
    39

    Re: Formula to pick up data which almost match.

    I have attached excel file to the thread with example and desired results. I would like the formula to pick up all values in Column K Book1 and sort it in Sheet1 row 30 by the dates depending on the date on Column E Book1. Also I want the formula to only pick HA fron column D and only pick the number 06 in column B. Is it possible?

    I have this formula to pick from column K in Book1 and sort it by date in row 30 Sheet1.
    =SUM(IFERROR(Book1!$K$3:$K$999*(MONTH(Book1!$E$3:$E$999)=MONTH(M$25))*(YEAR(Book1!$E$3:$E$999)=YEAR(M$25)); ))
    The problem is that it picks everything from the column in Book1. I want it to only pick everything that starts with HA in column D and 06 in column B. (Make sure to enter "crl+shift+enter" before you close the cell when entering this formula)
    Attached Files Attached Files

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Formula to pick up data which almost match.

    Please try at K30 with CSE

    =SUM(IFERROR(Book1!$K$3:$K$999*(MONTH(Book1!$E$3:$E$999)=MONTH(K$25))*(YEAR(Book1!$E$3:$E$999)=YEAR(K$25))*(LEFT(Book1!$D$3:$D$999;2)=$B30)*(Book1!$B$3:$B$999="06"); ))

  5. #5
    Registered User
    Join Date
    11-26-2018
    Location
    Sweden
    MS-Off Ver
    2016
    Posts
    39

    Re: Formula to pick up data which almost match.

    Hey Bo_Ry you are the man!!! Thank you again! :D

  6. #6
    Registered User
    Join Date
    11-26-2018
    Location
    Sweden
    MS-Off Ver
    2016
    Posts
    39

    Re: Formula to pick up data which almost match.

    Hey Bo_Ry! Could you help me with one more thing . Which formula do I use so when I pick payment terms of 30 days or 60 days from the drop down list on C29, the values from row 30 gets copied and get an offset depending on how many days I chose on the drop down list. I attached desired results in this reply. Thank you so much again!!
    Attached Files Attached Files

  7. #7
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Formula to pick up data which almost match.

    Please try

    D29 copy to the right

    =IFERROR(INDEX($D$30:$AM$30;MATCH(EDATE(D$25;-LEFT($C29;2)/30);$D$25:$AM$25)); )

    or

    E29

    =INDEX(C30:E30;3-LEFT($C29,2)/30)
    Last edited by Bo_Ry; 12-05-2018 at 10:46 AM.

  8. #8
    Registered User
    Join Date
    11-26-2018
    Location
    Sweden
    MS-Off Ver
    2016
    Posts
    39

    Re: Formula to pick up data which almost match.

    Thank you again, works like a charm!

+ 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. Using a certain formula to pick up data on different tabs
    By Andie5 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-24-2017, 12:52 PM
  2. Replies: 3
    Last Post: 12-08-2016, 10:37 AM
  3. Formula to Pick data
    By Sri.n in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-22-2014, 01:43 PM
  4. [SOLVED] Formula to pick data from a column then a row help :)
    By enagli in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-27-2014, 03:01 PM
  5. [SOLVED] Formula to pick one data data from multiple cells
    By warriorpoet7176 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-24-2014, 10:23 PM
  6. how to match and pick excel data
    By zerodegree in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-03-2013, 01:45 PM
  7. Formula to pick up second data instead of the first again
    By TIERNAN in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-02-2013, 02:36 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