Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 57
Default If statement with vlookup link to multiple sheets

I'm computing equivalent % of a school subject base on Perfect score %.
i.e If A1=100 (perfect score); A2=96(Actual score) of sheet 1, then in B2 it
will shows equivalent of A2 % from Sheet2=100% perfect score. I have 19
separate sheet for each Equivalent score % of 10 up to 100 perfect score.
Example, Sheet 2=100 perfect score, Sheet 3=95 perfect Score, etc. Which
means I have to include all this 19 sheet in my formula because it will
calculate base on whatever I input in A1.

Sheet 1
(A1) Perf_ Score = 100 (or 95, etc. Input data_variable)
(A2) Actual Score =96
(B2) Equiv= 98% (fr Sheet 2)

Example of Sheet 2= 100 perfect score
Score Equiv %
96 98
97 98
98 99
99 99
100 100

Thanks for any help you can extend...Rechie
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default If statement with vlookup link to multiple sheets

Copy the below formula to B2. Please note that this is an array formula.
Within the cell in edit mode (F2) paste this formula and press
Ctrl+Shift+Enter to apply this formula. If successful in 'Formula Bar' you
can notice the curly braces at both ends like "{=<formula}"

=VLOOKUP(A2,INDIRECT("'"&INDEX($J$1:$J$19,MATCH(TR UE,COUNTIF(INDIRECT("'"&$J$1:$J$19&"'!A:A"),A2)0, 0))&"'!A:B"),2,0)

Points to be noted

--$J$1:$J$19 is a range in the current sheet in which all the 19 sheet names
are entered (without blanks and spelled ****exactly*** same as the sheet
name)..This can even be a named range...If the names do not match

--A:B is the lookup array in each sheet...If you have only five entries in
each sheet in in ColA/B then you can modify this to A1:B5



If this post helps click Yes
---------------
Jacob Skaria


"Rechie" wrote:

I'm computing equivalent % of a school subject base on Perfect score %.
i.e If A1=100 (perfect score); A2=96(Actual score) of sheet 1, then in B2 it
will shows equivalent of A2 % from Sheet2=100% perfect score. I have 19
separate sheet for each Equivalent score % of 10 up to 100 perfect score.
Example, Sheet 2=100 perfect score, Sheet 3=95 perfect Score, etc. Which
means I have to include all this 19 sheet in my formula because it will
calculate base on whatever I input in A1.

Sheet 1
(A1) Perf_ Score = 100 (or 95, etc. Input data_variable)
(A2) Actual Score =96
(B2) Equiv= 98% (fr Sheet 2)

Example of Sheet 2= 100 perfect score
Score Equiv %
96 98
97 98
98 99
99 99
100 100

Thanks for any help you can extend...Rechie

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 57
Default If statement with vlookup link to multiple sheets

Hi Jacob,

Thanks... The formula is perfectly working. In the formula, I noticed that
range A1 is not included. This is important as this is the basis of the
computation of % equivalent of the actual score of the student. Because the
Number of items test or perfect score that we have given to students always
varies. Sometimes we are giving them 100, 95 or 40, etc. as total number of
items. If I'm giving them up to 80 items only (perfect score) then I will
input 80 in A1. The sheet name "PerfectScore=80" will be called in the
formula. Each sheet has different equivalent of %.

Rechie

"Jacob Skaria" wrote:

Copy the below formula to B2. Please note that this is an array formula.
Within the cell in edit mode (F2) paste this formula and press
Ctrl+Shift+Enter to apply this formula. If successful in 'Formula Bar' you
can notice the curly braces at both ends like "{=<formula}"

=VLOOKUP(A2,INDIRECT("'"&INDEX($J$1:$J$19,MATCH(TR UE,COUNTIF(INDIRECT("'"&$J$1:$J$19&"'!A:A"),A2)0, 0))&"'!A:B"),2,0)

Points to be noted

--$J$1:$J$19 is a range in the current sheet in which all the 19 sheet names
are entered (without blanks and spelled ****exactly*** same as the sheet
name)..This can even be a named range...If the names do not match

--A:B is the lookup array in each sheet...If you have only five entries in
each sheet in in ColA/B then you can modify this to A1:B5



If this post helps click Yes
---------------
Jacob Skaria


"Rechie" wrote:

I'm computing equivalent % of a school subject base on Perfect score %.
i.e If A1=100 (perfect score); A2=96(Actual score) of sheet 1, then in B2 it
will shows equivalent of A2 % from Sheet2=100% perfect score. I have 19
separate sheet for each Equivalent score % of 10 up to 100 perfect score.
Example, Sheet 2=100 perfect score, Sheet 3=95 perfect Score, etc. Which
means I have to include all this 19 sheet in my formula because it will
calculate base on whatever I input in A1.

Sheet 1
(A1) Perf_ Score = 100 (or 95, etc. Input data_variable)
(A2) Actual Score =96
(B2) Equiv= 98% (fr Sheet 2)

Example of Sheet 2= 100 perfect score
Score Equiv %
96 98
97 98
98 99
99 99
100 100

Thanks for any help you can extend...Rechie

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default If statement with vlookup link to multiple sheets

Do you mean the below; which will pick the right sheet ...I didnt know you
have named your sheets this way and hence my previous response..

PerfectScore=100
PerfectScore=95
PerfectScore=90
....and so on

=VLOOKUP(A2,INDIRECT("'PerfectScore=" & A1 & "'!A:B"),2,0)

If this post helps click Yes
---------------
Jacob Skaria


"Rechie" wrote:

Hi Jacob,

