Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Sneed924
 
Posts: n/a
Default Complex If Then formulas

Heres what i am trying to do. I have a master list in one worksheet
displaying all program numbers available 1-500 and what stations they are
installed in (1-10). In another worksheet i have a database query displaying
all programs used. But the query does not contain the work station. I want to
combine them where my final worksheet displays 2 columns: programs used /
station. I have tried to fiddle with If then statements but have had no
success. The problem is that the cells don't match up. Program number 50
might be in cell 60 one day and move to cell 65 the next depending on the
programs now being used or not being used. The master list however is locked.
program 1 is always in the same cell. Is there someway to set it up so that:
A B
C D
1 Program used Station
All programs Station
2 100 If A2= C2:C502 then D corresponding 1-500

3 110 x
4 230 x

It might only be possible using visual basic. If thats the case I have
little experience with that. I could just input the stations by hand but i am
lazy and want my computer to do it for me. Any suggestions would be
appreciated.
  #2   Report Post  
Duke Carey
 
Posts: n/a
Default

Use the VLOOKUP() function

=VLOOKUP(A2, C2:D02,2,false)

"Sneed924" wrote:

Heres what i am trying to do. I have a master list in one worksheet
displaying all program numbers available 1-500 and what stations they are
installed in (1-10). In another worksheet i have a database query displaying
all programs used. But the query does not contain the work station. I want to
combine them where my final worksheet displays 2 columns: programs used /
station. I have tried to fiddle with If then statements but have had no
success. The problem is that the cells don't match up. Program number 50
might be in cell 60 one day and move to cell 65 the next depending on the
programs now being used or not being used. The master list however is locked.
program 1 is always in the same cell. Is there someway to set it up so that:
A B
C D
1 Program used Station
All programs Station
2 100 If A2= C2:C502 then D corresponding 1-500

3 110 x
4 230 x

It might only be possible using visual basic. If thats the case I have
little experience with that. I could just input the stations by hand but i am
lazy and want my computer to do it for me. Any suggestions would be
appreciated.

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
paste formulas between workbooks without workbook link ron Excel Discussion (Misc queries) 3 April 22nd 23 08:11 AM
Problem with named formula's nathan Excel Worksheet Functions 0 January 21st 05 04:07 PM
How to make Excel run limited number of formulas on a given worksh John Excel Discussion (Misc queries) 0 January 12th 05 04:29 PM
Complex Conditional formulas Aileyan Excel Worksheet Functions 1 November 29th 04 06:32 PM
calculating formulas for all workbooks in a folder Chad Excel Worksheet Functions 3 November 13th 04 05:22 PM


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