Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 18
Default Formula referring to another formula

Okay, now I have a more serious question. Say cell B5 equals 6 or greater,
then

=IF(C5=17.5%,5,IF(C5=16.25%,4,IF(C5=14.25%,3,IF (C5=13%,2,IF(C5=0,1,"N/A")))))

and if B5 equals 5 then

=IF(C5=16.5%,5,IF(C5=15.25%,4,IF(C5=13.25%,3,IF (C5=12%,2,IF(C5=0,1,"N/A")))))

and so on down to B5 equaling down to 1 or less.

How do I do this? Forgive me for being kind of a hack.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Formula referring to another formula

Hazarding some thoughts here ..

Illustration in this sample:
http://www.freefilehosting.net/download/NDMzOTA=
Extracting values from a 2 way table.xls

First, set-up a 2-way reference table in say, H2:N7
with col B input values listed in I2:N2 (1-6)
and col C input values in H3:H7 (1-5)

Eg part of the table is shown below,
with col B values: 5, 6 only
(table is populated by inferring the values
from the 2 formulas in your post)

5 6
1 0 0
2 12% 13%
3 13.25% 14.25%
4 15.25% 16.25%
5 16.50% 17.50%

Then, with paired inputs for cols B and C assumed made in B5:C5 down

Place in D5:
=IF(COUNT(B5:C5)<2,"",INDEX($I$3:$N$7,MATCH(C5,$H$ 3:$H$7),MATCH(B5,$I$2:$N$2)))
Copy D5 down as far as required
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"57Caddy" wrote:
Okay, now I have a more serious question. Say cell B5 equals 6 or greater,
then

=IF(C5=17.5%,5,IF(C5=16.25%,4,IF(C5=14.25%,3,IF (C5=13%,2,IF(C5=0,1,"N/A")))))

and if B5 equals 5 then

=IF(C5=16.5%,5,IF(C5=15.25%,4,IF(C5=13.25%,3,IF (C5=12%,2,IF(C5=0,1,"N/A")))))

and so on down to B5 equaling down to 1 or less.

How do I do this? Forgive me for being kind of a hack.

  #3   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Formula referring to another formula

Think I mis-interpreted it earlier

Here's a revised sample to illustrate:
http://www.freefilehosting.net/download/NDM0NzY=
Extracting values from a 2 way table_1.xls

First, set-up the reference table in say, I2:N7
with col B input values listed in I2:N2 (1-6)
and the 5 percentages for each input within I3:N7

Eg part of the table is shown below,
with col B values: 5, 6 only
(values below the 5 & 6 are populated
by inferring from the 2 formulas in your post)

5 6
0 0
12% 13%
13.25% 14.25%
15.25% 16.25%
16.50% 17.50%

Then, with paired inputs for cols B and C assumed in B5:C5 down
place in D5:
=IF(COUNT(B5:C5)<2,"",MATCH(C5,OFFSET($H$3:$H$7,,M ATCH(B5,$I$2:$N$2))))
Copy D5 down as far as required

If B5:C5 contains 6, 15%, D5 will return: 3
If B5:C5 contains 5, 13%, D5 will return: 2
and so on
--
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
Using the drag down function and formula referring to other worksh Keith Excel Discussion (Misc queries) 3 July 27th 07 01:44 AM
Referring to Sheet locations in a formula PCLIVE Excel Worksheet Functions 4 June 30th 07 11:28 PM
Formula referring to a dynamic range in a different workbook mr tom Excel Worksheet Functions 6 March 29th 07 08:56 AM
Formula referring to a different sheet luvthavodka Excel Discussion (Misc queries) 1 November 12th 06 10:05 PM
formula works when referring to one cell but not to another Nicci New Users to Excel 3 July 7th 06 02:03 PM


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