+ Reply to Thread
Results 1 to 4 of 4

Need a formula to change cell in column 2 based off of text in column 1

  1. #1
    Registered User
    Join Date
    12-30-2014
    Location
    frisco, tx
    MS-Off Ver
    2010
    Posts
    2

    Need a formula to change cell in column 2 based off of text in column 1

    I have data I am retrieving from a database report that I need to change the data in column B to a % based on the text in column A. Column A Row 1 is a numerator which is a number and Row 2 is the denominator which is a number, but Row 3 is the rate of 1 & 2 and I need it to be formated to a % in Column B if Column A has "Rate" in the description.

    Now:
    COLUMN A COLUMN B
    Total # Orders 214
    Total # Orders Audited 245
    Rate of Compliant Orders 0.87

    Need:
    COLUMN A COLUMN B
    Total # Orders 214
    Total # Orders Audited 245
    Rate of Compliant Orders 87%

    Thanks so much!

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Need a formula to change cell in column 2 based off of text in column 1

    Hi,
    Welcome to the Forum.

    Please find the attached workbook. There are two test sheets having a VBA solution and the Formula Sheet has a formula solution to achieve this. See which one suits your requirement.
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Registered User
    Join Date
    12-30-2014
    Location
    frisco, tx
    MS-Off Ver
    2010
    Posts
    2

    Re: Need a formula to change cell in column 2 based off of text in column 1

    Thank you so much! That is exactly what I needed. Is there a good place to go to look for formulas? I have worked in Excel a long time, but have just started working with formulas.

    Thanks again!

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Need a formula to change cell in column 2 based off of text in column 1

    You're welcome.
    If that takes care of your question, please mark your thread as Solved by selecting Thread Tools (just above your first post) --> Mark thread as solved.

    Please visit this link, you will find plenty of learning resources for both Excel Formulas and VBA stuff.
    http://www.excelforum.com/excel-new-...additions.html

+ 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. Replies: 1
    Last Post: 01-30-2014, 01:42 PM
  2. [SOLVED] Fill a cell in Column B based on the text in Column A using a table on sheet 2
    By lbrasfie in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-25-2013, 01:56 PM
  3. [SOLVED] VBA to select a range and change text color within row based on info in specified column
    By Chris S. in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-06-2013, 09:05 PM
  4. Replies: 4
    Last Post: 09-05-2012, 01:50 PM
  5. Formula/macro to edit cells in one column based on contents of a cell in another column
    By robbyvegas in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-25-2012, 06:10 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