+ Reply to Thread
Results 1 to 7 of 7

Entering data into a certain cell if another cell contains a certain field

  1. #1
    Registered User
    Join Date
    02-05-2010
    Location
    cornwall, england
    MS-Off Ver
    Excel 2003
    Posts
    5

    Smile Entering data into a certain cell if another cell contains a certain field

    Hello,
    I've attached this image so i can better explain my issue

    What I am trying to achieve is this;
    Column A corresponds to certain colours in which they need a certain URL entered into column CR in-line with the same row
    For example
    If a cell in column A contains the word "BLK" i need it to input text into the same row under column CR

    If you can help me with this ill be very great full
    Attached Images Attached Images

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Entering data into a certain cell if another cell contains a certain field

    To understand this, I need to know what "certain colours" and "certain URL" mean. How many different colors (sorry, I'm a Yank ) are there? What URLs are associated with them? Do you want the URLs in column CR to be hyperlinks, or just text?

    Depending on what you need this could be solvable with formulas, or might require VBA.

  3. #3
    Forum Contributor
    Join Date
    04-18-2009
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2016
    Posts
    269

    Re: Entering data into a certain cell if another cell contains a certain field

    If the condition is satisfied, what kind of text do you want to put in Column CR?

    Here, we can very conveniently use If and Find formulas. Kindly, post your exact requirement.

    Regards,
    Karan

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Entering data into a certain cell if another cell contains a certain field

    Are there rules for formulating the SKU that dictate how the color is coded? For example, is it always the first three characters after the first underscore?

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Entering data into a certain cell if another cell contains a certain field

    Here is a solution that assumes that the color is always three characters starting with the 6th character, and it assumes that the colors in your example are all the available colors. The result is a text URL, not a hyperlink.

    If either assumption is wrong then the formula would have to be tweaked a bit, but this should be instructive.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    02-05-2010
    Location
    cornwall, england
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Entering data into a certain cell if another cell contains a certain field

    Quote Originally Posted by 6StringJazzer View Post
    Are there rules for formulating the SKU that dictate how the color is coded? For example, is it always the first three characters after the first underscore?
    Unfortunately it is not always a three character code for the colours, for example a code could be nv/bk
    I need to make a condition to examine the SKU, something like wildcard,colour code, wildcard.

    Quote Originally Posted by karan View Post
    If the condition is satisfied, what kind of text do you want to put in Column CR?

    Here, we can very conveniently use If and Find formulas. Kindly, post your exact requirement.

    Regards,
    Karan
    I do not need a formatted html link, all I need is the text, for example http://www.websitename.com/images/colour.jpg

  7. #7
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Entering data into a certain cell if another cell contains a certain field

    Quote Originally Posted by printwearclothing View Post
    Unfortunately it is not always a three character code for the colours, for example a code could be nv/bk
    I need to make a condition to examine the SKU, something like wildcard,colour code, wildcard.
    What is the syntax for the SKU, then? Is the color always in between the first two underscores? I notice in one line there seems to be no color at all.

+ Reply to Thread

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.6.0 RC 1