Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Monk
 
Posts: n/a
Default Tyring to shorten a formula ..!

Hi.

Im probably doing this completely wrong but i want the spreadsheet to return
a value when you enter a number.. ?

Ok.. simple terms.
I have say 100 product codes and their product description detailed on the
spreadsheet. If I enter a product code in to cell E4 (for example) I wish the
cell with the formula in it to return the product description

I have managed this using the below formula..

=IF(E4=1,L8,"")&IF(E4=2,L7,"")&IF... and so on to product No. 100

But im finding im having to enter a very long formula and there is only a
specific length the formula can be before it wont let me add any more.

Is there away of shortening the formula or entering a completly different
one to get the same result .??
Many thanks.. J.

  #2   Report Post  
N Harkawat
 
Posts: n/a
Default


Look at Help for the function VLOOKUP

"Monk" wrote in message
...
Hi.

Im probably doing this completely wrong but i want the spreadsheet to
return
a value when you enter a number.. ?

Ok.. simple terms.
I have say 100 product codes and their product description detailed on the
spreadsheet. If I enter a product code in to cell E4 (for example) I wish
the
cell with the formula in it to return the product description

I have managed this using the below formula..

=IF(E4=1,L8,"")&IF(E4=2,L7,"")&IF... and so on to product No. 100

But im finding im having to enter a very long formula and there is only a
specific length the formula can be before it wont let me add any more.

Is there away of shortening the formula or entering a completly different
one to get the same result .??
Many thanks.. J.



  #3   Report Post  
B. R.Ramachandran
 
Posts: n/a
Default

Hi,
This could be a possibility, if (a) the product codes (and descriptions) are
in contained in sequential rows (i.e., with no blank rows in between), (b)
the info for each product is contained in only one row.
If the product codes are in column K and descriptions in column L (say
starting from row 2 to row 101), and you want the description for a product
to appear in F4 based on the code you enter in E4,
the formula for F4 would be
=OFFSET($L$2,MATCH($E$4,$K$2:$K$101,0)-1,0)
Hope this works!
Regards,
B.R.Ramachandran




"Monk" wrote:

Hi.

Im probably doing this completely wrong but i want the spreadsheet to return
a value when you enter a number.. ?

Ok.. simple terms.
I have say 100 product codes and their product description detailed on the
spreadsheet. If I enter a product code in to cell E4 (for example) I wish the
cell with the formula in it to return the product description

I have managed this using the below formula..

=IF(E4=1,L8,"")&IF(E4=2,L7,"")&IF... and so on to product No. 100

But im finding im having to enter a very long formula and there is only a
specific length the formula can be before it wont let me add any more.

Is there away of shortening the formula or entering a completly different
one to get the same result .??
Many thanks.. J.

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
put formula results into a different cell if it is empty PutFormula Excel Worksheet Functions 2 February 11th 05 03:31 AM
how do i write a formula and keep in in formula form, so it DOESN. norcalchick2207 Excel Discussion (Misc queries) 2 February 4th 05 08:38 PM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
Shorten sumproduct formula Andre Croteau Excel Discussion (Misc queries) 1 December 11th 04 10:30 PM
Cell doesn't show formula result - it shows formula (CTRL + ' doe. o0o0o0o Excel Worksheet Functions 6 November 19th 04 03:13 PM


All times are GMT +1. The time now is 09:13 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"