Calgarypuck Forums - The Unofficial Calgary Flames Fan Community
Old 01-30-2016, 08:41 AM   #1
Boblobla
Franchise Player
 
Boblobla's Avatar
 
Join Date: Apr 2008
Location: Calgary
Exp:
Default Alright Excel Gurus...

Here is my issue. I have one column (column A) that has a Y or N in it (for yes or no...) and another column (column B) that requires a value if column 1 has a Y. Is there any way to get the cell in column B to highlight if they are blank AND the column A value is Y?

I have consulted the internet and played with if() statements along with conditional formatting and I can't get it to work. I need something like the following but can't figure out how to get it to work.

if(A1="Y" and B1="blank", change cell color of B1 to red, do nothing)

I am not sure if excel can do this...

Please help me CP, you are my only hope.
Boblobla is offline   Reply With Quote
Old 01-30-2016, 09:00 AM   #2
Fuzz
Franchise Player
 
Fuzz's Avatar
 
Join Date: Mar 2015
Location: Pickle Jar Lake
Exp:
Default

If B1 gets a value when A1 is Y, otherwise it stays blank, can't you just do a conditional format on B1 being blank or not?
Fuzz is offline   Reply With Quote
The Following User Says Thank You to Fuzz For This Useful Post:
Old 01-30-2016, 09:02 AM   #3
Boblobla
Franchise Player
 
Boblobla's Avatar
 
Join Date: Apr 2008
Location: Calgary
Exp:
Default

Quote:
Originally Posted by Fuzz View Post
If B1 gets a value when A1 is Y, otherwise it stays blank, can't you just do a conditional format on B1 being blank or not?
I only want the cell colour to change when B1 is blank and A1 is Y. A1 can also be N and when A1 is N, B1 will be blank and that is acceptable and I don't want the cell highlighted.
Boblobla is offline   Reply With Quote
Old 01-30-2016, 09:20 AM   #4
Boblobla
Franchise Player
 
Boblobla's Avatar
 
Join Date: Apr 2008
Location: Calgary
Exp:
Default

HA, got it.

I needed to use an AND statement in conditional formatting.

=and(A1="Y", isblank(B1))

the condition is change the cell to red and the range is the full column and it works.
Boblobla is offline   Reply With Quote
Old 01-30-2016, 09:37 AM   #5
Fuzz
Franchise Player
 
Fuzz's Avatar
 
Join Date: Mar 2015
Location: Pickle Jar Lake
Exp:
Default

Ah, ok, so three states:
A1=Y, B1=value, no highlight
A1=Y, B1=blank, highlight
A1=N, B1=blank, no highlight

