Boat Drinks  

Go Back   Boat Drinks > General > Computer and Consoles

Reply
 
Thread Tools Display Modes
Old 18-11-2009, 12:37   #1
Desmo
The Last Airbender
 
Desmo's Avatar
 
Join Date: Jun 2006
Location: Pigmopad
Posts: 11,915
Default Excel gurus - Part II

Need a little help with a formula I've got. It's currently working but I need to extend the range of cells covered but when I change the figure it stops working and I can't figure out why.

On the sheet JMA I have a list of jobs I do showing job no., customer name, job type and cost. The sheet this formula is on is for my invoice. I just have to add an invoice number to the job on the JMA sheet and it adds it to the current invoice sheet automatically.

When I first got the formula working, I only covered the first 100 rows on the JMA sheet, I now need to extend this to cover more cells.

The current formula that works is...

=IF(ISERROR(INDEX(JMA!$A$1:$F$100,SMALL(IF(JMA!$A$ 1:$A$100=$C$3,ROW(JMA!$A$1:$A$100)),ROW(1:1)),4)), "",INDEX(JMA!$A$1:$F$100,SMALL(IF(JMA!$A$1:$A$100= $C$3,ROW($A$1:$A$100)),ROW(1:1)),4))

...but if I change every reference of 100 to 200 it stops working and I can't figure out why. The cell just goes blank even though it showed data before and I'm still covering the same range of cells, just more of them.
__________________
Desmo is offline   Reply With Quote
Old 18-11-2009, 13:01   #2
kaiowas
The Stig
 
kaiowas's Avatar
 
Join Date: Jul 2006
Location: Fightertown USA
Posts: 1,458
Default

Looks like (although I can't be sure) part of the formula uses an array formula. When entering these after you have made your changes you have to hold down ctrl and shift whilst pressing enter.

Also there may be a minor error in the formula itself, in the first argument for the main IF function the ROW function references 'JMA!$A$1:$A$100' but in the corresponding part where you recalculate this value later in the formula the worksheet name hasn't been included.
__________________

Anal Fish Porn
kaiowas is offline   Reply With Quote
Old 18-11-2009, 13:17   #3
Desmo
The Last Airbender
 
Desmo's Avatar
 
Join Date: Jun 2006
Location: Pigmopad
Posts: 11,915
Default

Quote:
Originally Posted by kaiowas View Post
When entering these after you have made your changes you have to hold down ctrl and shift whilst pressing enter.
God damn it boy you were right. I had this niggling feeling it was something like that earlier but tried holding ctrl+enter and shift+enter but no joy. If only I'd tried all three

Cheers Phil
__________________
Desmo is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:29.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.