Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / General Excel Questions / April 2008

Tip: Looking for answers? Try searching our database.

Formula with cell column from cell text

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mjones - 24 Apr 2008 17:39 GMT
Hi,

I need to put a column letter in a cell (i.e. n), and then have the
formula refer to it as part of a cell reference.

More specifically, on the end of this formula, you will see n38 -
=IF($L38=OFFSET(AV38,-1,0),IF($C38=0," Amount?",$C38*N38),0)

So n in n38 needs to be a variable, where it picks up n from another
cell.  Then I can do mass copying instead of copying and editing
hundreds of cells.

Much appreciated!

Michele
Pete_UK - 24 Apr 2008 17:45 GMT
You could change the N38 to INDEX($A$1&ROW(A38)) if "N" is in A1, then
this will become effectively N38, N39, N40 etc when it is copied down
- is this what you want:

Pete

> Hi,
>
[quoted text clipped - 11 lines]
>
> Michele
mjones - 24 Apr 2008 17:55 GMT
> You could change the N38 to INDEX($A$1&ROW(A38)) if "N" is in A1, then
> this will become effectively N38, N39, N40 etc when it is copied down
[quoted text clipped - 17 lines]
>
> > Michele

Hi Pete,

This is the idea, except I get an error that there are too few
arguments.  Here is what I have, where n is in AS37.

=IF($L38=OFFSET(AV38,-1,0),IF($C38=0," Amount?",$C38*INDEX($AS
$37&ROW(A38))),0)

Thanks!

Michele
Pete_UK - 25 Apr 2008 01:17 GMT
Sorry, my mistake - should have been INDIRECT and not INDEX !!

Pete

> > You could change the N38 to INDEX($A$1&ROW(A38)) if "N" is in A1, then
> > this will become effectively N38, N39, N40 etc when it is copied down
[quoted text clipped - 31 lines]
>
> - Show quoted text -
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.