+ Reply to Thread
Results 1 to 5 of 5

Lookup Next Occurrence and Mark Halfway Mark with "Mark"

  1. #1
    Forum Contributor
    Join Date
    05-09-2012
    Location
    Florida
    MS-Off Ver
    Excel 2013
    Posts
    136

    Lookup Next Occurrence and Mark Halfway Mark with "Mark"

    Hi Excel Wizards, I need help please -

    I'm trying to look at the Lows in column B and put a "Mark" in column C where the halfway mark is between 2 Lows, *if that next low is less than 30 data points off (if its more than 30 data points, we want a "Mark" 10 days prior to that second low). I'm happy if this takes more columns to achieve because I've tried vlookups, offsets and I cant manage to wrap my head around how to do this?

    I've attached a spreadsheet to see what I'm trying to do - the first "Mark" shows up in column C in cell C36 because the second "Low" is greater than 30 data points away, so we put a mark 10 data points above where that second low occurred.

    Any help would greatly be appreciated, thank you all!

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

    Re: Lookup Next Occurrence and Mark Halfway Mark with "Mark"

    Please try at D3

    =REPT("Mark",MATCH("Low",B4:B257,)=IF(MATCH("Low",B4:B257,)+ROWS(B$3:B3)-MATCH(2,{1}/(B$3:B3="low"))>30,10,INT((MATCH("Low",B4:B257,)+ROWS(B$3:B3)-MATCH(2,{1}/(B$3:B3="low")))/2)))

  3. #3
    Forum Contributor
    Join Date
    05-09-2012
    Location
    Florida
    MS-Off Ver
    Excel 2013
    Posts
    136

    Re: Lookup Next Occurrence and Mark Halfway Mark with "Mark"

    Thanks Bo_Ry, is it possible to do this in reverse too? Like would I be able to do the same thing but look from bottom to top - but this time if the next Low above the previous low is more than 30 spots away, I would just "mark" 10 spots below that low above?
    Reason I ask is that I thuoght I'd be able to take what youve done and figure it out how to adapt, but it's more functions in there than I know how to use
    Thank again Bo_Ry

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

    Re: Lookup Next Occurrence and Mark Halfway Mark with "Mark"

    Maybe try at E3

    =REPT("Mark",ROWS(B$3:B3)-MATCH(2,{1}/(B$3:B3="low"))=IF(MATCH("Low",B4:B257,)+ROWS(B$3:B3)-MATCH(2,{1}/(B$3:B3="low"))>30,10,INT((MATCH("Low",B4:B257,)+ROWS(B$3:B3)-MATCH(2,{1}/(B$3:B3="low")))/2)))

  5. #5
    Forum Contributor
    Join Date
    05-09-2012
    Location
    Florida
    MS-Off Ver
    Excel 2013
    Posts
    136

    Re: Lookup Next Occurrence and Mark Halfway Mark with "Mark"

    Thank you so much Bo_Ry! Solved - great help

+ 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] Help to check data with miltiple conditions then mark "YES" if meet else mark "NO"
    By sbv1986 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 05-05-2019, 05:52 AM
  2. Make Mark "V" using Lookup Data
    By Jhon Mustofa in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-24-2018, 10:06 PM
  3. Automate Series Number With Adding Mark (.) or mark "-"
    By Jhon Mustofa in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-06-2014, 12:38 PM
  4. [SOLVED] Counting data only contains text (ignore mark "-" & "")
    By Jhon Mustofa in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-12-2014, 09:45 PM
  5. Replies: 3
    Last Post: 08-28-2012, 10:49 AM
  6. Mark data from one sheet to another,and then mark dublicate
    By minotauro in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-10-2012, 07:58 AM
  7. Replies: 6
    Last Post: 01-08-2006, 06:20 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