Avatar of Frank .S
Frank .SFlag for Australia

asked on 

excel worksheet if statements required

** excel worksheet with if statement formulas **
- on the attached excel worksheet, in the hilited cells  d5-g5 i have attached comments of the formulas required, please have a look and if you need more information please ask.
- the 'green arrow' i refer to in d5 is suppose to be a tick symbol, sorry for confusion.
yComparison-Job-Sheet_v1.1.xlsx
Microsoft ExcelMicrosoft Office

Avatar of undefined
Last Comment
Bill Prew
Avatar of Bill Prew
Bill Prew

Questions:
  1. In D5, what direction should the arrow point (up, down, left, right)?
  2. In E5 what character(s) do you want in that cell?
  3. In F5 what character(s) do you want in that cell?


»bp
Avatar of Frank .S
Frank .S
Flag of Australia image

ASKER

Hi Bill,
1- sorry the arrow i refer to is to be a tick symbol, so upwards
2&3 - sorry i dont understand your question, could you please give me more information?
Avatar of Bill Prew
Bill Prew

I don't understand from the cell comments what values you want in E5 and F5.  You said:

"if the cell value in c5 is > than b5 then show in this column in bold red text with this background colour"

which doesn't state what is actually in those cells?  Is it one of B5 or C5?  Or the difference between them?  Or a plus or minus sign?  Etc...


»bp
Avatar of Frank .S
Frank .S
Flag of Australia image

ASKER

hi Bill, i added into the cell comment what needs to be shown in this cell;
 "- if the cell value in c5 is > than b5 then show in this column in bold red text with this background colour" therefore the value should always =c5-b5, is it clearer now?
Avatar of Frank .S
Frank .S
Flag of Australia image

ASKER

- but if the result is positive it will only show in column e, if the result between the 2 is negative then nothing will be shown in column e, only in column f.
Avatar of Bill Prew
Bill Prew

See if this is close to what you were looking for.

yComparison-Job-Sheet_v1.1.xlsx


»bp
Hi Frank,

Please check the attached. The columns D, E, F and G contain Formulas, Custom Number Formatting and Conditional Formatting to get the desired output.
yComparison-Job-Sheet_v1.1.xlsx
Avatar of Frank .S
Frank .S
Flag of Australia image

ASKER

hi Bill, very close thankyou, just 1 other thing, can i have the same green colour text for the word "same" used in column g if the values in col b&c are the same? and rather than an up arrow, is there a tick that can be used instead?
- can i just drag these formulas down the page so it applies to all colums d&g
- how can i put a block on the formulas in these columns d&g so they dont accidentally get erased.
I haven't seen the Bill's version but you can of course drag the formulas down the rows and the formatting will be copied down as well.
You may protect the worksheet after locking the formula cells.

Look at the Sheet2 and Sheet2 in the attached.
yComparison-Job-Sheet_v1.2.xlsx
Avatar of Frank .S
Frank .S
Flag of Australia image

ASKER

hi subodh, thankyou for your help..
You're welcome Frank!
Avatar of Frank .S
Frank .S
Flag of Australia image

ASKER

hi subodh, i can see you have hidden the formulas from the wksht, is there a reason you have done this?
Avatar of Frank .S
Frank .S
Flag of Australia image

ASKER

- also the numeric values in columns d-f all need to be set to the same size of 12, and to 2 decimal places please.
Please look at the attached.
In an ideal scenario when the formula cells are locked and sheet is protected, I guess there is no point in allowing the users to see the formulas but you may change it as per your requirement.
If you unprotect the Sheet and select the formula cells and press Ctrl+1, the Format Cells window will be opened and you can change this setting as shown in the following image.

User generated image
Avatar of Frank .S
Frank .S
Flag of Australia image

ASKER

ok thanks..
just waiting on the final changes of the wksht to finalise..
Avatar of Bill Prew
Bill Prew

hi Bill, very close thankyou, just 1 other thing, can i have the same green colour text for the word "same" used in column g if the values in col b&c are the same? and rather than an up arrow, is there a tick that can be used instead?
- can i just drag these formulas down the page so it applies to all colums d&g
- how can i put a block on the formulas in these columns d&g so they dont accidentally get erased.

  • Color set on "same" now
  • Changes arrow to check mark (tick)
  • Yes on extending formulas, I did in the used area
  • Columns with formulas protected

EE29137775.xlsx


»bp
Avatar of Frank .S
Frank .S
Flag of Australia image

ASKER

hi Bill, thankyou but how do i 'unprotect the formulas' if i need to? it asks for a pwd?
Avatar of Frank .S
Frank .S
Flag of Australia image

ASKER

also, ive noticed the grid lines are not all the same, see screenshot below, why is that? some are solid lines and others are dotted lines and some a combination of both..can we have a3 to h4 solid lines, the all others dotted lines?
- also can we widen columns d to g only to fit these number of spaces +2430.00
User generated image
Avatar of Frank .S
Frank .S
Flag of Australia image

ASKER

i have made a couple of minor changes to the sheet,
- renamed the 2 worksheets
- frozen row 4

Please make any future changes to this worksheet only.
yComparison-Job-Sheet_v1.2.xlsx
Avatar of Bill Prew
Bill Prew

Password was left blank.


»bp
Avatar of Frank .S
Frank .S
Flag of Australia image

ASKER

ok thankyou, so i can add my own pwd then..
Avatar of Frank .S
Frank .S
Flag of Australia image

ASKER

my worksheet no longer works, has this something to do with renaming the sheet tabs below?
Avatar of Bill Prew
Bill Prew

Looking at version 1.2 I don't see anything that is tab specific.  What exactly isn't working?


»bp
Avatar of Bill Prew
Bill Prew

also, ive noticed the grid lines are not all the same, see screenshot below, why is that? some are solid lines and others are dotted lines and some a combination of both..can we have a3 to h4 solid lines, the all others dotted lines?
- also can we widen columns d to g only to fit these number of spaces +2430.00

Those changes have been made and protection enabled.

yComparison-Job-Sheet_v1.2.xlsx


»bp
Avatar of Frank .S
Frank .S
Flag of Australia image

ASKER

hi, im trying to add a user button so i can clear all data from the worksheet, but the 'insert' function on the 'controls' tab has been disabled?
can you please enable all this functionality so i can add user buttons & attach macros to them?
- also can you please make the "same" text colour in column g the same as the tick symbol colour in column d?
ASKER CERTIFIED SOLUTION
Avatar of Bill Prew
Bill Prew

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Frank .S
Frank .S
Flag of Australia image

ASKER

ok thankyou.
Avatar of Frank .S
Frank .S
Flag of Australia image

ASKER

thankyou to both of you for a solution to my worksheet idea..
Avatar of Bill Prew
Bill Prew

Welcome.


»bp
Microsoft Excel
Microsoft Excel

Microsoft Excel topics include formulas, formatting, VBA macros and user-defined functions, and everything else related to the spreadsheet user interface, including error messages.

144K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo