+ Reply to Thread
Results 1 to 14 of 14

multiple criteria search and extraction from string!

  1. #1
    Registered User
    Join Date
    08-11-2014
    Location
    COlogne, Germany
    MS-Off Ver
    2010, 2013
    Posts
    29

    multiple criteria search and extraction from string!

    1. The first worksheet contains a database.

    2. The column headers can be seen in attached file.

    3. Budget-Spent-Forecast attribute can be
    1. Committed
    2. Forecast

    4.CW attribute is year followed by week number
    example:
    2014-35
    2015-06
    2015-08

    5. Year attribute lists the year


    6.Here is my problem. I want to figure out a way (function or a macro), that will run through the database and find the latest entry for the attribute ' committed'
    ie.
    committed - latest year

    Then it proceeds to extract the week number. Then it exports the week number as 'CWweeknumber' to a cell in a different worksheet in the same file.

    Any help would be grateful! Thank you!CWexcelmacro.xlsx

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: multiple criteria search and extraction from string!

    Can you add your expected result manually so that it is easy to understand
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Registered User
    Join Date
    08-11-2014
    Location
    COlogne, Germany
    MS-Off Ver
    2010, 2013
    Posts
    29

    Re: multiple criteria search and extraction from string!

    The output in this case is 03, not 04 since 2014-04 entry is a forecast. CWexcelmacro (2).xlsx
    Quote Originally Posted by nflsales View Post
    Can you add your expected result manually so that it is easy to understand

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: multiple criteria search and extraction from string!

    Post deleted due to violation of Forum Rule: 5 by the OP.
    Last edited by sktneer; 08-28-2014 at 06:15 AM.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  5. #5
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: multiple criteria search and extraction from string!

    hi oasafox .

    Against Forum Rules Duplicate Thread
    http://www.excelforum.com/excel-form...g-strings.html

    Punnma

  6. #6
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: multiple criteria search and extraction from string!

    @Punnam

    Thanks for the information.

  7. #7
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: multiple criteria search and extraction from string!

    Unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed by a Forum Moderator, you may continue in your other thread.

  8. #8
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: multiple criteria search and extraction from string!

    see the attached file
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    08-11-2014
    Location
    COlogne, Germany
    MS-Off Ver
    2010, 2013
    Posts
    29

    Re: multiple criteria search and extraction from string!

    =RIGHT(INDEX(Basis!$U$4:$U$90000;MAX(IF(LEFT(Basis!$U$4:$U$90000;4)*1=MAX(LEFT(Basis!$U$4:$U$90000)*1);IF(Basis!$I$4:$I$90000="committed";ROW(Basis!$U$4:$U$90000)-ROW(Basis!$U$4)+1))));2)

    I edited the formula to this to fit it to my database, but now I get #value error

    Quote Originally Posted by sktneer View Post
    Post deleted due to violation of Forum Rule: 5 by the OP.

  10. #10
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: multiple criteria search and extraction from string!

    sorry for the my above post
    try this attached file
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    08-11-2014
    Location
    COlogne, Germany
    MS-Off Ver
    2010, 2013
    Posts
    29

    Re: multiple criteria search and extraction from string!

    nflsales.. .solution WORKS.

    Could you also please explain what these criteria for Looupfunction mean? so that I can use it again.

    2;
    1/((Basis!$U:$U<>"")*(Basis!I:I="Committed"))

  12. #12
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: multiple criteria search and extraction from string!

    @ nflsales
    Your post does not comply with Rule 7 of our Forum RULES. Please do not ignore requests by Administrators, Moderators and senior forum members regarding forum rules.

    If you are unclear about the request or instruction then send a private message to them asking for clarification. Do not post a reply in a thread where a moderator has requested an action that has not yet been complied with e.g Title change or Code tags...etc

  13. #13
    Registered User
    Join Date
    08-11-2014
    Location
    COlogne, Germany
    MS-Off Ver
    2010, 2013
    Posts
    29

    Re: multiple criteria search and extraction from string!


  14. #14
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: multiple criteria search and extraction from string!

    Sorry mr sktneer, i will take care in future

+ 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. Replies: 1
    Last Post: 04-08-2013, 07:07 PM
  2. Allow Multiple or Single String Search Criteria Macro
    By eurydice88 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-20-2009, 02:50 PM
  3. Row count, for multiple criteria, with string search.
    By AshJolie in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-20-2009, 02:38 PM
  4. Search string in cells for a criteria in a list
    By VBA Noob in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-01-2006, 04:35 PM
  5. [SOLVED] Search string with multiple criteria
    By fLiPMoD£ in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-05-2005, 03:06 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