Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Appending to existing function

Greetings,

I currently have a function I need to append to for a whole column:
=VLOOKUP(I1,'Male Tables'!AJ4:AT140,AS1)
=VLOOKUP(I2,'Male Tables'!AJ4:AT140,AS2)
=VLOOKUP(I3,'Male Tables'!AJ4:AT140,AS3)
" " " " " "

I need to append it to look like this:
=IF(I1<J1,100,VLOOKUP(I1,'Male Tables'!AJ4:AT140,AS1))
=IF(I2<J2,100,VLOOKUP(I2,'Male Tables'!AJ4:AT140,AS2))
=IF(I3<J3,100,VLOOKUP(I3,'Male Tables'!AJ4:AT140,AS3))

Is there an easy method to appended the "=IF(I1<J1,100(existing data)" to
the existing function without changing current references?

I have 6 columns with over 200 rows that I need to apply similar appends too.

Thanks for any help.
--
Just an ordinary Joe
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default Appending to existing function

=IF(I1<J1,100,VLOOKUP(I1,'Male Tables'!$AJ$4:$AT$140,AS1))

Just copy down as far as you need. All references will be adjusted, with the exception those with $ signs.

BTW, I can't imagine the "AS1" is correct. Shouldn't it just be 10; the relative column number in the search table?

--
Kind regards,

Niek Otten
Microsoft MVP - Excel


"D.Jessup" wrote in message ...
| Greetings,
|
| I currently have a function I need to append to for a whole column:
| =VLOOKUP(I1,'Male Tables'!AJ4:AT140,AS1)
| =VLOOKUP(I2,'Male Tables'!AJ4:AT140,AS2)
| =VLOOKUP(I3,'Male Tables'!AJ4:AT140,AS3)
| " " " " " "
|
| I need to append it to look like this:
| =IF(I1<J1,100,VLOOKUP(I1,'Male Tables'!AJ4:AT140,AS1))
| =IF(I2<J2,100,VLOOKUP(I2,'Male Tables'!AJ4:AT140,AS2))
| =IF(I3<J3,100,VLOOKUP(I3,'Male Tables'!AJ4:AT140,AS3))
|
| Is there an easy method to appended the "=IF(I1<J1,100(existing data)" to
| the existing function without changing current references?
|
| I have 6 columns with over 200 rows that I need to apply similar appends too.
|
| Thanks for any help.
| --
| Just an ordinary Joe


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Appending to existing function

Thank you very much!!! I was dreading the though of having to do a manual
change.

And to answer your question about the AS1 reference. This is correct, it is
yet another function that is used elsewhere on the worksheet.
--
Just an ordinary Joe


"Niek Otten" wrote:

=IF(I1<J1,100,VLOOKUP(I1,'Male Tables'!$AJ$4:$AT$140,AS1))

Just copy down as far as you need. All references will be adjusted, with the exception those with $ signs.

BTW, I can't imagine the "AS1" is correct. Shouldn't it just be 10; the relative column number in the search table?

--
Kind regards,

Niek Otten
Microsoft MVP - Excel


"D.Jessup" wrote in message ...
| Greetings,
|
| I currently have a function I need to append to for a whole column:
| =VLOOKUP(I1,'Male Tables'!AJ4:AT140,AS1)
| =VLOOKUP(I2,'Male Tables'!AJ4:AT140,AS2)
| =VLOOKUP(I3,'Male Tables'!AJ4:AT140,AS3)
| " " " " " "
|
| I need to append it to look like this:
| =IF(I1<J1,100,VLOOKUP(I1,'Male Tables'!AJ4:AT140,AS1))
| =IF(I2<J2,100,VLOOKUP(I2,'Male Tables'!AJ4:AT140,AS2))
| =IF(I3<J3,100,VLOOKUP(I3,'Male Tables'!AJ4:AT140,AS3))
|
| Is there an easy method to appended the "=IF(I1<J1,100(existing data)" to
| the existing function without changing current references?
|
| I have 6 columns with over 200 rows that I need to apply similar appends too.
|
| Thanks for any help.
| --
| Just an ordinary Joe



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Appending to existing function

Since you need the column index part, ie: AS1
to increment to: AS2, AS3 etc as you copy down from the top cell
think we could use: INDIRECT("AS"&ROW(A1)) in the top cell's formula
The ROW(A1) will act as the incrementer as you copy down

Try this slight tweak to Niek's suggestion:
=IF(I1<J1,100,VLOOKUP(I1,'Male Tables'!$AJ$4:$AT$140,INDIRECT("AS"&ROW(A1))))
Copy down as required
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"D.Jessup" wrote:
Thank you very much!!! I was dreading the though of having to do a manual
change.

And to answer your question about the AS1 reference. This is correct, it is
yet another function that is used elsewhere on the worksheet.
--
Just an ordinary Joe


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Appending to existing function

Sorry, kindly dismiss the earlier response ..
I must have been intoxicated (red-faced)
There wasn't any need to use INDIRECT at all
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


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
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) [email protected] Excel Worksheet Functions 0 September 5th 06 03:44 PM
Need some comments on my Utility_Move class module. jchen Excel Worksheet Functions 0 August 21st 06 07:05 PM
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
copying existing function Brad Excel Worksheet Functions 0 February 22nd 05 01:34 PM
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. Robert AS Excel Worksheet Functions 4 December 2nd 04 10:49 AM


All times are GMT +1. The time now is 01:44 PM.

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

About Us

"It's about Microsoft Excel"