If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Simple Simple

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-13-06, 10:16
Yerman Yerman is offline
Registered User
 
Join Date: Mar 2006
Posts: 21
Question Simple Simple

Hello Guys i can sure appreciate your help on this one.

i developing an application in excell, the problem is that i dont necesserally like the thing so i didn't knew that it can do so many things... so here is the drill down


i have several columns, lets call them A, B, C,
column A is difficulty like High, Medium, Low
column B is Hrs to work, 80 for High, 40 for Medium, and 20 for low
column C is Concatenation of A,B

what i want to do is in Column A do a simple Validation i have already done this... the tricky part comes in colum B, this spreadsheet goes 120 rows deep, and can potentially grow even bigger, so i want to auto populate the number in column B when you hit the correct High, Medium, Low option,

what i thought at first well maybe i can do a simple match like so:
=INDEX($AQ$4:$AR$6,MATCH("High",$AQ$4:$AQ$6,),MATC H(80,$AQ$4:$AR$4,)) INDEX($AQ$4:$AR$6,MATCH("Medium",$AQ$4:$AQ$6,),MAT CH(40,$AQ$5:$AR$5,)) INDEX($AQ$4:$AR$6,MATCH("Low",$AQ$4:$AQ$6,),MATCH( 20,$AQ$6:$AR$6,))

but the darn think will not make it happen for me..

can anyone help, suggest what the heck is going on here?
thnxs very much in advanced
Reply With Quote
  #2 (permalink)  
Old 11-13-06, 12:01
michaeldavid michaeldavid is offline
Registered User
 
Join Date: Dec 2004
Posts: 35
Am I missing something

Hi,

It would seem that some simple If statements would do the job, but the formula you have shown seems to be looking for something far more than this.

However here is how I would go about it:

=IF(A2<>"",IF(A2="High",80,IF(A2="Medium",40,IF(A2 ="Low",20,"Error"))),"")

Put this in B2 with the "High, Medium, Low in A2 and B2 should give you the answer you want. The error would show up for values outside the criteria and the if A2<>"" will give a nul value if nothing is there to be examined.

Is this what you were after?

Mike
Reply With Quote
  #3 (permalink)  
Old 11-13-06, 12:15
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,091
Howdy. Actually it is not simple. You need to use dependent lists.

When you say "120 rows deep" do you mean any item in column A might have 120 items associated with it?

Let's say that you have the three items in Column A on worksheet "Work". Then on another worksheet (name it "Control"), set up three named ranges (one for each item in Col A).

So on Control worksheet, in Cell B1, put "High" (without quotation marks). Then in cells B2:B5 (or however many you need), add the items related to High. Now in Cell C1, put "Medium", and in C2:C8 add the items related to "Medium". And in D1 put "Low" and in D2: D12 add items related to "Low". I would add a fourth named range while you are at it: in Cell A1 put the name Grade, then in A2 put High, in A3 put Medium, and in A4, put Low.

Now select the range B2:B5 (not including the header), and name it High. Select C2:C8 and name it Medium. Select D2: D12 and name it Low. Select A2:A4 and name it "Grade".

Now go back to worksheet Work.

Say that you have A3 as the first cell, go to Data > Validation, and in the dropdown choose List, and in "Refers to" type:

=Grade

then select cell B3, go to Data > Validation and from the dropdown list, choose List. Then in the "refers to" box type:

=INDIRECT(A3)
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums

Last edited by shades; 11-13-06 at 13:24.
Reply With Quote
  #4 (permalink)  
Old 11-13-06, 13:26
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,091
Here is an example of the setup described above.
Attached Files
File Type: zip DependentLists2.zip (7.1 KB, 20 views)
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums
Reply With Quote
  #5 (permalink)  
Old 11-13-06, 14:01
Yerman Yerman is offline
Registered User
 
Join Date: Mar 2006
Posts: 21
Actually both of you guys are correct... that was the second step to get the first formula into the correct row and column and the get the second validation trugh another validation...
this will make life much easier now... thank you both for your input i sincerely appreciate it
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Trackbacks are On
Pingbacks are On
Refbacks are On