+ Reply to Thread
Results 1 to 6 of 6

Writo cell if right 5 char input value exist

  1. #1
    Forum Contributor
    Join Date
    11-10-2012
    Location
    istanbul
    MS-Off Ver
    Excel 2013
    Posts
    297

    Writo cell if right 5 char input value exist

    I have a table in C column There are text value inputs.(starting from C2 to down)

    I want to write to F column;(starting from F2 to down)
    if the right 5 char of C column inputed text is "abcde" =1
    if not "abcde" =2

    with a formula on F2 cell =IF(RIGHT(C2,5)="abcde",1,2) I can get what I want.

    But with a macro I need to write to F column this result as directly "1", or "2" , according to C column entries.

    Input on C column is going to down, when input realised to C column , it must be written to F column in same row.

    Thanks in advance for any reply and help.

    Regards,
    turist.

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Writo cell if right 5 char input value exist

    Hi turist,
    try it
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    11-10-2012
    Location
    istanbul
    MS-Off Ver
    Excel 2013
    Posts
    297

    Re: Writo cell if right 5 char input value exist

    Thanks for prompt reply, but write on E column. Must be written to F column.
    How to fix this?

  4. #4
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Writo cell if right 5 char input value exist

    Please Login or Register  to view this content.

  5. #5
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Writo cell if right 5 char input value exist

    Hi, turist

    Please Login or Register  to view this content.
    writes to the cell starting on the same cell as (1, 1) in Column C and adding two columns.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  6. #6
    Forum Contributor
    Join Date
    11-10-2012
    Location
    istanbul
    MS-Off Ver
    Excel 2013
    Posts
    297

    Re: Writo cell if right 5 char input value exist

    Please Login or Register  to view this content.
    worked correctly with this cahange.

+ 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] Add Special Char to input value
    By turist in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-17-2013, 01:46 PM
  2. [SOLVED] Input data to next row even if formulas exist
    By fremarco in forum Excel General
    Replies: 1
    Last Post: 08-09-2012, 10:04 AM
  3. Password Char to Input Box
    By ravi_m5_2000 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-14-2009, 11:40 AM
  4. Replies: 6
    Last Post: 03-10-2006, 01:15 PM
  5. Workbooks.OpenText dropping last char from input
    By John Keith in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-31-2005, 11:05 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