+ Reply to Thread
Results 1 to 6 of 6

I can't separate search and find a value, then use the value next to it minus the "^"

  1. #1
    Registered User
    Join Date
    05-10-2014
    MS-Off Ver
    Excel 2003
    Posts
    22

    I can't separate search and find a value, then use the value next to it minus the "^"

    I would like a formula method along with a short macro to do it as well.

    I know there's some sort of search/then Right formula thing going same within the macro but i still dont know how to keep the "^" out. see the attached excel file for an example. This main issue needs to be corrected for Column C cells. I also need a macro for Column D's formula. or a macro that would complete column C and D with the criteria listed within the Cells/Formulas


    Two logics within Column C: (if value(A2) is located within B2, C2= next number in list( if 1, then C2= SPAY in its place)
    SPAY - (if value(A3) is Not located within B3, then C3 = SPAY)

    Formula within Column D is it a N or Y?
    =IF(OR(C2="SPAY",C2=7),"N","Y")

    Thanks for the assistance
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: I can't separate search and find a value, then use the value next to it minus the "^"

    How about a bit of both
    Please Login or Register  to view this content.
    Put this in a regular module.
    the in C2 put
    =Spay(A2,B2)

  3. #3
    Registered User
    Join Date
    05-10-2014
    MS-Off Ver
    Excel 2003
    Posts
    22

    Re: I can't separate search and find a value, then use the value next to it minus the "^"

    Quote Originally Posted by Fluff13 View Post
    How about a bit of both
    Please Login or Register  to view this content.
    Put this in a regular module.
    the in C2 put
    =Spay(A2,B2)
    Thanks Fluff. I tried it and its not working. Could you place the VBA into the attached excel Trial file. then save the attachment for me to download?

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: I can't separate search and find a value, then use the value next to it minus the "^"

    Here you go
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-10-2014
    MS-Off Ver
    Excel 2003
    Posts
    22

    Re: I can't separate search and find a value, then use the value next to it minus the "^"

    Short and Sweet. Thank You Fluff.

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: I can't separate search and find a value, then use the value next to it minus the "^"

    Glad to help & thanks for the feedback

+ 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: 2
    Last Post: 07-24-2017, 02:19 AM
  2. [SOLVED] Day counts, formulas between colums. "c" minus "f" = equals ???.
    By israelalvarado in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-28-2017, 05:58 PM
  3. VBA to find cell contains (Space, "-", Minus amount)
    By yukioh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-08-2014, 11:04 AM
  4. Find "apple" and "orange" in one search
    By HerryMarkowitz in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 04-15-2014, 10:38 AM
  5. [SOLVED] Emulate Excel 97 getopenfilename "Advanced" find including "Search subfolders"
    By FORTRANguru in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-06-2014, 08:21 PM
  6. Developing a "Search" or "Find" Macro/ VBA Program
    By SamBevis in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-27-2013, 09:44 PM
  7. Replies: 5
    Last Post: 06-26-2006, 09:23 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