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

  • SEARCH
  • Home
  • 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 7933725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T21:24:57+00:00 2026-06-03T21:24:57+00:00

Ok.. I have tried to solve this problem all day and now I am

  • 0

Ok.. I have tried to solve this problem all day and now I am asking for help

What I Have: In excel, I input a value of 101 in cell A1. Next to it, in cell B1, I have a drop down list that shows the units of A1. Now it is Pa. So I have (101 | Pa)

What I want: I change B1 drop down list to atm, and I want it to automatically update the value in cell A1 to 1 | atm.

I have a workaround that requires another cell for the user to input, and then update according to B1 but this is not so clean and professional.

I hope you can understand my question.

You input is appreciated.

Thanks

  • 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-06-03T21:24:58+00:00Added an answer on June 3, 2026 at 9:24 pm

    You will need some VBA for this.

    Using a Change event to detect when the units are changed, update original values

    Put this in the Workbook module:

    Private Sub Worksheet_Change(ByVal Target As Range)
        Dim OldUnit As Variant
        Dim NewUnit As Variant
        Dim ConversionFactor As Double
        If Target.Cells.Count = 1 And Target.Column = 2 Then
            ' Save new units
            NewUnit = Target
            ' prevent recalling this code when we update cells
            Application.EnableEvents = False
            ' Get old units
            Application.Undo
            OldUnit = Target
            ' put new units back on sheet
            Target = NewUnit
            ' work out your conversion factor based on old and new units
            ConversionFactor = 0.5 ' for testing
            ' update value
            Target.Offset(0, -1) = Target.Offset(0, -1) * ConversionFactor
    
            Application.EnableEvents = True
        End If
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to solve this problem all day, I googled a lot,
I tried many ways to solve this problem but none works. suppose I have
I have tried to solve this problem before, and I've searched for a solution
I have tried searching over the internet about this problem but not able to
I’ve been trying to solve this problem for a while now to no avail.
I have been searching the internet for days trying to solve this problem. I
I have tried to solve the problems related to circular dependency in some files
Have tried to find solutions for this and can't really come up with anything.
I have tried this: #define format(f, ...) \ int size = strlen(f) + (sizeof((int[]){__VA_ARGS__})/sizeof(int))
I have tried many permutations but they all don't seems to work well. Am

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.