+ Reply to Thread
Results 1 to 5 of 5

Combining Mid and If formula

  1. #1
    Registered User
    Join Date
    11-11-2016
    Location
    Eindhoven, Netherlands
    MS-Off Ver
    2010
    Posts
    11

    Combining Mid and If formula

    I want the result to be in Colum C

    If the "text" in colum A is "ZECH150" then i want that he searches a "=mid(B2;39;3)" in colum B, and the result Colum C


    I'm not an excel expert, i have medium experience but want to learn more and more..

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,196

    Re: Combining Mid and If formula

    This in C2 ...??


    =IF(A2= "ZECH150"MID(B2;39;3),"****")


    **** what is result if no match ???

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Combining Mid and If formula

    Just a slight correction to John's formula to account for your regional settings:

    =IF(A2="ZECH150";MID(B2;39;3);"****")

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    11-11-2016
    Location
    Eindhoven, Netherlands
    MS-Off Ver
    2010
    Posts
    11
    Quote Originally Posted by JohnTopley View Post
    This in C2 ...??


    =IF(A2= "ZECH150"MID(B2;39;3),"****")


    **** what is result if no match ???
    yes in c2
    if there is no match result can be empty

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Combining Mid and If formula

    Quote Originally Posted by Nijenhuis81 View Post
    if there is no match result can be empty
    Try one of these...

    =IF(A2="ZECH150",MID(B2,39,3),"")

    =IF(A2="ZECH150";MID(B2;39;3);"")
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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] Combining If( If(or If(And into one formula
    By crainaud in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-02-2015, 06:32 PM
  2. [SOLVED] Help in Combining Formula
    By shuriyan0924 in forum Excel General
    Replies: 13
    Last Post: 01-28-2015, 12:22 PM
  3. Combining IF and AND Formula with SUM?
    By yuj1n in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-27-2014, 03:33 AM
  4. Combining OR and And in a formula
    By richmark in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 04-28-2013, 03:10 AM
  5. [SOLVED] Combining vertical cells into one and between blank rows start combining again?
    By mike_m1 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-21-2012, 12:19 PM
  6. [SOLVED] Combining two IF formula's
    By Oaks15 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-09-2012, 06:33 AM
  7. Combining Formula
    By suburbanght in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-18-2007, 11:17 AM

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