+ Reply to Thread
Page 2 of 2 FirstFirst 12
Results 16 to 28 of 28
  1. #16
    JE McGimpsey
    Guest

    Re: Complex if and mid function.

    I'm not entirely clear on what you're doing, but this will extract the
    date section from C2:

    =MID(LEFT(TRIM(C2),FIND("$",SUBSTITUTE(TRIM(C2)," ","$",4))-1),
    FIND("^",SUBSTITUTE(TRIM(C2)," ","^",3))+1,255)


    In article <brookdale.1rcgfo_1119974960.0008@excelforum-nospam.com>,
    brookdale <brookdale.1rcgfo_1119974960.0008@excelforum-nospam.com>
    wrote:

    > I have been saving the worst question for last. So here it is…Take his
    > line for example:
    >
    > " TBA TBA LECT TTH 01:30PM 02:50PM"
    >
    > The quotes show were it starts and ends. (There is some spacing in the
    > beginning.) This is largely what most of my recent questions have been
    > regarding. I need to create a function that will produce as a solution
    > whatever you see after the LECT. It would range from 1 to 3 characters.
    > (It is basically a day of the week: M,T,W,TH or THH, and F.)
    >
    > Now here is the major problem! In this example the TTH starts in the
    > 22nd space. There are hundreds of these, but they do not necessarily
    > start in the 22nd slot. Coming from the right it will always start in
    > the 22nd, 23rd, or 24th slot.
    >
    > How can I write an equation to pull out that date section. I am so
    > lost
    >
    >
    > PS: I have been working on this today. Here is what I have been trying
    > to do, but it is giving me one or two errors:
    >
    > =MID(IF(ISBLANK(C2),K2,C2),FIND((IF(ISBLANK(C2),K2,C2)),(" * "),20),4)
    >
    > In the red part I attempted to say look in the section with the text. I
    > think that part is okay. In the middle part (here is where the trouble
    > is), I attempted to get the starting point of the day text, so that it
    > could go into the mid function. No matter what the combination, the day
    > (as it occurs after LECT) will always be at least 20 spaces in. If I
    > could get this value, then I would be able to get the part in green
    > (the space plus the next 3 characters, incase of THH).
    >
    > Well...goodluck. I know I can't figure this out.


  2. #17
    bj
    Guest

    Re: Complex if and mid function.

    =if(and(isblank(c2),isblank(k2)),"",your equation)
    for extra spaces try the Trim() function

    "brookdale" wrote:

    >
    > I think I have it!
    >
    > =MID(IF(ISBLANK(C2),K2,C2),(SEARCH(" *
    > ",(IF(ISBLANK(C2),K2,C2)),20))+1,3)
    >
    > Now I just have a few issues here.
    >
    > 1. This searches columns C and K. Only one of them will contain data.
    > The other will be blank. Occasionally both will be blank. In this case
    > I need a blank cell to be returned. Right now I am getting a #VALUE!.
    > How can I fix this?
    >
    > 2. This next one may sound odd, but I need it for a more simple
    > equation. Say this solution picks up a M for Monday. Sometimes there is
    > a space or two before and after the M solution. I need to only have the
    > M. Is there like a "Nospaces" function or something I can add in here?
    >
    > Thanks.
    >
    >
    > --
    > brookdale
    > ------------------------------------------------------------------------
    > brookdale's Profile: http://www.excelforum.com/member.php...o&userid=24617
    > View this thread: http://www.excelforum.com/showthread...hreadid=382788
    >
    >


  3. #18
    JE McGimpsey
    Guest

    Re: Complex if and mid function.

    I'm not entirely clear on what you're doing, but this will extract the
    date section from C2:

    =MID(LEFT(TRIM(C2),FIND("$",SUBSTITUTE(TRIM(C2)," ","$",4))-1),
    FIND("^",SUBSTITUTE(TRIM(C2)," ","^",3))+1,255)


    In article <brookdale.1rcgfo_1119974960.0008@excelforum-nospam.com>,
    brookdale <brookdale.1rcgfo_1119974960.0008@excelforum-nospam.com>
    wrote:

    > I have been saving the worst question for last. So here it is…Take his
    > line for example:
    >
    > " TBA TBA LECT TTH 01:30PM 02:50PM"
    >
    > The quotes show were it starts and ends. (There is some spacing in the
    > beginning.) This is largely what most of my recent questions have been
    > regarding. I need to create a function that will produce as a solution
    > whatever you see after the LECT. It would range from 1 to 3 characters.
    > (It is basically a day of the week: M,T,W,TH or THH, and F.)
    >
    > Now here is the major problem! In this example the TTH starts in the
    > 22nd space. There are hundreds of these, but they do not necessarily
    > start in the 22nd slot. Coming from the right it will always start in
    > the 22nd, 23rd, or 24th slot.
    >
    > How can I write an equation to pull out that date section. I am so
    > lost
    >
    >
    > PS: I have been working on this today. Here is what I have been trying
    > to do, but it is giving me one or two errors:
    >
    > =MID(IF(ISBLANK(C2),K2,C2),FIND((IF(ISBLANK(C2),K2,C2)),(" * "),20),4)
    >
    > In the red part I attempted to say look in the section with the text. I
    > think that part is okay. In the middle part (here is where the trouble
    > is), I attempted to get the starting point of the day text, so that it
    > could go into the mid function. No matter what the combination, the day
    > (as it occurs after LECT) will always be at least 20 spaces in. If I
    > could get this value, then I would be able to get the part in green
    > (the space plus the next 3 characters, incase of THH).
    >
    > Well...goodluck. I know I can't figure this out.


  4. #19
    bj
    Guest

    Re: Complex if and mid function.

    =if(and(isblank(c2),isblank(k2)),"",your equation)
    for extra spaces try the Trim() function

    "brookdale" wrote:

    >
    > I think I have it!
    >
    > =MID(IF(ISBLANK(C2),K2,C2),(SEARCH(" *
    > ",(IF(ISBLANK(C2),K2,C2)),20))+1,3)
    >
    > Now I just have a few issues here.
    >
    > 1. This searches columns C and K. Only one of them will contain data.
    > The other will be blank. Occasionally both will be blank. In this case
    > I need a blank cell to be returned. Right now I am getting a #VALUE!.
    > How can I fix this?
    >
    > 2. This next one may sound odd, but I need it for a more simple
    > equation. Say this solution picks up a M for Monday. Sometimes there is
    > a space or two before and after the M solution. I need to only have the
    > M. Is there like a "Nospaces" function or something I can add in here?
    >
    > Thanks.
    >
    >
    > --
    > brookdale
    > ------------------------------------------------------------------------
    > brookdale's Profile: http://www.excelforum.com/member.php...o&userid=24617
    > View this thread: http://www.excelforum.com/showthread...hreadid=382788
    >
    >


  5. #20
    JE McGimpsey
    Guest

    Re: Complex if and mid function.

    I'm not entirely clear on what you're doing, but this will extract the
    date section from C2:

    =MID(LEFT(TRIM(C2),FIND("$",SUBSTITUTE(TRIM(C2)," ","$",4))-1),
    FIND("^",SUBSTITUTE(TRIM(C2)," ","^",3))+1,255)


    In article <brookdale.1rcgfo_1119974960.0008@excelforum-nospam.com>,
    brookdale <brookdale.1rcgfo_1119974960.0008@excelforum-nospam.com>
    wrote:

    > I have been saving the worst question for last. So here it is…Take his
    > line for example:
    >
    > " TBA TBA LECT TTH 01:30PM 02:50PM"
    >
    > The quotes show were it starts and ends. (There is some spacing in the
    > beginning.) This is largely what most of my recent questions have been
    > regarding. I need to create a function that will produce as a solution
    > whatever you see after the LECT. It would range from 1 to 3 characters.
    > (It is basically a day of the week: M,T,W,TH or THH, and F.)
    >
    > Now here is the major problem! In this example the TTH starts in the
    > 22nd space. There are hundreds of these, but they do not necessarily
    > start in the 22nd slot. Coming from the right it will always start in
    > the 22nd, 23rd, or 24th slot.
    >
    > How can I write an equation to pull out that date section. I am so
    > lost
    >
    >
    > PS: I have been working on this today. Here is what I have been trying
    > to do, but it is giving me one or two errors:
    >
    > =MID(IF(ISBLANK(C2),K2,C2),FIND((IF(ISBLANK(C2),K2,C2)),(" * "),20),4)
    >
    > In the red part I attempted to say look in the section with the text. I
    > think that part is okay. In the middle part (here is where the trouble
    > is), I attempted to get the starting point of the day text, so that it
    > could go into the mid function. No matter what the combination, the day
    > (as it occurs after LECT) will always be at least 20 spaces in. If I
    > could get this value, then I would be able to get the part in green
    > (the space plus the next 3 characters, incase of THH).
    >
    > Well...goodluck. I know I can't figure this out.


  6. #21
    bj
    Guest

    Re: Complex if and mid function.

    =if(and(isblank(c2),isblank(k2)),"",your equation)
    for extra spaces try the Trim() function

    "brookdale" wrote:

    >
    > I think I have it!
    >
    > =MID(IF(ISBLANK(C2),K2,C2),(SEARCH(" *
    > ",(IF(ISBLANK(C2),K2,C2)),20))+1,3)
    >
    > Now I just have a few issues here.
    >
    > 1. This searches columns C and K. Only one of them will contain data.
    > The other will be blank. Occasionally both will be blank. In this case
    > I need a blank cell to be returned. Right now I am getting a #VALUE!.
    > How can I fix this?
    >
    > 2. This next one may sound odd, but I need it for a more simple
    > equation. Say this solution picks up a M for Monday. Sometimes there is
    > a space or two before and after the M solution. I need to only have the
    > M. Is there like a "Nospaces" function or something I can add in here?
    >
    > Thanks.
    >
    >
    > --
    > brookdale
    > ------------------------------------------------------------------------
    > brookdale's Profile: http://www.excelforum.com/member.php...o&userid=24617
    > View this thread: http://www.excelforum.com/showthread...hreadid=382788
    >
    >


  7. #22
    JE McGimpsey
    Guest

    Re: Complex if and mid function.

    I'm not entirely clear on what you're doing, but this will extract the
    date section from C2:

    =MID(LEFT(TRIM(C2),FIND("$",SUBSTITUTE(TRIM(C2)," ","$",4))-1),
    FIND("^",SUBSTITUTE(TRIM(C2)," ","^",3))+1,255)


    In article <brookdale.1rcgfo_1119974960.0008@excelforum-nospam.com>,
    brookdale <brookdale.1rcgfo_1119974960.0008@excelforum-nospam.com>
    wrote:

    > I have been saving the worst question for last. So here it is…Take his
    > line for example:
    >
    > " TBA TBA LECT TTH 01:30PM 02:50PM"
    >
    > The quotes show were it starts and ends. (There is some spacing in the
    > beginning.) This is largely what most of my recent questions have been
    > regarding. I need to create a function that will produce as a solution
    > whatever you see after the LECT. It would range from 1 to 3 characters.
    > (It is basically a day of the week: M,T,W,TH or THH, and F.)
    >
    > Now here is the major problem! In this example the TTH starts in the
    > 22nd space. There are hundreds of these, but they do not necessarily
    > start in the 22nd slot. Coming from the right it will always start in
    > the 22nd, 23rd, or 24th slot.
    >
    > How can I write an equation to pull out that date section. I am so
    > lost
    >
    >
    > PS: I have been working on this today. Here is what I have been trying
    > to do, but it is giving me one or two errors:
    >
    > =MID(IF(ISBLANK(C2),K2,C2),FIND((IF(ISBLANK(C2),K2,C2)),(" * "),20),4)
    >
    > In the red part I attempted to say look in the section with the text. I
    > think that part is okay. In the middle part (here is where the trouble
    > is), I attempted to get the starting point of the day text, so that it
    > could go into the mid function. No matter what the combination, the day
    > (as it occurs after LECT) will always be at least 20 spaces in. If I
    > could get this value, then I would be able to get the part in green
    > (the space plus the next 3 characters, incase of THH).
    >
    > Well...goodluck. I know I can't figure this out.


  8. #23
    bj
    Guest

    Re: Complex if and mid function.

    =if(and(isblank(c2),isblank(k2)),"",your equation)
    for extra spaces try the Trim() function

    "brookdale" wrote:

    >
    > I think I have it!
    >
    > =MID(IF(ISBLANK(C2),K2,C2),(SEARCH(" *
    > ",(IF(ISBLANK(C2),K2,C2)),20))+1,3)
    >
    > Now I just have a few issues here.
    >
    > 1. This searches columns C and K. Only one of them will contain data.
    > The other will be blank. Occasionally both will be blank. In this case
    > I need a blank cell to be returned. Right now I am getting a #VALUE!.
    > How can I fix this?
    >
    > 2. This next one may sound odd, but I need it for a more simple
    > equation. Say this solution picks up a M for Monday. Sometimes there is
    > a space or two before and after the M solution. I need to only have the
    > M. Is there like a "Nospaces" function or something I can add in here?
    >
    > Thanks.
    >
    >
    > --
    > brookdale
    > ------------------------------------------------------------------------
    > brookdale's Profile: http://www.excelforum.com/member.php...o&userid=24617
    > View this thread: http://www.excelforum.com/showthread...hreadid=382788
    >
    >


  9. #24
    JE McGimpsey
    Guest

    Re: Complex if and mid function.

    I'm not entirely clear on what you're doing, but this will extract the
    date section from C2:

    =MID(LEFT(TRIM(C2),FIND("$",SUBSTITUTE(TRIM(C2)," ","$",4))-1),
    FIND("^",SUBSTITUTE(TRIM(C2)," ","^",3))+1,255)


    In article <brookdale.1rcgfo_1119974960.0008@excelforum-nospam.com>,
    brookdale <brookdale.1rcgfo_1119974960.0008@excelforum-nospam.com>
    wrote:

    > I have been saving the worst question for last. So here it is…Take his
    > line for example:
    >
    > " TBA TBA LECT TTH 01:30PM 02:50PM"
    >
    > The quotes show were it starts and ends. (There is some spacing in the
    > beginning.) This is largely what most of my recent questions have been
    > regarding. I need to create a function that will produce as a solution
    > whatever you see after the LECT. It would range from 1 to 3 characters.
    > (It is basically a day of the week: M,T,W,TH or THH, and F.)
    >
    > Now here is the major problem! In this example the TTH starts in the
    > 22nd space. There are hundreds of these, but they do not necessarily
    > start in the 22nd slot. Coming from the right it will always start in
    > the 22nd, 23rd, or 24th slot.
    >
    > How can I write an equation to pull out that date section. I am so
    > lost
    >
    >
    > PS: I have been working on this today. Here is what I have been trying
    > to do, but it is giving me one or two errors:
    >
    > =MID(IF(ISBLANK(C2),K2,C2),FIND((IF(ISBLANK(C2),K2,C2)),(" * "),20),4)
    >
    > In the red part I attempted to say look in the section with the text. I
    > think that part is okay. In the middle part (here is where the trouble
    > is), I attempted to get the starting point of the day text, so that it
    > could go into the mid function. No matter what the combination, the day
    > (as it occurs after LECT) will always be at least 20 spaces in. If I
    > could get this value, then I would be able to get the part in green
    > (the space plus the next 3 characters, incase of THH).
    >
    > Well...goodluck. I know I can't figure this out.


  10. #25
    bj
    Guest

    Re: Complex if and mid function.

    =if(and(isblank(c2),isblank(k2)),"",your equation)
    for extra spaces try the Trim() function

    "brookdale" wrote:

    >
    > I think I have it!
    >
    > =MID(IF(ISBLANK(C2),K2,C2),(SEARCH(" *
    > ",(IF(ISBLANK(C2),K2,C2)),20))+1,3)
    >
    > Now I just have a few issues here.
    >
    > 1. This searches columns C and K. Only one of them will contain data.
    > The other will be blank. Occasionally both will be blank. In this case
    > I need a blank cell to be returned. Right now I am getting a #VALUE!.
    > How can I fix this?
    >
    > 2. This next one may sound odd, but I need it for a more simple
    > equation. Say this solution picks up a M for Monday. Sometimes there is
    > a space or two before and after the M solution. I need to only have the
    > M. Is there like a "Nospaces" function or something I can add in here?
    >
    > Thanks.
    >
    >
    > --
    > brookdale
    > ------------------------------------------------------------------------
    > brookdale's Profile: http://www.excelforum.com/member.php...o&userid=24617
    > View this thread: http://www.excelforum.com/showthread...hreadid=382788
    >
    >


  11. #26
    JE McGimpsey
    Guest

    Re: Complex if and mid function.

    I'm not entirely clear on what you're doing, but this will extract the
    date section from C2:

    =MID(LEFT(TRIM(C2),FIND("$",SUBSTITUTE(TRIM(C2)," ","$",4))-1),
    FIND("^",SUBSTITUTE(TRIM(C2)," ","^",3))+1,255)


    In article <brookdale.1rcgfo_1119974960.0008@excelforum-nospam.com>,
    brookdale <brookdale.1rcgfo_1119974960.0008@excelforum-nospam.com>
    wrote:

    > I have been saving the worst question for last. So here it is…Take his
    > line for example:
    >
    > " TBA TBA LECT TTH 01:30PM 02:50PM"
    >
    > The quotes show were it starts and ends. (There is some spacing in the
    > beginning.) This is largely what most of my recent questions have been
    > regarding. I need to create a function that will produce as a solution
    > whatever you see after the LECT. It would range from 1 to 3 characters.
    > (It is basically a day of the week: M,T,W,TH or THH, and F.)
    >
    > Now here is the major problem! In this example the TTH starts in the
    > 22nd space. There are hundreds of these, but they do not necessarily
    > start in the 22nd slot. Coming from the right it will always start in
    > the 22nd, 23rd, or 24th slot.
    >
    > How can I write an equation to pull out that date section. I am so
    > lost
    >
    >
    > PS: I have been working on this today. Here is what I have been trying
    > to do, but it is giving me one or two errors:
    >
    > =MID(IF(ISBLANK(C2),K2,C2),FIND((IF(ISBLANK(C2),K2,C2)),(" * "),20),4)
    >
    > In the red part I attempted to say look in the section with the text. I
    > think that part is okay. In the middle part (here is where the trouble
    > is), I attempted to get the starting point of the day text, so that it
    > could go into the mid function. No matter what the combination, the day
    > (as it occurs after LECT) will always be at least 20 spaces in. If I
    > could get this value, then I would be able to get the part in green
    > (the space plus the next 3 characters, incase of THH).
    >
    > Well...goodluck. I know I can't figure this out.


  12. #27
    bj
    Guest

    Re: Complex if and mid function.

    =if(and(isblank(c2),isblank(k2)),"",your equation)
    for extra spaces try the Trim() function

    "brookdale" wrote:

    >
    > I think I have it!
    >
    > =MID(IF(ISBLANK(C2),K2,C2),(SEARCH(" *
    > ",(IF(ISBLANK(C2),K2,C2)),20))+1,3)
    >
    > Now I just have a few issues here.
    >
    > 1. This searches columns C and K. Only one of them will contain data.
    > The other will be blank. Occasionally both will be blank. In this case
    > I need a blank cell to be returned. Right now I am getting a #VALUE!.
    > How can I fix this?
    >
    > 2. This next one may sound odd, but I need it for a more simple
    > equation. Say this solution picks up a M for Monday. Sometimes there is
    > a space or two before and after the M solution. I need to only have the
    > M. Is there like a "Nospaces" function or something I can add in here?
    >
    > Thanks.
    >
    >
    > --
    > brookdale
    > ------------------------------------------------------------------------
    > brookdale's Profile: http://www.excelforum.com/member.php...o&userid=24617
    > View this thread: http://www.excelforum.com/showthread...hreadid=382788
    >
    >


  13. #28
    JE McGimpsey
    Guest

    Re: Complex if and mid function.

    I'm not entirely clear on what you're doing, but this will extract the
    date section from C2:

    =MID(LEFT(TRIM(C2),FIND("$",SUBSTITUTE(TRIM(C2)," ","$",4))-1),
    FIND("^",SUBSTITUTE(TRIM(C2)," ","^",3))+1,255)


    In article <brookdale.1rcgfo_1119974960.0008@excelforum-nospam.com>,
    brookdale <brookdale.1rcgfo_1119974960.0008@excelforum-nospam.com>
    wrote:

    > I have been saving the worst question for last. So here it is…Take his
    > line for example:
    >
    > " TBA TBA LECT TTH 01:30PM 02:50PM"
    >
    > The quotes show were it starts and ends. (There is some spacing in the
    > beginning.) This is largely what most of my recent questions have been
    > regarding. I need to create a function that will produce as a solution
    > whatever you see after the LECT. It would range from 1 to 3 characters.
    > (It is basically a day of the week: M,T,W,TH or THH, and F.)
    >
    > Now here is the major problem! In this example the TTH starts in the
    > 22nd space. There are hundreds of these, but they do not necessarily
    > start in the 22nd slot. Coming from the right it will always start in
    > the 22nd, 23rd, or 24th slot.
    >
    > How can I write an equation to pull out that date section. I am so
    > lost
    >
    >
    > PS: I have been working on this today. Here is what I have been trying
    > to do, but it is giving me one or two errors:
    >
    > =MID(IF(ISBLANK(C2),K2,C2),FIND((IF(ISBLANK(C2),K2,C2)),(" * "),20),4)
    >
    > In the red part I attempted to say look in the section with the text. I
    > think that part is okay. In the middle part (here is where the trouble
    > is), I attempted to get the starting point of the day text, so that it
    > could go into the mid function. No matter what the combination, the day
    > (as it occurs after LECT) will always be at least 20 spaces in. If I
    > could get this value, then I would be able to get the part in green
    > (the space plus the next 3 characters, incase of THH).
    >
    > Well...goodluck. I know I can't figure this out.


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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.2.0