Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 113
Default Help with a formula

In one section of my form there are 2 columns: A and B. Cell range B1:B7
contains a series of different numerical values associated with the
corresponding cells in cell range A1:A7. Form users will choose the value
they want from column B by typing an "x" in the corresponding cell in column
A. For example: from the 7 numerical values in column B, the form user may
select the value in cell B4 by typing an "x" in cell A4. The value from B4
needs to display in cell C1. So, I need your help to write a formula that
tells cell C1 to look at cell range A1:A7 and if any cell in that range
contains an "x", to display the contents of the corresponding cell (from cell
range B1:B7) in cell C1. Would someone please help me write a formula to
accomplish this? Please and Thank you for your assistance! Leslie
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Help with a formula

Leslie,

Try this in C1

=VLOOKUP("x",A1:B7,2,FALSE)

If you have more than 1 x in column A it will rturn the first.

Mike

"Leslie" wrote:

In one section of my form there are 2 columns: A and B. Cell range B1:B7
contains a series of different numerical values associated with the
corresponding cells in cell range A1:A7. Form users will choose the value
they want from column B by typing an "x" in the corresponding cell in column
A. For example: from the 7 numerical values in column B, the form user may
select the value in cell B4 by typing an "x" in cell A4. The value from B4
needs to display in cell C1. So, I need your help to write a formula that
tells cell C1 to look at cell range A1:A7 and if any cell in that range
contains an "x", to display the contents of the corresponding cell (from cell
range B1:B7) in cell C1. Would someone please help me write a formula to
accomplish this? Please and Thank you for your assistance! Leslie

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Help with a formula

To get rid of the error with no x in column A

Mike

"Leslie" wrote:

In one section of my form there are 2 columns: A and B. Cell range B1:B7
contains a series of different numerical values associated with the
corresponding cells in cell range A1:A7. Form users will choose the value
they want from column B by typing an "x" in the corresponding cell in column
A. For example: from the 7 numerical values in column B, the form user may
select the value in cell B4 by typing an "x" in cell A4. The value from B4
needs to display in cell C1. So, I need your help to write a formula that
tells cell C1 to look at cell range A1:A7 and if any cell in that range
contains an "x", to display the contents of the corresponding cell (from cell
range B1:B7) in cell C1. Would someone please help me write a formula to
accomplish this? Please and Thank you for your assistance! Leslie

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Help with a formula

The formula would be helpful <g

