Attributing the value of a cell based on another corresponding cell

0 votes

I have many files of the sort: Sheet1 and Sheet2.

enter image description here

Sheet1

enter image description here

Sheet2

Is it possible for a user to automatically copy a value they enter in, say, B2 in Sheet2 to B5 in Sheet1? As a result, when the user types something and presses Enter, B5 receives the updated value.

When using a fixed range of cells (Worksheets), I am able to do this (1).

Range("B1:B14").

worksheets as the value (2).

Range("B1:B14").

Value), although in this instance, Sheet1's range and Sheet2's range are distinct. Excel would first need to locate the relevant cell. How can I go about doing that? Although I'm sure it could be done without it, I'd much rather use VBA.

Jan 23, 2023 in Others by Kithuzzz
• 38,000 points
475 views

1 answer to this question.

0 votes

Put in cell B1 of Sheet1:

=INDEX(Sheet2!B:B;MATCH(A1;Sheet2!A:A;0))

Drag it down to all other Sheet 1 column B cells. I hope this helps you.

answered Jan 23, 2023 by narikkadan
• 63,600 points

Related Questions In Others

0 votes
1 answer

Trying to run different macros based on value of cell in a range

This demonstrates one approach to loop through ...READ MORE

answered Jan 19, 2023 in Others by narikkadan
• 63,600 points
463 views
0 votes
1 answer

How do I combine the first character of a cell with another cell in Excel?

Try this: =CONCATENATE(LEFT(A1,1), B1) READ MORE

answered Nov 7, 2022 in Others by narikkadan
• 63,600 points
1,500 views
0 votes
1 answer

MS Excel showing the formula in a cell instead of the resulting value

Make sure that... There's an = sign before the formula There's ...READ MORE

answered Nov 8, 2022 in Others by narikkadan
• 63,600 points
817 views
0 votes
1 answer

Retrieve epay.info Balance with VBA and Excel

This code should log you in, provided ...READ MORE

answered Sep 5, 2018 in Blockchain by digger
• 26,740 points
1,258 views
0 votes
1 answer

How to load file to Excel Power query from SFTP site

Currently, I don't think there is a ...READ MORE

answered Dec 3, 2018 in Power BI by Upasana
• 8,620 points
3,695 views
0 votes
1 answer

Using VBA Excel to create a gramatically correct list

The Excel AND function is a logical ...READ MORE

answered Feb 9, 2022 in Others by gaurav
• 23,260 points
968 views
0 votes
2 answers

How to copy a formula horizontally within a table using Excel VBA?

Hi so basically, create an adjacent column ...READ MORE

answered Feb 16, 2022 in Others by Edureka
• 13,690 points
1,088 views
0 votes
1 answer

Select a range in Excel based on the value of a cell

Try this: Dim WorkRng As Range Set WorkRng = ...READ MORE

answered Jan 29, 2023 in Others by narikkadan
• 63,600 points
753 views
0 votes
1 answer

Formula for inserting a thumbnail picture into excel cell, based on another cell's value

Here is a really excellent tutorial on ...READ MORE

answered Oct 31, 2022 in Others by narikkadan
• 63,600 points
1,544 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP