ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   IF Cell A1 = Home, Cell A2 should change to 123 (https://www.excelbanter.com/excel-worksheet-functions/189211-if-cell-a1-%3D-home-cell-a2-should-change-123-a.html)

Chris

IF Cell A1 = Home, Cell A2 should change to 123
 
Hi All,

Im doing a spreadsheet where I have a list of Office locations, when I
choose a location I would like the relevant server name to appear in the cell
of my choosing (i.e. C3)

Im not sure how to go about this and was wondering if anyone knows the
formula, or if this is Evan possible?

Regards,
Chris

Pete_UK

IF Cell A1 = Home, Cell A2 should change to 123
 
What you should do is to list all possible Office locations and the
server name you want to associate with each. Put this in a table
somewhere - suppose it occupies X1:Y10.

Then in C3, with the office location in A3, you can put this formula:

=VLOOKUP(A3,X$1:Y$10,2,0)

This can be copied down if you have other office locations in column
A.

Hope this helps.

Pete

On May 29, 9:25*am, Chris wrote:
Hi All,

I’m doing a spreadsheet where I have a list of Office locations, when I
choose a location I would like the relevant server name to appear in the cell
of my choosing (i.e. C3)

I’m not sure how to go about this and was wondering if anyone knows the
formula, or if this is Evan possible?

Regards,
Chris



Chris

IF Cell A1 = Home, Cell A2 should change to 123
 
Thanks Pete,

This worked a treat!

"Pete_UK" wrote:

What you should do is to list all possible Office locations and the
server name you want to associate with each. Put this in a table
somewhere - suppose it occupies X1:Y10.

Then in C3, with the office location in A3, you can put this formula:

=VLOOKUP(A3,X$1:Y$10,2,0)

This can be copied down if you have other office locations in column
A.

Hope this helps.

Pete

On May 29, 9:25 am, Chris wrote:
Hi All,

Im doing a spreadsheet where I have a list of Office locations, when I
choose a location I would like the relevant server name to appear in the cell
of my choosing (i.e. C3)

Im not sure how to go about this and was wondering if anyone knows the
formula, or if this is Evan possible?

Regards,
Chris




Pete_UK

IF Cell A1 = Home, Cell A2 should change to 123
 
You're welcome, Chris - thanks for feeding back.

Pete

On May 29, 10:19*am, Chris wrote:
Thanks Pete,

This worked a treat!



"Pete_UK" wrote:
What you should do is to list all possible Office locations and the
server name you want to associate with each. Put this in a table
somewhere - suppose it occupies X1:Y10.


Then in C3, with the office location in A3, you can put this formula:


=VLOOKUP(A3,X$1:Y$10,2,0)


This can be copied down if you have other office locations in column
A.


Hope this helps.


Pete


On May 29, 9:25 am, Chris wrote:
Hi All,


I’m doing a spreadsheet where I have a list of Office locations, when I
choose a location I would like the relevant server name to appear in the cell
of my choosing (i.e. C3)


I’m not sure how to go about this and was wondering if anyone knows the
formula, or if this is Evan possible?


Regards,
Chris- Hide quoted text -


- Show quoted text -




All times are GMT +1. The time now is 12:51 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com