anniemalec

Board Regular
Joined
Jul 9, 2010
Messages
51
Hello

Not too sure if this is possible, but looking for help with the following formula.

=IF(AND(Training_Plan_2011.12!H9,"COM 1"),(Training_Plan_2011.12!A9,"7-Mar"),"Training_Plan_2011.12!I9","")

I'm working across spreadsheets and basically trying to get excel to input the value of a cell if two conditions are met.

Not too sure on the Syntax if it is possible. Any help is appreciated.

Can post screenshots if that will help?

Thanks.
 

NBVC

Well-known Member
Joined
Aug 31, 2005
Messages
5,828
Should it be?

=IF(AND(Training_Plan_2011.12!H9="COM 1",Training_Plan_2011.12!A9="7-Mar"),"Training_Plan_2011.12!I9","")

or

=IF(AND(Training_Plan_2011.12!H9="COM 1",TEXT(Training_Plan_2011.12!A9,"d-mmm")="7-Mar"),"Training_Plan_2011.12!I9","")
 

anniemalec

Board Regular
Joined
Jul 9, 2010
Messages
51
Thank you so much.

The bottom one has worked without the " " around L9.

However I was just wondering if there was a way I could add something that would tell the formula to do the same for the next 12 columns automatically without just adding absolute references and dragging along for 12 columns?

Basically Training Plan is a data sheet that will be updated and want everything on this worksheet to automatically pull from it without maintenance if possible.
 

j_latendre

Board Regular
Joined
Jan 21, 2011
Messages
101
Try this :

=IF(AND((Training_Plan_2011.12!H9="COM 1"),(Training_Plan_2011.12!A9="7-Mar")),"Training_Plan_2011.12!I9","")

Seems to me you have forgotten your = signs and a bracket.

Jesse
 

NBVC

Well-known Member
Joined
Aug 31, 2005
Messages
5,828
Thank you so much.

The bottom one has worked without the " " around L9.

However I was just wondering if there was a way I could add something that would tell the formula to do the same for the next 12 columns automatically without just adding absolute references and dragging along for 12 columns?

Basically Training Plan is a data sheet that will be updated and want everything on this worksheet to automatically pull from it without maintenance if possible.
Yes, thanks, I didn't catch the quotes around the last argument.

Can you elaborate on that? Which condition is being checked over the 12 columns? And what exactly are we checking for and returning?
 

anniemalec

Board Regular
Joined
Jul 9, 2010
Messages
51
Basically, if the formula comes back with a value e.g. 12, I want it to automatically paste this across the next 12 columns. If a value is found it will always need to be the same value for 13 weeks in total.

<?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" /><v:shapetype id=_x0000_t75 stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600"><v:stroke joinstyle="miter"></v:stroke><v:formulas><v:f eqn="if lineDrawn pixelLineWidth 0"></v:f><v:f eqn="sum @0 1 0"></v:f><v:f eqn="sum 0 0 @1"></v:f><v:f eqn="prod @2 1 2"></v:f><v:f eqn="prod @3 21600 pixelWidth"></v:f><v:f eqn="prod @3 21600 pixelHeight"></v:f><v:f eqn="sum @0 0 1"></v:f><v:f eqn="prod @6 1 2"></v:f><v:f eqn="prod @7 21600 pixelWidth"></v:f><v:f eqn="sum @8 21600 0"></v:f><v:f eqn="prod @7 21600 pixelHeight"></v:f><v:f eqn="sum @10 21600 0"></v:f></v:formulas><v:path o:connecttype="rect" gradientshapeok="t" o:extrusionok="f"></v:path><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" /><o:lock aspectratio="t" v:ext="edit"></o:lock></v:shapetype>
 

NBVC

Well-known Member
Joined
Aug 31, 2005
Messages
5,828
Then you will need the formula in all columns or in the other 12 columns a simpler formula like =$A1 where A1 contains the first result to copy across...

or you will need VBA, which might not be worth it.
 

anniemalec

Board Regular
Joined
Jul 9, 2010
Messages
51
I've just been asked to completely automate where possible. I've added absolute references so can easily drag and copy across all columns, however I won't be the one maintaining so would like to automate everything if I can (to avoid writing a user guide for the person maintaining!!)

Not to worry though. Thank you for your help, it's appreciated.
 

Forum statistics

Threads
1,081,543
Messages
5,359,431
Members
400,526
Latest member
Brook1083

Some videos you may like

This Week's Hot Topics

  • VBA (Userform)
    Hi All, I just would like to know why my code isn't working. Here is my VBA code: [CODE=vba]Private Sub OKButton_Click() Dim i As Integer...
  • List box that changes fill color
    Hello, I have gone through so many pages trying to figure this out. I have a 2020 calendar that depending on the day needs to have a certain...
  • Remove duplicates and retain one. Cross-linked cases
    Hi all I ran out of google keywords to use and still couldn't find a reference how to achieve the results of a single count. It would be great if...
  • VBA Copy and Paste With Duplicates
    Hello All, I'm in need of some input. My VBA skills are sub-par at best. I've assembled this code from basic research and it works but is...
  • Macro
    is it possible for a macro to run if the active cell value is different to the value above it
  • IF DATE and TIME
    I currently use this to check if date has passed but i also need to set a time on it too. Is it possible? [CODE=vba]=IF(B:B>TODAY(),"Not...
Top