=IF(ISNA(VLOOKUP("x",A1:B7,2,FALSE)),"Nothing
Selected",VLOOKUP("x",A1:B7,2,FALSE))

"Mike H" wrote:

To get rid of the error with no x in column A

Mike

"Leslie" wrote:

In one section of my form there are 2 columns: A and B. Cell range B1:B7
contains a series of different numerical values associated with the
corresponding cells in cell range A1:A7. Form users will choose the value
they want from column B by typing an "x" in the corresponding cell in column
A. For example: from the 7 numerical values in column B, the form user may
select the value in cell B4 by typing an "x" in cell A4. The value from B4
needs to display in cell C1. So, I need your help to write a formula that
tells cell C1 to look at cell range A1:A7 and if any cell in that range
contains an "x", to display the contents of the corresponding cell (from cell
range B1:B7) in cell C1. Would someone please help me write a formula to
accomplish this? Please and Thank you for your assistance! Leslie

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 113
Default Help with a formula

Mike - Thank you for responding. I have entered the formula you recommend.
Using your formula, I am able to get "Nothing Selected" to display, but I'm
not able to get a numerical value from B1:B7 to display in cell C1

"Mike H" wrote:

The formula would be helpful <g

=IF(ISNA(VLOOKUP("x",A1:B7,2,FALSE)),"Nothing
Selected",VLOOKUP("x",A1:B7,2,FALSE))

"Mike H" wrote:

To get rid of the error with no x in column A

Mike

"Leslie" wrote:

In one section of my form there are 2 columns: A and B. Cell range B1:B7
contains a series of different numerical values associated with the
corresponding cells in cell range A1:A7. Form users will choose the value
they want from column B by typing an "x" in the corresponding cell in column
A. For example: from the 7 numerical values in column B, the form user may
select the value in cell B4 by typing an "x" in cell A4. The value from B4
needs to display in cell C1. So, I need your help to write a formula that
tells cell C1 to look at cell range A1:A7 and if any cell in that range
contains an "x", to display the contents of the corresponding cell (from cell
range B1:B7) in cell C1. Would someone please help me write a formula to
accomplish this? Please and Thank you for your assistance! Leslie



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Help with a formula

Most odd, it works perfectly for me are you sure you pasted the formula
exacly as written?

You should get 'Nothing selected' if you don't have an x in A1 to A7
What appears in C1 when you put an x in one of the A cells?

Mike


"Leslie" wrote:

Mike - Thank you for responding. I have entered the formula you recommend.
Using your formula, I am able to get "Nothing Selected" to display, but I'm
not able to get a numerical value from B1:B7 to display in cell C1

"Mike H" wrote:

The formula would be helpful <g

=IF(ISNA(VLOOKUP("x",A1:B7,2,FALSE)),"Nothing
Selected",VLOOKUP("x",A1:B7,2,FALSE))

"Mike H" wrote:

To get rid of the error with no x in column A

Mike

"Leslie" wrote:

In one section of my form there are 2 columns: A and B. Cell range B1:B7
contains a series of different numerical values associated with the
corresponding cells in cell range A1:A7. Form users will choose the value
they want from column B by typing an "x" in the corresponding cell in column
A. For example: from the 7 numerical values in column B, the form user may
select the value in cell B4 by typing an "x" in cell A4. The value from B4
needs to display in cell C1. So, I need your help to write a formula that
tells cell C1 to look at cell range A1:A7 and if any cell in that range
contains an "x", to display the contents of the corresponding cell (from cell
range B1:B7) in cell C1. Would someone please help me write a formula to
accomplish this? Please and Thank you for your assistance! Leslie

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 113
Default Help with a formula

I took your advise and repeated the steps. I carefully pasted in the formula
and "Nothing Selected" does display when there is no "x" in cells A1:A7, but
nothing appears in the C1 cell when I type an "x" in one of the A1:A7 cells.
C1 changes to completely blank. I wonder if this fact is worth mentioning:
the cells in column A and B are actually merged cells, for example A1 is
merged cells A1:D1, and B1 cell is merged cells E1:H1. Would this change the
composition of the formula? Thanks for your patience, Mike. Would it be
helpful for you to see a copy of my form firsthand?

"Mike H" wrote:

Most odd, it works perfectly for me are you sure you pasted the formula
exacly as written?

You should get 'Nothing selected' if you don't have an x in A1 to A7
What appears in C1 when you put an x in one of the A cells?

Mike


"Leslie" wrote:

Mike - Thank you for responding. I have entered the formula you recommend.
Using your formula, I am able to get "Nothing Selected" to display, but I'm
not able to get a numerical value from B1:B7 to display in cell C1

"Mike H" wrote:

The formula would be helpful <g

=IF(ISNA(VLOOKUP("x",A1:B7,2,FALSE)),"Nothing
Selected",VLOOKUP("x",A1:B7,2,FALSE))

"Mike H" wrote:

To get rid of the error with no x in column A

Mike

"Leslie" wrote:

In one section of my form there are 2 columns: A and B. Cell range B1:B7
contains a series of different numerical values associated with the
corresponding cells in cell range A1:A7. Form users will choose the value
they want from column B by typing an "x" in the corresponding cell in column
A. For example: from the 7 numerical values in column B, the form user may
select the value in cell B4 by typing an "x" in cell A4. The value from B4
needs to display in cell C1. So, I need your help to write a formula that
tells cell C1 to look at cell range A1:A7 and if any cell in that range
contains an "x", to display the contents of the corresponding cell (from cell
range B1:B7) in cell C1. Would someone please help me write a formula to
accomplish this? Please and Thank you for your assistance! Leslie

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 113
Default Help with a formula

Mike - Thank you for responding. I have entered the formula you recommend.
Using your formula, I am able to get "Nothing Selected" to display, but I'm
not able to get a numerical value from B1:B7 to display in cell C1


"Mike H" wrote:

The formula would be helpful <g

=IF(ISNA(VLOOKUP("x",A1:B7,2,FALSE)),"Nothing
Selected",VLOOKUP("x",A1:B7,2,FALSE))

"Mike H" wrote:

To get rid of the error with no x in column A

Mike

"Leslie" wrote:

In one section of my form there are 2 columns: A and B. Cell range B1:B7
contains a series of different numerical values associated with the
corresponding cells in cell range A1:A7. Form users will choose the value
they want from column B by typing an "x" in the corresponding cell in column
A. For example: from the 7 numerical values in column B, the form user may
select the value in cell B4 by typing an "x" in cell A4. The value from B4
needs to display in cell C1. So, I need your help to write a formula that
tells cell C1 to look at cell range A1:A7 and if any cell in that range
contains an "x", to display the contents of the corresponding cell (from cell
range B1:B7) in cell C1. Would someone please help me write a formula to
accomplish this? Please and Thank you for your assistance! Leslie

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:16 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"