Is B1 actually blank, or is there a formula making it not have a value(in this case, it isn't blank because the formula resides in the cell, even though you see nothing).

You can do multiple rules, so you can first highlight everything where A1=Y, then the next rule can remove the highlight on cells where B isn't blank.
Fuzz is offline   Reply With Quote
The Following User Says Thank You to Fuzz For This Useful Post:
Old 01-30-2016, 09:37 AM   #6
Fuzz
Franchise Player
 
Fuzz's Avatar
 
Join Date: Mar 2015
Location: Pickle Jar Lake
Exp:
Default

Ah, nice. I was going to suggest that, but I wasn't sure if B was actually blank or hiding a formula.
Fuzz is offline   Reply With Quote
The Following User Says Thank You to Fuzz For This Useful Post:
Old 02-06-2016, 01:37 PM   #7
indes
First Line Centre
 
indes's Avatar
 
Join Date: Nov 2010
Location: Sherwood Park, AB
Exp:
Default

Just to piggyback on this thread I have an excel dilemma.

I am doing my taxes and have my banking transactions in a spreadsheet.

I put everything in, in the right order. Now that I have used "sort" it is out of order.

I can sort everything by date, but would like to have the transactions sorted from highest balance to lowest balance on any specific day. Make sense to anyone?

You can see that the dates are in order, but the transactions are not. Can I sort A and have a secondary sort for E?

indes is offline   Reply With Quote
Old 02-06-2016, 01:53 PM   #8
calgarygeologist
Franchise Player
 
Join Date: Dec 2013
Exp:
Default

Quote:
Originally Posted by indes View Post
Just to piggyback on this thread I have an excel dilemma.

I am doing my taxes and have my banking transactions in a spreadsheet.

I put everything in, in the right order. Now that I have used "sort" it is out of order.

I can sort everything by date, but would like to have the transactions sorted from highest balance to lowest balance on any specific day. Make sense to anyone?

You can see that the dates are in order, but the transactions are not. Can I sort A and have a secondary sort for E?

Easily done. You just have to set up multiple sort criteria.

You can find instructions here:
http://www.contextures.com/xlSort01.html
calgarygeologist is offline   Reply With Quote
The Following User Says Thank You to calgarygeologist For This Useful Post:
Old 04-06-2016, 03:35 PM   #9
Fuzz
Franchise Player
 
Fuzz's Avatar
 
Join Date: Mar 2015
Location: Pickle Jar Lake
Exp:
Default

Basically, I'd like to pass a cell value like you would pass a variable to a function, and get a result in another cell.

I've got what will be an expanding table, and there will be a number in Column A. I'd Like column B to get the result of a complicated process on another sheet. I know I could put it all on one sheet, and fill down, but I'd have about 20 extra columns that I'd rather keep off the main sheet. So is there a way to pass that to the other sheet, run it through one row of calculations and spit it back out in column B?
Fuzz is offline   Reply With Quote
Old 04-06-2016, 03:59 PM   #10
edslunch
Franchise Player
 
edslunch's Avatar
 
Join Date: Apr 2009
Exp:
Default Alright Excel Gurus...

It's easy to pass a value from the cell on one sheet to a selling another sheet. Simply click on the destination cell, type in =, then click the source cell on the other sheet. Do this in One Direction for your input cell in the other direction for your output cell.
edslunch is offline   Reply With Quote
Old 04-06-2016, 04:00 PM   #11
edslunch
Franchise Player
 
edslunch's Avatar
 
Join Date: Apr 2009
Exp:
Default Alright Excel Gurus...

Quote:
Originally Posted by Fuzz View Post
Basically, I'd like to pass a cell value like you would pass a variable to a function, and get a result in another cell.

I've got what will be an expanding table, and there will be a number in Column A. I'd Like column B to get the result of a complicated process on another sheet. I know I could put it all on one sheet, and fill down, but I'd have about 20 extra columns that I'd rather keep off the main sheet. So is there a way to pass that to the other sheet, run it through one row of calculations and spit it back out in column B?
Replied
edslunch is offline   Reply With Quote
Old 04-06-2016, 04:04 PM   #12
polak
In the Sin Bin
 
Join Date: Aug 2012
Exp:
Default

You can even do it in other work books.
polak is offline   Reply With Quote
Old 04-07-2016, 06:27 AM   #13
Fuzz
Franchise Player
 
Fuzz's Avatar
 
Join Date: Mar 2015
Location: Pickle Jar Lake
Exp:
Default

Yes, I know I can do that. What I want is to pass the value to sheet 2 A1, and get the value from W2 back on sheet 1, which I know is easy. But I don't want to repeat that all the way down the sheet, so on the next row in sheet one, I want that to go to the same sheet 2 A1. See the issue?
Fuzz is offline   Reply With Quote
Old 04-07-2016, 08:42 AM   #14
GGG
Franchise Player
 
GGG's Avatar
 
Join Date: Aug 2008
Location: California
Exp:
Default

$a$1

I think this is what you are asking. The sheet it is on doesn't really matter. To hold the value as you copy down any rows you just use $ sign in front of the affected row or column in the formula.

ie A1*$B$1 is in C1 if you copy the formula down to c2 and beyond you get
A2*$B$1 in C2
A3*$B$1 in C3

toss the sheet reference in front and your done.
GGG is offline   Reply With Quote
Old 04-07-2016, 12:05 PM   #15
Fuzz
Franchise Player
 
Fuzz's Avatar
 
Join Date: Mar 2015
Location: Pickle Jar Lake
Exp:
Default

I don't think that is what I am looking for. I don't want a corresponding row on sheet 2 for every row in sheet 1, I just want one row that has the formula, and every row on sheet one gets put through that.

If anyone is a programmer, it's just a basic function passing a variable. I could do it in VBS, but I don't want a macro in this, as it will be distributed.
Fuzz is offline   Reply With Quote
Old 04-07-2016, 12:27 PM   #16
Regorium
First Line Centre
 
Join Date: Apr 2006
Location: Calgary
Exp:
Default

Quote:
Originally Posted by Fuzz View Post
I don't think that is what I am looking for. I don't want a corresponding row on sheet 2 for every row in sheet 1, I just want one row that has the formula, and every row on sheet one gets put through that.

If anyone is a programmer, it's just a basic function passing a variable. I could do it in VBS, but I don't want a macro in this, as it will be distributed.
From what I know, you can't do this with formulas.

You could just fill down on sheet 2 and hide the sheet if it's for distribution.
Regorium is offline   Reply With Quote
Old 04-07-2016, 12:34 PM   #17
Fuzz
Franchise Player
 
Fuzz's Avatar
 
Join Date: Mar 2015
Location: Pickle Jar Lake
Exp:
Default

Ya, that's my backup plan. I just didn't want it to fail if a bunch of data gets added in the future, and thought it would be nice to have it on one row. My Googling didn't find anything though. I would think this would be a handy feature to have.
Fuzz is offline   Reply With Quote
Old 04-07-2016, 12:41 PM   #18
GGG
Franchise Player
 
GGG's Avatar
 
Join Date: Aug 2008
Location: California
Exp:
Default

I don't think there is any Loop functionality in basic excel functions which it sounds like you would need here.
GGG is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Forum Jump


All times are GMT -6. The time now is 02:19 AM.

Calgary Flames
2024-25




Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright Calgarypuck 2021 | See Our Privacy Policy