Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Puzzled
 
Posts: n/a
Default Help with Formulae please!


Within my speardsheet I have a row which contains different values
increasing from 0 to 1,000.

Each time these values increase by 100, I need to be able to
automatically return another number, say 20 in a different row.

Eg

row of data: 0 10 52 87 91 101 135 168 189 225 265
etc.
required result: 20
20

I'd be grateful for any help anyone can give me.




--
Puzzled
------------------------------------------------------------------------
Puzzled's Profile: http://www.excelforum.com/member.php...o&userid=31908
View this thread: http://www.excelforum.com/showthread...hreadid=528449

  #2   Report Post  
Posted to microsoft.public.excel.misc
John James
 
Posts: n/a
Default Help with Formulae please!


Try

=(INT(D1/100)+1)*20


--
John James
------------------------------------------------------------------------
John James's Profile: http://www.excelforum.com/member.php...o&userid=32690
View this thread: http://www.excelforum.com/showthread...hreadid=528449

  #3   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Help with Formulae please!

Not sure about this one, but maybe add this to B2

=IF(AND(SUMPRODUCT(--(LEN($A$2:E2)))=0,F1=100),20,"")

and copy across

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Puzzled" wrote in
message ...

Within my speardsheet I have a row which contains different values
increasing from 0 to 1,000.

Each time these values increase by 100, I need to be able to
automatically return another number, say 20 in a different row.

Eg

row of data: 0 10 52 87 91 101 135 168 189 225 265
etc.
required result: 20
20

I'd be grateful for any help anyone can give me.




--
Puzzled
------------------------------------------------------------------------
Puzzled's Profile:

http://www.excelforum.com/member.php...o&userid=31908
View this thread: http://www.excelforum.com/showthread...hreadid=528449



  #5   Report Post  
Posted to microsoft.public.excel.misc
John James
 
Posts: n/a
Default Help with Formulae please!


Sorry, Puzzled. Totally misread your question (through the required
output spacing gaps automatically being trimmed when you posted).

Sandy's got it. Perhaps you may also need to adjust that formula to
allow for a 100 series being jumped (e.g going directly from 385 to
507, missing the 400 series), being re-entered (e.g. through a decrease
from 402 to 399) or the first entry being in the 100's.

On these assumptions, and with your label in A5, B5 being empty and
first figure in C5, my formula in column C should have read:
=IF(INT(c5/100)=INT(B5/100),"",(INT(C5/100)-INT(B5/100))*20)

Or you can adjust Sandy's Floor formula similarly.
=IF(FLOOR(C5,100)=FLOOR(B5,100),"",(FLOOR(C5,100)-FLOOR(B5,100))*0.2)

Then copy the formula to the right.


--
John James
------------------------------------------------------------------------
John James's Profile: http://www.excelforum.com/member.php...o&userid=32690
View this thread: http://www.excelforum.com/showthread...hreadid=528449



  #6   Report Post  
Posted to microsoft.public.excel.misc
Sandy Mann
 
Posts: n/a
Default Help with Formulae please!

Sandy's got it. Perhaps you may also need to adjust that formula to
allow for a 100 series being jumped (e.g going directly from 385 to
507, missing the 400 series), being re-entered (e.g. through a decrease
from 402 to 399) or the first entry being in the 100's.



Good point John. An alternative would be:

=IF(ABS(FLOOR(B5,100)-FLOOR(A5,100))=100,20,"")

--
Regards


Sandy

with @tiscali.co.uk


"John James" wrote
in message ...

Sorry, Puzzled. Totally misread your question (through the required
output spacing gaps automatically being trimmed when you posted).

Sandy's got it. Perhaps you may also need to adjust that formula to
allow for a 100 series being jumped (e.g going directly from 385 to
507, missing the 400 series), being re-entered (e.g. through a decrease
from 402 to 399) or the first entry being in the 100's.

On these assumptions, and with your label in A5, B5 being empty and
first figure in C5, my formula in column C should have read:
=IF(INT(c5/100)=INT(B5/100),"",(INT(C5/100)-INT(B5/100))*20)

Or you can adjust Sandy's Floor formula similarly.
=IF(FLOOR(C5,100)=FLOOR(B5,100),"",(FLOOR(C5,100)-FLOOR(B5,100))*0.2)

Then copy the formula to the right.


--
John James
------------------------------------------------------------------------
John James's Profile:
http://www.excelforum.com/member.php...o&userid=32690
View this thread: http://www.excelforum.com/showthread...hreadid=528449



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
Using the results of formulae between different spreadsheets. PeterNocon Excel Worksheet Functions 1 February 5th 06 07:03 PM
Change to formulae Emma Hope Excel Worksheet Functions 3 September 5th 05 09:16 PM
Searching TEXT in formulae, rather than results of formulae AndyE Excel Worksheet Functions 1 July 15th 05 10:57 AM
Dynamic formulae - similar to lotus 123 for excel JohnD Excel Discussion (Misc queries) 1 July 5th 05 11:41 PM
vlookup change column index position - without changing formulae loopyloobyloo Excel Worksheet Functions 1 November 26th 04 01:35 PM


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