Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6701825
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:58:49+00:00 2026-05-26T06:58:49+00:00

One worksheet. 103 columns. I need to populate a 104th column that looks in

  • 0

One worksheet. 103 columns. I need to populate a 104th column that looks in one column (Column O aka. 15). The column only has two values in it, either a 1 or a 3. If that column has a 1 in it then the 104th column cell for that row needs one notation; if it’s a 3 then it needs a different notation. I know a little about formulas and a little about vba, which has gotten me nowhere with this. I have other macros that I use to convert values in columns, but they all work within the same column and I can’t seem to get those adapted to what I need now. Is there a relatively quick little macro that I can run through that just looks up the value in column o and pops in one of two notations to my last column?

Edited the first part there. Thinking of two things at once I guess. It’s columns. There are close to 3600 rows. I need to run through each row and enter a notation in the last column(104th) based off of whether the value in Column O is a 1 or 3. So, start with row 1 and enter either an x or y in the last column depending on the value in column o, then repeat for each row.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T06:58:50+00:00Added an answer on May 26, 2026 at 6:58 am

    Try this:

    Sub HTH()
    
        With Range("O1", Cells(Rows.Count, "O").End(xlUp)).Offset(, 89)
            .Formula = "=IF(O1=3,""x"",""y"")"
            .Value = .Value
        End With
    
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For example, if the data in one worksheet looks like: UsedRange.Columns.Count is 6 which
I am working on simplifying a worksheet by creating one sheet that has three
One of my tables in my SQL database has a growth rate of two
I have a need to copy a worksheet from one workbook into another and
I have a VBA macro that copies rows from one worksheet into another based
How to automagically combine Multiple (28) files into one file (worksheet) same columns (13)?
I have an Excel worksheet that has the following macro. I'd like to loop
With PHPExcel , I'm using: $workSheet->fromArray($array) ; To set my data. However, one column
I have a column 'A' in worksheet 'two' and another column 'B' in worksheet
I have a worksheet with around 3,000 rows. One of these columns contains ethnicity

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.