Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Excel Conditional Formula Request

Posted on 2013-02-07
11
Medium Priority
?
366 Views
Last Modified: 2013-02-07
Hello Experts,

Can someone please assist me in writing a formula that will do the following:

In cell G3 if cell D3 is > 4 but less than 20 then insert the following character v
In cell H3 if cell D3 is >21 but less than 50 then insert the following character v
In cell I3 if cell D3 is > 51 insert the following character v
In cell J3 if cell D3 is greater than 1 but less than 4 then insert the following character v


Your help will greatly appreciated.

Regards

Carlton
AMALGAMATION.xlsx
0
Comment
Question by:cpatte7372
  • 5
  • 3
  • 2
  • +1
11 Comments
 
LVL 16

Accepted Solution

by:
terencino earned 668 total points
ID: 38863154
Does this work for you Carlton?
...Terry
AMALGAMATION.xlsx
0
 
LVL 16

Expert Comment

by:terencino
ID: 38863158
You might want to consider using "greater than or equal to" expressions to cover the ones that fall through the gaps. Can easily update the formulas to suit
...Terry
0
 
LVL 50

Assisted Solution

by:Ingeborg Hawighorst (Microsoft MVP / EE MVE)
Ingeborg Hawighorst (Microsoft MVP / EE MVE) earned 668 total points
ID: 38863159
Hello

>> In cell G3 if cell D3 is > 4 but less than 20 then insert the following character v
=IF(AND(D3>4,D3<20),"v","")

>>In cell H3 if cell D3 is >21 but less than 50 then insert the following character v
=IF(AND(D3>21,D3<50),"v","")

>>In cell I3 if cell D3 is > 51 insert the following character v
=IF(D3>51,"v","")

>>In cell J3 if cell D3 is greater than 1 but less than 4 then insert the following character v
=IF(AND(D3>1,D3<4),"v","")

cheers, teylyn
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 16

Expert Comment

by:terencino
ID: 38863165
Here is the update to include ">="
AMALGAMATION.xlsx
0
 

Assisted Solution

by:SimonFrance
SimonFrance earned 664 total points
ID: 38863173
In G3 put =IF(D3>=4,IF(D3<=20,"V",""),"")
In H3 put =IF(D3>=21,IF(D3<=50,"V",""),"")
In I3 put =IF(D3>=51,"V","")
In J3 put =IF(D3>=1,IF(D3<=4,"V",""),"")

The attached has got the formulas included (you'll just need to fill down).
amalgamation.xlsx
0
 

Author Comment

by:cpatte7372
ID: 38863218
Thanks experts,

Is it possible to make excel recognise a character as a number? For example, the values in the formulas you suggested will be 'V'. I would Excel to recognise 'V' as the value number 1, so that I can total the 'V's.

I hope that makes sense
0
 
LVL 50
ID: 38863229
You can use Countif() to count the "v"s

=COUNTIF(G:G,"v")

Or replace the "v" with a 1, then you can sum the results. So, instead of...

=IF(AND(D3>4,D3<20),"v","")

... use

=IF(AND(D3>4,D3<20),1,0)
0
 
LVL 16

Expert Comment

by:terencino
ID: 38863239
or in D1 use =COUNTIF(D3:D142,"V")
0
 

Author Comment

by:cpatte7372
ID: 38863355
Experts,

Thanks it worked like a dream.

I'm not sure who to assign the points to???
0
 
LVL 16

Expert Comment

by:terencino
ID: 38863392
Just feel free to split appropriately to all those who contributed to your solution Carlton, we're all happy to help
0
 

Author Closing Comment

by:cpatte7372
ID: 38863556
Thank you all very much.

Appreciate it.

Cheers
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
Microsoft's Excel has many features that most people will never need nor take advantage of.  Conditional formatting is one feature that you may find a necessity once you start using it.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

876 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question