Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default If with multiple worksheets

I'm trying to setup a worksheet so that it directly refers to another but am
having problems doing so.

Basically to summise what i want to happen, if a1 (sheet 1) is equal to a1
(sheet 2) then c1 on sheet 1 will change to c1 on sheet 2 - if a1 (sheet 1)
is equal to a2 (sheet 2) then c1 on sheet 1 will change to c2 on sheet 2 and
so on and so forth...

Can anyone shed some light on this for me?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,358
Default If with multiple worksheets

You need a VLOOKUP:
C1: =IF(COUNTIF(Sheet2!$A$1:$A$100,A1)=0,"no
match",VLOOKUP(A1,Sheet2!$A$1:$C$100,3,FALSE))

It checks to see if the A1 has a match on Sheet2!$A$1:$A$100. If no match,
it returns "no match" (change to suit your needs). If there is a matchup, it
pulls the respective value in column C on sheet2.

Hope this helps.
--
John C


"Tim Hill" wrote:

I'm trying to setup a worksheet so that it directly refers to another but am
having problems doing so.

Basically to summise what i want to happen, if a1 (sheet 1) is equal to a1
(sheet 2) then c1 on sheet 1 will change to c1 on sheet 2 - if a1 (sheet 1)
is equal to a2 (sheet 2) then c1 on sheet 1 will change to c2 on sheet 2 and
so on and so forth...

Can anyone shed some light on this for me?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default If with multiple worksheets

fantastic, thanks alot for your help john

Much Appreciated

Tim

"John C" wrote:

You need a VLOOKUP:
C1: =IF(COUNTIF(Sheet2!$A$1:$A$100,A1)=0,"no
match",VLOOKUP(A1,Sheet2!$A$1:$C$100,3,FALSE))

It checks to see if the A1 has a match on Sheet2!$A$1:$A$100. If no match,
it returns "no match" (change to suit your needs). If there is a matchup, it
pulls the respective value in column C on sheet2.

Hope this helps.
--
John C


"Tim Hill" wrote:

I'm trying to setup a worksheet so that it directly refers to another but am
having problems doing so.

Basically to summise what i want to happen, if a1 (sheet 1) is equal to a1
(sheet 2) then c1 on sheet 1 will change to c1 on sheet 2 - if a1 (sheet 1)
is equal to a2 (sheet 2) then c1 on sheet 1 will change to c2 on sheet 2 and
so on and so forth...

Can anyone shed some light on this for me?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,358
Default If with multiple worksheets

You're welcome, and thanks for the feedback. :)
--
John C


"Tim Hill" wrote:

fantastic, thanks alot for your help john

Much Appreciated

Tim

"John C" wrote:

You need a VLOOKUP:
C1: =IF(COUNTIF(Sheet2!$A$1:$A$100,A1)=0,"no
match",VLOOKUP(A1,Sheet2!$A$1:$C$100,3,FALSE))

It checks to see if the A1 has a match on Sheet2!$A$1:$A$100. If no match,
it returns "no match" (change to suit your needs). If there is a matchup, it
pulls the respective value in column C on sheet2.

Hope this helps.
--
John C


"Tim Hill" wrote:

I'm trying to setup a worksheet so that it directly refers to another but am
having problems doing so.

Basically to summise what i want to happen, if a1 (sheet 1) is equal to a1
(sheet 2) then c1 on sheet 1 will change to c1 on sheet 2 - if a1 (sheet 1)
is equal to a2 (sheet 2) then c1 on sheet 1 will change to c2 on sheet 2 and
so on and so forth...

Can anyone shed some light on this for me?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default If with multiple worksheets

Just to ask, is it possible to utilise this formula for only one entry e.g.

If cell B19 is left blank, then cell B20 is populate with a "Please select
an option" response?

Thanks.

"John C" wrote:

You need a VLOOKUP:
C1: =IF(COUNTIF(Sheet2!$A$1:$A$100,A1)=0,"no
match",VLOOKUP(A1,Sheet2!$A$1:$C$100,3,FALSE))

It checks to see if the A1 has a match on Sheet2!$A$1:$A$100. If no match,
it returns "no match" (change to suit your needs). If there is a matchup, it
pulls the respective value in column C on sheet2.

Hope this helps.
--
John C


"Tim Hill" wrote:

I'm trying to setup a worksheet so that it directly refers to another but am
having problems doing so.

Basically to summise what i want to happen, if a1 (sheet 1) is equal to a1
(sheet 2) then c1 on sheet 1 will change to c1 on sheet 2 - if a1 (sheet 1)
is equal to a2 (sheet 2) then c1 on sheet 1 will change to c2 on sheet 2 and
so on and so forth...

Can anyone shed some light on this for me?



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,358
Default If with multiple worksheets

B20: =IF(B19="","Please select an option",VLOOKUP(B19,yourtable,column,false))

Is that what you were wondering? If not, provide more detail.
--
John C


"GillianX" wrote:

Just to ask, is it possible to utilise this formula for only one entry e.g.

If cell B19 is left blank, then cell B20 is populate with a "Please select
an option" response?

Thanks.

"John C" wrote:

You need a VLOOKUP:
C1: =IF(COUNTIF(Sheet2!$A$1:$A$100,A1)=0,"no
match",VLOOKUP(A1,Sheet2!$A$1:$C$100,3,FALSE))

It checks to see if the A1 has a match on Sheet2!$A$1:$A$100. If no match,
it returns "no match" (change to suit your needs). If there is a matchup, it
pulls the respective value in column C on sheet2.

Hope this helps.
--
John C


"Tim Hill" wrote:

I'm trying to setup a worksheet so that it directly refers to another but am
having problems doing so.

Basically to summise what i want to happen, if a1 (sheet 1) is equal to a1
(sheet 2) then c1 on sheet 1 will change to c1 on sheet 2 - if a1 (sheet 1)
is equal to a2 (sheet 2) then c1 on sheet 1 will change to c2 on sheet 2 and
so on and so forth...

Can anyone shed some light on this for me?

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
SUMPRODUCT / SUMIF on Multiple Worksheets with Multiple Criteria kazoo Excel Discussion (Misc queries) 2 August 21st 08 06:22 PM
how to make a macro to clear multiple cells from multiple worksheets? [email protected] Excel Worksheet Functions 2 October 18th 07 04:31 PM
Delete Blank Rows Code - Multiple Worksheets - Multiple Documents BenS Excel Discussion (Misc queries) 3 June 29th 07 12:20 AM
display 1 line of multiple worksheets into multiple lines on 1 wks Golf Nut Excel Worksheet Functions 1 October 5th 06 08:28 AM
adding certain cells in multiple worksheets in multiple workbooks Stephen via OfficeKB.com Excel Worksheet Functions 1 February 4th 05 08:31 PM


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