Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dla dla is offline
external usenet poster
 
Posts: 1
Default looking for a way to repeat a formula pattern within a cell

I'm looking for a way to get this formula to continue on changing value every
10 numbers but only increasing 2 numbers in the result.

=IF(C7<=19,"4",IF(C7<=29,"6",IF(C7<=39,"8",IF(C7<= 49,"10",IF(C7<=59,"12",IF(C7<=69,"14",IF(C7<=79,"1 6",IF(C7<=89,"18",))))))))

I need an expert in writing code
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 740
Default looking for a way to repeat a formula pattern within a cell

Hi dla,

will u try this formula?
=2*(LEFT(C1,IF(LEN(C1)=1,1,LEN(C1)-1))+1)

the difference from your sample is if C7=0, answer here is 2...
assume all positive numbers on C7 only
regards

--
*****
birds of the same feather flock together..



"dla" wrote:

I'm looking for a way to get this formula to continue on changing value every
10 numbers but only increasing 2 numbers in the result.

=IF(C7<=19,"4",IF(C7<=29,"6",IF(C7<=39,"8",IF(C7<= 49,"10",IF(C7<=59,"12",IF(C7<=69,"14",IF(C7<=79,"1 6",IF(C7<=89,"18",))))))))

I need an expert in writing code

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 620
Default looking for a way to repeat a formula pattern within a cell

Try =4+2*CEILING((MAX(C7-19,0)/10),1)

Did you actually want text strings (as you've put the numbers in quotes)?
I've assumed you probably wanted real numbers?
--
David Biddulph

"dla" wrote in message
...
I'm looking for a way to get this formula to continue on changing value
every
10 numbers but only increasing 2 numbers in the result.

=IF(C7<=19,"4",IF(C7<=29,"6",IF(C7<=39,"8",IF(C7<= 49,"10",IF(C7<=59,"12",IF(C7<=69,"14",IF(C7<=79,"1 6",IF(C7<=89,"18",))))))))

I need an expert in writing code



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 605
Default looking for a way to repeat a formula pattern within a cell

Have you tested your formula with values like 2, 3, 4, 5, 6, 7, 8 and 9 respectively in C1?

Epinn

"driller" wrote in message ...
Hi dla,

will u try this formula?
=2*(LEFT(C1,IF(LEN(C1)=1,1,LEN(C1)-1))+1)

the difference from your sample is if C7=0, answer here is 2...
assume all positive numbers on C7 only
regards

--
*****
birds of the same feather flock together..



"dla" wrote:

I'm looking for a way to get this formula to continue on changing value every
10 numbers but only increasing 2 numbers in the result.

=IF(C7<=19,"4",IF(C7<=29,"6",IF(C7<=39,"8",IF(C7<= 49,"10",IF(C7<=59,"12",IF(C7<=69,"14",IF(C7<=79,"1 6",IF(C7<=89,"18",))))))))

I need an expert in writing code


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
Cell Colors whispagirl Excel Worksheet Functions 6 December 28th 06 03:02 AM
Using an offset formula for the reference in a relative reference Cuda Excel Worksheet Functions 6 November 15th 06 05:12 PM
Custom functions calculating time arguments Help Desperate Bill_De Excel Worksheet Functions 12 April 25th 06 02:22 AM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


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