Thanks... The formula is perfectly working. In the formula, I noticed that
range A1 is not included. This is important as this is the basis of the
computation of % equivalent of the actual score of the student. Because the
Number of items test or perfect score that we have given to students always
varies. Sometimes we are giving them 100, 95 or 40, etc. as total number of
items. If I'm giving them up to 80 items only (perfect score) then I will
input 80 in A1. The sheet name "PerfectScore=80" will be called in the
formula. Each sheet has different equivalent of %.

Rechie

"Jacob Skaria" wrote:

Copy the below formula to B2. Please note that this is an array formula.
Within the cell in edit mode (F2) paste this formula and press
Ctrl+Shift+Enter to apply this formula. If successful in 'Formula Bar' you
can notice the curly braces at both ends like "{=<formula}"

=VLOOKUP(A2,INDIRECT("'"&INDEX($J$1:$J$19,MATCH(TR UE,COUNTIF(INDIRECT("'"&$J$1:$J$19&"'!A:A"),A2)0, 0))&"'!A:B"),2,0)

Points to be noted

--$J$1:$J$19 is a range in the current sheet in which all the 19 sheet names
are entered (without blanks and spelled ****exactly*** same as the sheet
name)..This can even be a named range...If the names do not match

--A:B is the lookup array in each sheet...If you have only five entries in
each sheet in in ColA/B then you can modify this to A1:B5



If this post helps click Yes
---------------
Jacob Skaria


"Rechie" wrote:

I'm computing equivalent % of a school subject base on Perfect score %.
i.e If A1=100 (perfect score); A2=96(Actual score) of sheet 1, then in B2 it
will shows equivalent of A2 % from Sheet2=100% perfect score. I have 19
separate sheet for each Equivalent score % of 10 up to 100 perfect score.
Example, Sheet 2=100 perfect score, Sheet 3=95 perfect Score, etc. Which
means I have to include all this 19 sheet in my formula because it will
calculate base on whatever I input in A1.

Sheet 1
(A1) Perf_ Score = 100 (or 95, etc. Input data_variable)
(A2) Actual Score =96
(B2) Equiv= 98% (fr Sheet 2)

Example of Sheet 2= 100 perfect score
Score Equiv %
96 98
97 98
98 99
99 99
100 100

Thanks for any help you can extend...Rechie

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 57
Default If statement with vlookup link to multiple sheets

Hello Jacob,

Fantastic ! Your formula is what I need in my worksheet.
It's really a big help. You're doing a great job guys.

Thank you very much.

Regards,
Rechie


"Jacob Skaria" wrote:

Do you mean the below; which will pick the right sheet ...I didnt know you
have named your sheets this way and hence my previous response..

PerfectScore=100
PerfectScore=95
PerfectScore=90
...and so on

=VLOOKUP(A2,INDIRECT("'PerfectScore=" & A1 & "'!A:B"),2,0)

If this post helps click Yes
---------------
Jacob Skaria


"Rechie" wrote:

Hi Jacob,

Thanks... The formula is perfectly working. In the formula, I noticed that
range A1 is not included. This is important as this is the basis of the
computation of % equivalent of the actual score of the student. Because the
Number of items test or perfect score that we have given to students always
varies. Sometimes we are giving them 100, 95 or 40, etc. as total number of
items. If I'm giving them up to 80 items only (perfect score) then I will
input 80 in A1. The sheet name "PerfectScore=80" will be called in the
formula. Each sheet has different equivalent of %.

Rechie

"Jacob Skaria" wrote:

Copy the below formula to B2. Please note that this is an array formula.
Within the cell in edit mode (F2) paste this formula and press
Ctrl+Shift+Enter to apply this formula. If successful in 'Formula Bar' you
can notice the curly braces at both ends like "{=<formula}"

=VLOOKUP(A2,INDIRECT("'"&INDEX($J$1:$J$19,MATCH(TR UE,COUNTIF(INDIRECT("'"&$J$1:$J$19&"'!A:A"),A2)0, 0))&"'!A:B"),2,0)

Points to be noted

--$J$1:$J$19 is a range in the current sheet in which all the 19 sheet names
are entered (without blanks and spelled ****exactly*** same as the sheet
name)..This can even be a named range...If the names do not match

--A:B is the lookup array in each sheet...If you have only five entries in
each sheet in in ColA/B then you can modify this to A1:B5



If this post helps click Yes
---------------
Jacob Skaria


"Rechie" wrote:

I'm computing equivalent % of a school subject base on Perfect score %.
i.e If A1=100 (perfect score); A2=96(Actual score) of sheet 1, then in B2 it
will shows equivalent of A2 % from Sheet2=100% perfect score. I have 19
separate sheet for each Equivalent score % of 10 up to 100 perfect score.
Example, Sheet 2=100 perfect score, Sheet 3=95 perfect Score, etc. Which
means I have to include all this 19 sheet in my formula because it will
calculate base on whatever I input in A1.

Sheet 1
(A1) Perf_ Score = 100 (or 95, etc. Input data_variable)
(A2) Actual Score =96
(B2) Equiv= 98% (fr Sheet 2)

Example of Sheet 2= 100 perfect score
Score Equiv %
96 98
97 98
98 99
99 99
100 100

Thanks for any help you can extend...Rechie

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
Multiple if statement with vlookup function TamIam Excel Worksheet Functions 1 March 18th 08 06:01 PM
link option buttons on multiple sheets NFaye Excel Discussion (Misc queries) 3 December 20th 07 10:52 PM
Vlookup with Multiple criteria and multiple sheets Cinny Excel Worksheet Functions 4 June 21st 07 01:47 AM
how to link data from one source sheet to multiple sheets Ashish Deshmukh Excel Worksheet Functions 2 June 15th 07 04:08 PM
Auto link rows of information from multiple sheets to single sheet Steve R Excel Discussion (Misc queries) 3 November 8th 06 06:13 AM


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

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"