Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Count Columns, Return Content

I need a function to return the contents of a cell based on a number given in
column F. Here it is:

A B C D E F
* $ @ % # 3 (I would need column G to return @ since it's 3
columns over)
^ ! % # * 2 (I would need column G to return ! since it's 2
columns over)

Does this make sense?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Count Columns, Return Content

Try this in g1

=CHOOSE(F1,A1,B1,C1,D1,E1)

Mike

"Leah G" wrote:

I need a function to return the contents of a cell based on a number given in
column F. Here it is:

A B C D E F
* $ @ % # 3 (I would need column G to return @ since it's 3
columns over)
^ ! % # * 2 (I would need column G to return ! since it's 2
columns over)

Does this make sense?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 25
Default Count Columns, Return Content

Hi Leah,

You could use OFFSET for this

Enter
=OFFSET(A1,0,F1-1,1,1)
in column G

Remember that A1 and F1 in this formula will need to be changed to the
corresponding cells you are working on

Alan

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200907/1

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Count Columns, Return Content

Try this:

=INDEX(A1:E1,F1)

Copy down as needed.
--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===


"Leah G" <Leah wrote in message
...
I need a function to return the contents of a cell based on a number given
in
column F. Here it is:

A B C D E F
* $ @ % # 3 (I would need column G to return @ since it's 3
columns over)
^ ! % # * 2 (I would need column G to return ! since it's 2
columns over)

Does this make sense?


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Count Columns, Return Content

That didn't work. Should there be a : somewhere?

"Mike H" wrote:

Try this in g1

=CHOOSE(F1,A1,B1,C1,D1,E1)

Mike

"Leah G" wrote:

I need a function to return the contents of a cell based on a number given in
column F. Here it is:

A B C D E F
* $ @ % # 3 (I would need column G to return @ since it's 3
columns over)
^ ! % # * 2 (I would need column G to return ! since it's 2
columns over)

Does this make sense?



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Count Columns, Return Content

This worked! Thanks so much!

"Alan McQuaid via OfficeKB.com" wrote:

Hi Leah,

You could use OFFSET for this

Enter
=OFFSET(A1,0,F1-1,1,1)
in column G

Remember that A1 and F1 in this formula will need to be changed to the
corresponding cells you are working on

Alan

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200907/1


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Count Columns, Return Content


That didn't work. Should there be a : somewhere?


It works perfectly and no there shouldn't be a : somewhere

Mike

"Leah G" wrote:

That didn't work. Should there be a : somewhere?

"Mike H" wrote:

Try this in g1

=CHOOSE(F1,A1,B1,C1,D1,E1)

Mike

"Leah G" wrote:

I need a function to return the contents of a cell based on a number given in
column F. Here it is:

A B C D E F
* $ @ % # 3 (I would need column G to return @ since it's 3
columns over)
^ ! % # * 2 (I would need column G to return ! since it's 2
columns over)

Does this make sense?

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
IF function to return date content of another cell lesg46 Excel Worksheet Functions 7 September 10th 08 06:50 PM
How do I compare two columns and return a number count 9274211 Excel Worksheet Functions 2 August 6th 08 03:05 AM
if range b6:n6 has no content, return A6 Twishlist Excel Worksheet Functions 7 January 25th 08 03:34 AM
how to compare cell content to a row pf data in excel and return . Abdel Excel Discussion (Misc queries) 0 December 12th 06 09:43 PM
Count Intervals of Filtered TEXT values in Column and Return Count across a Row Sam via OfficeKB.com Excel Worksheet Functions 9 July 31st 05 03:37 AM


All times are GMT +1. The time now is 04:37 PM.

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"