# DansDeals.com Forums

## DansDeals Forum => Tech Talk => Topic started by: Baruch on December 11, 2013, 03:34:07 PM

Title: Excel Help and Problems
Post by: Baruch on December 11, 2013, 03:34:07 PM
The left side vertical numbers sometimes partially disappear. Like from 1-5 or 1-9. I play around and click and they reappear. What's going on? How do you make them reappear?
Title: Re: Excel Problem
Post by: Ches on December 11, 2013, 03:37:15 PM
Probably you click on the 'hide' and 'unhide' option.
Title: Re: Excel Problem
Post by: Baruch on December 11, 2013, 03:43:11 PM
Probably you click on the 'hide' and 'unhide' option.
where is that option?
Title: Re: Excel Problem
Post by: Ches on December 11, 2013, 03:48:02 PM
It's between the options that come up when you right-click on the vertical numbers.
Title: Re: Excel Problem
Post by: churnbabychurn on December 11, 2013, 03:52:07 PM
Try shift alt left
Title: Re: Excel Problem
Post by: Baruch on December 11, 2013, 03:52:52 PM
Try shift alt left
I know what shift alt is. But what's left?
Title: Re: Excel Problem
Post by: Ches on December 11, 2013, 03:54:46 PM
Left arrow
Title: Re: Excel Problem
Post by: churnbabychurn on December 11, 2013, 03:55:04 PM
Not the shema hand.

This is to ungroup rows. This might be your issue. The rows should be selected when doing the combo.
Title: Re: Excel Problem
Post by: Ches on December 11, 2013, 03:55:32 PM
Try shift alt left
Do you think that it's a grouping issue?
Title: Re: Excel Problem
Post by: Ches on December 11, 2013, 03:58:04 PM
If it's a grouping issue then it should have the + or - sign.
Title: Re: Excel Problem
Post by: churnbabychurn on December 11, 2013, 03:59:52 PM
to unhide ctr shift 9
Title: Re: Excel Problem
Post by: Ches on December 11, 2013, 04:01:08 PM
ctr-shift-9
Title: Re: Excel Problem
Post by: churnbabychurn on December 11, 2013, 04:01:51 PM
ctr-shift-9
+1 :)
Title: Re: Excel Problem
Post by: alpicone on December 11, 2013, 04:15:56 PM
When there are rows hidden there is a slightly thicker line between the rows. See the two screenshots which show the hidden rows and unhidden rows. On top of the 6 there is a slightly thicker line or between 4 & 7.
Title: Re: Excel Problem
Post by: HowYaDoin on December 11, 2013, 04:50:41 PM
Title: Re: Excel Problem
Post by: churnbabychurn on December 11, 2013, 05:44:38 PM
If the were hidden they wouldn't "partially" disappear.
Title: Re: Excel Problem
Post by: alpicone on December 11, 2013, 07:12:02 PM
If the were hidden they wouldn't "partially" disappear.

Row height then?
Title: Re: Excel Problem
Post by: churnbabychurn on December 11, 2013, 07:35:43 PM
Row height then?
sounds like it
Title: Re: Excel Problem
Post by: AJK on January 07, 2014, 02:08:25 AM
Excel Experts:

What would the formula be if I wanted to search a particular sheet for the word "Cost" and then sum all the values in the cell immediately adjacent that "Cost" cell?

Title: Re: Excel Problem
Post by: lechaim2life on January 07, 2014, 02:15:36 AM
Sum If
Title: Re: Excel Problem
Post by: AJK on January 07, 2014, 02:24:32 AM
Unfortunately, SUMIF alone will not work for me, as my "criterion" is not in a single column.

Simplified:

(http://gyazo.com/ec3f1d8e65ae3535f366f22444290ff9.png)

I'd need like four different formulas if I wanted to only sum those cells to the right of "Cost."

e.g. -- =SUMIF(A:A,"cost",B:B)+SUMIF(B:B,"cost",C:C)+SUMIF(C:C,"cost",D:D)+SUMIF(D:D,"cost",E:E)

But given the size of my spreadsheet, that's not going to work.

Seems I need a formula which will search for "Cost" everywhere, and then sum only the cell to the right of that cell.

Any other ideas?
Title: Re: Excel Problem
Post by: lechaim2life on January 07, 2014, 02:41:44 AM
Would you be able to play around with the formatting to make it more organized or is it too much data?
Title: Re: Excel Problem
Post by: AJK on January 07, 2014, 02:49:22 AM
Too much data :(
Title: Re: Excel Problem
Post by: Drago on January 07, 2014, 03:29:00 AM
This is a messy approach, but you can create a new tab, and create a forumla in each cell to reference your original tab that if A1 (etc) = cost, then give value of cell to the right of it.
Then you'll have a tab full of the amounts only, and you can sum them all up.
Title: Re: Excel Problem
Post by: churnbabychurn on January 07, 2014, 08:22:32 AM
Unfortunately, SUMIF alone will not work for me, as my "criterion" is not in a single column.

Simplified:

(http://gyazo.com/ec3f1d8e65ae3535f366f22444290ff9.png)

I'd need like four different formulas if I wanted to only sum those cells to the right of "Cost."

e.g. -- =SUMIF(A:A,"cost",B:B)+SUMIF(B:B,"cost",C:C)+SUMIF(C:C,"cost",D:D)+SUMIF(D:D,"cost",E:E)

But given the size of my spreadsheet, that's not going to work.

Seems I need a formula which will search for "Cost" everywhere, and then sum only the cell to the right of that cell.

Any other ideas?
Might want to consider using the "match" "index" and sum formulas. Sorry cant think it through now. Good luck
Title: Re: Excel Problem
Post by: noturbizniss on January 07, 2014, 08:39:08 AM
If columns a, c, e, etc say cost and b, D, D, etc have values than you can insert row on top and do sum if on each pair of columns then sum row 1. The alternative would be some kind of vba
Title: Re: Re: Excel Problem
Post by: noturbizniss on January 07, 2014, 08:52:32 AM
If columns a, c, e, etc say cost and b, D, D, etc have values than you can insert row on top and do sum if on each pair of columns then sum row 1. The alternative would be some kind of vba
Just looked at image again you can do that on top of every column
Title: Re: Excel Problem
Post by: EJB on January 07, 2014, 09:06:20 AM
VBA is the way to go if you want anything to be done efficiently. You could make a sluggish array summing all cells to the right of  a cell that matches "Cost" (if that's always the case).
Title: Re: Excel Problem
Post by: AnonymousUser on January 07, 2014, 09:07:14 AM
VBA is the way to go if you want anything to be done efficiently. You could make a sluggish array summing all cells to the right of  a cell that matches "Cost" (if that's always the case).
Depending on the size of the data, it might not be so sluggish.
Title: Re: Excel Problem
Post by: AJK on January 07, 2014, 09:28:37 AM
What would the array look like?

=sum(if(

?
Title: Re: Excel Problem
Post by: skyguy918 on January 07, 2014, 09:36:12 AM
Pres Alt+F11 to open the VBA editor. Right-click where it says VBAProject([name of your file]), Insert, Module. Then paste this code in there:
Quote
Sub SumCost()

Total = 0

For Each c In Range("B1:E10").Cells
If c = "Cost" Then
Total = Total + c.Offset(0, 1).Value
End If
Next

Range("A1").Value = Total

End Sub
Just replace the the 2 instances of "Range" with the appropriate values for your file. The first should be the range you want to search and the second is where you want excel to paste the sum.

You can set this macro to a hotkey so that you can just click it once on each sheet easily. Back in Excel, click View, Macros, View Macros, select the macro you just created (SumCost), click options, and add a letter in the box after "Ctrl+".

Remember that as written the macro performs the code on the active sheet.
Title: Re: Excel Problem
Post by: lubaby on January 07, 2014, 12:13:55 PM
Pres Alt+F11 to open the VBA editor. Right-click where it says VBAProject([name of your file]), Insert, Module. Then paste this code in there:Just replace the the 2 instances of "Range" with the appropriate values for your file. The first should be the range you want to search and the second is where you want excel to paste the sum.

You can set this macro to a hotkey so that you can just click it once on each sheet easily. Back in Excel, click View, Macros, View Macros, select the macro you just created (SumCost), click options, and add a letter in the box after "Ctrl+".

Remember that as written the macro performs the code on the active sheet.
This looks like you're saving the macro to the Active workbook.
Isn't there a way to save it to the Excel Personal workbook, so the shortcut Ctrl+* is available anytime after?

Edit: Instructions here. (http://office.microsoft.com/en-us/excel-help/create-and-save-all-your-macros-in-a-single-workbook-HA102809715.aspx)
Title: Re: Excel Problem
Post by: AJK on January 07, 2014, 12:15:01 PM
Pres Alt+F11 to open the VBA editor. Right-click where it says VBAProject([name of your file]), Insert, Module. Then paste this code in there:Just replace the the 2 instances of "Range" with the appropriate values for your file. The first should be the range you want to search and the second is where you want excel to paste the sum.

You can set this macro to a hotkey so that you can just click it once on each sheet easily. Back in Excel, click View, Macros, View Macros, select the macro you just created (SumCost), click options, and add a letter in the box after "Ctrl+".

Remember that as written the macro performs the code on the active sheet.

Thank you very much.

Even the thought of VBA scares me... I'll do it if I must, but is there no way to do this with formulas?
Title: Re: Excel Problem
Post by: skyguy918 on January 07, 2014, 12:28:19 PM
This looks like you're saving the macro to the Active workbook.
Isn't there a way to save it to the Excel Personal workbook, so the shortcut Ctrl+* is available anytime after?

Edit: Instructions here. (http://office.microsoft.com/en-us/excel-help/create-and-save-all-your-macros-in-a-single-workbook-HA102809715.aspx)
Can't imagine why you'd want to use this particular macro in multiple workbooks, but if you did, your link is a great resource.
Thank you very much.

Even the thought of VBA scares me... I'll do it if I must, but is there no way to do this with formulas?
There is, with array enabled formulas. Not sure which is technically better or more efficient, but you can try this:
Quote
=SUM(IF(range="count",OFFSET(range,0,1),0))
Copy the text into a cell, replace the italicized range with the range you want to look in, and instead of pressing enter to save the formula into the cell, press ctrl+shft+enter. This turns it into an array enabled formula.
Title: Re: Excel Problem
Post by: noturbizniss on January 07, 2014, 12:29:11 PM
Thank you very much.

Even the thought of VBA scares me... I'll do it if I must, but is there no way to do this with formulas?
not one formula in one cell. The sheet is kind of messy and excel works best with neatness.
Title: Re: Excel Problem
Post by: skyguy918 on January 07, 2014, 12:36:01 PM
not one formula in one cell. The sheet is kind of messy and excel works best with neatness.
I already tested the formula I posted right above you in a simplified version of AJK's sheet, and it works - in one cell.
Title: Re: Excel Problem
Post by: AJK on January 07, 2014, 12:45:34 PM
What'd I do wrong?

(http://gyazo.com/272990f171dfb7b63610a5690fa54e10.png)
Title: Re: Excel Problem
Post by: churnbabychurn on January 07, 2014, 12:49:51 PM
change "count" to cost  :)
Title: Re: Excel Problem
Post by: noturbizniss on January 07, 2014, 12:50:56 PM
I already tested the formula I posted right above you in a simplified version of AJK's sheet, and it works - in one cell.
Yup, totally forgot about array formulas.
Title: Re: Excel Problem
Post by: skyguy918 on January 07, 2014, 12:51:56 PM
change "count" to cost  :)
Title: Re: Excel Problem
Post by: AJK on January 07, 2014, 01:00:12 PM
(http://gyazo.com/0c5d4423590765366b19c584ab6ce9ed.png)
Title: Re: Excel Problem
Post by: churnbabychurn on January 07, 2014, 01:07:24 PM
(http://gyazo.com/0c5d4423590765366b19c584ab6ce9ed.png)
change second range to range
Title: Re: Excel Problem
Post by: AJK on January 07, 2014, 01:08:14 PM
Slowly but surely?

(http://gyazo.com/68e0f0722b15503073edfd55a5640f82.png)
Title: Re: Excel Problem
Post by: churnbabychurn on January 07, 2014, 01:08:59 PM
Slowly but surely?

(http://gyazo.com/68e0f0722b15503073edfd55a5640f82.png)
forgot the ctr shift
Title: Re: Excel Problem
Post by: yitzf on January 07, 2014, 01:09:23 PM
(http://gyazo.com/0c5d4423590765366b19c584ab6ce9ed.png)
Is excel case sensitive?
The word "cost" in your formula is lower case.
Title: Re: Excel Problem
Post by: churnbabychurn on January 07, 2014, 01:09:57 PM
Is excel case sensitive?
The word "cost" in your formula is lower case.
Not here
Title: Re: Excel Problem
Post by: AJK on January 07, 2014, 01:20:08 PM
forgot the ctr shift

When I do the CTRL+SHIFT+ENTER:

(http://gyazo.com/f9f860e354f050953cc2bc48ec7ed841.png)
Title: Re: Excel Problem
Post by: skyguy918 on January 07, 2014, 01:23:12 PM
When I do the CTRL+SHIFT+ENTER:

(http://gyazo.com/f9f860e354f050953cc2bc48ec7ed841.png)
You have to put the cell that you're doing the summing in outside of the range you're summing.

ETA: Either add a row or column at the beginning of the sheet or put the formula on another sheet.
Title: Re: Excel Problem
Post by: AJK on January 07, 2014, 01:28:39 PM
You have to put the cell that you're doing the summing in outside of the range you're summing.

ETA: Either add a row or column at the beginning of the sheet or put the formula on another sheet.

The cell I'm summing in is F3, which is outside A1:E15, no?
Title: Re: Excel Problem
Post by: AJK on January 07, 2014, 01:34:34 PM
Anyway, I moved it to the column before and it worked on the test sheet.

But when running it on the real sheet:

(http://gyazo.com/e6de3076ae9c53c4d255e779d7d039e1.png)
Title: Re: Excel Problem
Post by: skyguy918 on January 07, 2014, 01:51:27 PM
Anyway, I moved it to the column before and it worked on the test sheet.

But when running it on the real sheet:

(http://gyazo.com/e6de3076ae9c53c4d255e779d7d039e1.png)
The reason it wasn't working on the test sheet is because even though F3 is outside of A1:E15, it's inside OFFSET(A1:E15,0,1), which is equivalent to B1:F15.

I'm assuming on the real sheet, the range you're using is much bigger than the 75 cells you referenced in the test sheet? If it's really big you might not be able to handle it within Excel itself, but VBA will be able to do it no problem (it may take some time to run though).
Title: Re: Excel Problem
Post by: AJK on January 07, 2014, 01:52:48 PM
Yeah, it's >75 but <1000 cells.

I guess I'm stuck with VBA. Or using multiple formulas. Thanks for all your help!
Title: Re: Excel Problem
Post by: skyguy918 on January 07, 2014, 01:54:17 PM
Yeah, it's >75 but <1000 cells.

I guess I'm stuck with VBA. Or using multiple formulas. Thanks for all your help!

Everybody starts out being scared of VBA. Don't worry, that goes away pretty quickly with exposure to it.
Title: Re: Excel Problem
Post by: smurf on January 07, 2014, 02:42:49 PM
Everybody starts out being scared of VBA. Don't worry, that goes away pretty quickly with exposure to it.
absolutely, I don't know how I'd manage now without vba
Title: Re: Excel Problem
Post by: AnonymousUser on January 07, 2014, 02:53:42 PM
absolutely, I don't know how I'd manage now without vba
+1
There's so much more you can do with it.
Title: Re: Excel Problem
Post by: noturbizniss on January 07, 2014, 03:33:02 PM
The reason it wasn't working on the test sheet is because even though F3 is outside of A1:E15, it's inside OFFSET(A1:E15,0,1), which is equivalent to B1:F15.

I'm assuming on the real sheet, the range you're using is much bigger than the 75 cells you referenced in the test sheet? If it's really big you might not be able to handle it within Excel itself, but VBA will be able to do it no problem (it may take some time to run though).

Shouldn't matter that f3 is in the offset range unless he actually has a cell with "cost" in row e.  I got it with no issue.
Title: Re: Excel Problem
Post by: churnbabychurn on January 08, 2014, 02:54:22 PM
Whats the best way to deliminate or separate numbers from a text and numbers cell?
The left and right functions cant work well cuz the numbers are not consistent. Plus I want to remove the numbers from the text string. TIA

E.G.
Quote
Alarm 4,060.00
Automobile Expense 3,505.76
Bank Service Charges 1,916.83
CC Discount-Settlement 11,832.16
Title: Re: Excel Problem
Post by: lubaby on January 08, 2014, 03:10:23 PM
Whats the best way to deliminate or separate numbers from a text and numbers cell?
The left and right functions cant work well cuz the numbers are not consistent. Plus I want to remove the numbers from the text string. TIA

E.G.
I've gotten this with some basic Google searching. Only issue is its not recognizing the decimal points.

This pulls the number out.
{=SUM(MID(0&A1,LARGE(ISNUMBER(--MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1))*ROW(INDIRECT("1:"&LEN(A1))),ROW(INDIRECT("1:"&LEN(A1))))+1,1)*10^ROW(INDIRECT("1:"&LEN(A1)))/10)}
Post #6 (http://www.mrexcel.com/forum/excel-questions/362184-extracting-multiple-numbers-string.html)

This pulls the text.
=TRIM(LEFT(A1,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&"0123456789"))-1))
Post #3 (http://www.mrexcel.com/forum/excel-questions/440487-extract-text-number-column-help.html)
Title: Re: Excel Problem
Post by: churnbabychurn on January 08, 2014, 03:22:21 PM
Worked like a charm, TY! (I did Google first but it was confusing)
For adding back the decimal I just added a column and divided by 100.  :)
Title: Re: Excel Problem
Post by: smurf on January 09, 2014, 03:25:56 PM
Whats the best way to deliminate or separate numbers from a text and numbers cell?
The left and right functions cant work well cuz the numbers are not consistent. Plus I want to remove the numbers from the text string. TIA

E.G.
is it always after the last space in the cell?
Title: Re: Excel Problem
Post by: churnbabychurn on January 09, 2014, 03:30:31 PM
is it always after the last space in the cell?
it was, what's the eitza for that?
Title: Re: Excel Problem
Post by: smurf on January 13, 2014, 01:07:31 PM
it was, what's the eitza for that?
this formula
Quote
=IF(ISERROR(FIND(" ",A1)),A1, RIGHT(A1,LEN(A1) - FIND("|",SUBSTITUTE(A1," ","|",LEN(A1)-LEN(SUBSTITUTE(A1," ",""))))))

by replacing "A1" with the correct cell reference
also you can replace the
Quote
" "
(the reference to spaces) with any character you want and it'll pull all data after the last occurrence of that character
Basically its a reverse find function
Title: Re: Excel Problem
Post by: AJK on January 21, 2014, 04:16:30 PM
How would I create a starwood calculator, such that if I say I need, say 80,000 miles, it'd spit out to transfer 65,000 SPG?
Title: Re: Excel Problem
Post by: BAHayman on January 21, 2014, 04:45:09 PM
How would I create a starwood calculator, such that if I say I need, say 80,000 miles, it'd spit out to transfer 65,000 SPG?
Something like this?
Code: [Select]
=(ROUNDDOWN(A1/25000)*20000)+MOD(A1, 25000)
Title: Re: Excel Problem
Post by: AJK on January 21, 2014, 04:53:51 PM
Something like this?
Code: [Select]
=(ROUNDDOWN(A1/25000)*20000)+MOD(A1, 25000)

Ding, ding, ding. Gracias.

Though it had to be slightly modified:

Code: [Select]
=ROUNDDOWN(T10/25000,0)*20000+MOD(T10,25000)
Title: Re: Excel Problem
Post by: BAHayman on January 21, 2014, 04:58:20 PM
Ding, ding, ding. Gracias.

Though it had to be slightly modified:

Code: [Select]
=ROUNDDOWN(T10/25000,0)*20000+MOD(T10,25000)
Ah, good to know. In Google Spreadsheets the second parameter for ROUNDDOWN is optional, which is why I use that over FLOOR(<value>, 1).
Title: Re: Excel Problem
Post by: AJK on January 21, 2014, 04:59:08 PM
Figured you might have been using Sheets.

For anyone who is curious:

(http://gyazo.com/5ca5b19f2943accd3c5d99c9b661c526.png)
Title: Re: Excel Problem
Post by: churnbabychurn on February 27, 2014, 07:26:20 PM
Just closed an unsaved workbook  >:( >:(

I go to the recovery location and there is a weird file there,  I try opening in excel but it just opens a blank spreadsheet with no cells.    Is there any hope?
Title: Re: Excel Problem
Post by: smurf on February 28, 2014, 12:54:25 AM
Just closed an unsaved workbook  >:( >:(

I go to the recovery location and there is a weird file there,  I try opening in excel but it just opens a blank spreadsheet with no cells.    Is there any hope?
can you find the auto saved version?
Should be something like file/recent/recover unsaved workbooks
Title: Re: Excel Problem
Post by: yitzf on February 28, 2014, 01:01:08 AM
can you find the auto saved version?
Should be something like file/recent/recover unsaved workbooks

In 2013 its Backstage>Info>Versions
Title: Re: Excel Problem
Post by: churnbabychurn on February 28, 2014, 12:27:51 PM
can you find the auto saved version?
Should be something like file/recent/recover unsaved workbooks
It turns out that if the workbook was never saved/named it doesnt auto save as a different versions. It doesnt have a version of a unnamed doc...
I went to the C:\Users\CBC\AppData\Roaming\Microsoft\Excel\ the file wasnt there....

Anywho, I did the work again, better than version one  :)
Title: Excel help
Post by: katherine123 on April 07, 2014, 09:15:48 PM
I'm trying to make address labels but when I merge in word it keeps dropping the "0" in zip codes starting with "0". I can't find a fix online- does anyone know what I need to do?
Title: Re: Excel help
Post by: chucksterace on April 07, 2014, 09:18:00 PM
I just add a ' anytime that happens to me..

Title: Re: Excel help
Post by: etech0 on April 07, 2014, 09:18:54 PM
I just add a ' anytime that happens to me
+1
Title: Re: Excel help
Post by: katherine123 on April 07, 2014, 09:19:48 PM
I just add a ' anytime that happens to me

Won't that print as '08701? That doesn't look right...
Title: Re: Excel help
Post by: chucksterace on April 07, 2014, 09:22:05 PM
Won't that print as '08701? That doesn't look right...

Don't think so. Just did a test run, print to PDF and came out good

ETA: Or you can go add a custom number, (where you would choose date, number, currency, etc) and just put in "00000" that way the minimum in the box would be five numbers and the zero would show.
Title: Re: Excel help
Post by: myb821 on April 07, 2014, 09:23:09 PM
or set it as text
Title: Re: Excel help
Post by: etech0 on April 07, 2014, 09:23:26 PM
Won't that print as '08701? That doesn't look right...
Nope - I do it all the time. Funny how this issue only comes up with lakewood :)
Title: Re: Excel help
Post by: chucksterace on April 07, 2014, 09:24:08 PM
Nope - I do it all the time. Funny how this issue only comes up with lakewood :)

Oh well. Good thing I don't live in lakewood  :P
Title: Re: Excel help
Post by: katherine123 on April 07, 2014, 09:24:25 PM
Thank you all, it worked! Two nights of frustration solved within 5 minutes thanks to DDF.
Title: Re: Excel help
Post by: lubaby on April 07, 2014, 09:24:33 PM
Won't that print as '08701? That doesn't look right...
No. The ' tells Excel to format the field as text and save exactly what you type in. Nothing is noticeable when you print.
You can always do Print Preview to see how it will look once printed.
Title: Re: Excel help
Post by: chucksterace on April 07, 2014, 09:25:10 PM
No. The ' tells Excel to format the field as text and save exactly what you type in. Nothing is noticeable when you print.
You can always do Print Preview to see how it will look once printed.

Title: Re: Excel help
Post by: churnbabychurn on April 07, 2014, 09:26:44 PM
Or use the special zip code format!
http://office.microsoft.com/en-us/excel-help/display-numbers-as-postal-codes-HP001216509.aspx
Title: Re: Excel help
Post by: katherine123 on April 07, 2014, 09:34:14 PM
Or use the special zip code format!
http://office.microsoft.com/en-us/excel-help/display-numbers-as-postal-codes-HP001216509.aspx

I tried that, it didn't work.
Title: Re: Excel help
Post by: churnbabychurn on April 07, 2014, 09:38:17 PM
I tried that, it didn't work.
It should..
ETA it does
Title: Re: Excel help
Post by: yitzf on April 07, 2014, 10:12:33 PM
It should..
ETA it does

I vaguely remember it not working when I mail merged it in word, it would lose the 0. What I did was =IF(LEN(A1)=4,"08701",A1) where A1 is the zip code, and just copied it all the way down the list. Obviously only works if the only zip starting with a 0 in your list is Lakewood.
Title: Re: Excel help
Post by: bubbles on April 07, 2014, 10:14:24 PM
I vaguely remember it not working when I mail merged it in word, it would lose the 0. What I did was =IF(LEN(A1)=4,"08701",A1) where A1 is the zip code, and just copied it all the way down the list. Obviously only works if the only zip starting with a 0 in your list is Lakewood.

I don't think it's necessary to do it this way, but if you want...
=IF(LEN(A1)=4,CONCATENATE("0",A1),A1)
Title: Re: Excel help
Post by: churnbabychurn on April 07, 2014, 10:16:12 PM
how does adding a leading zero through a formula prevent it from getting lost due to a number format issue?
Title: Re: Excel help
Post by: etech0 on April 07, 2014, 10:17:49 PM
I vaguely remember it not working when I mail merged it in word, it would lose the 0. What I did was =IF(LEN(A1)=4,"08701",A1) where A1 is the zip code, and just copied it all the way down the list. Obviously only works if the only zip starting with a 0 in your list is Lakewood.
to work for other zip codes you could change it to
=IF(LEN(A1)=4,"0"&A1,A1)
Title: Re: Excel help
Post by: etech0 on April 07, 2014, 10:18:08 PM
how does adding a leading zero through a formula prevent it from getting lost due to a number format issue?
but you're right
Title: Re: Excel help
Post by: churnbabychurn on April 07, 2014, 10:22:25 PM
The problem is with a word mail merge, nothing wrong with excel's zip code format. In word there should be an option to format the field as zip also
Title: Re: Excel help
Post by: yitzf on April 07, 2014, 10:26:54 PM
I don't think it's necessary to do it this way, but if you want...
=IF(LEN(A1)=4,CONCATENATE("0",A1),A1)

Now that you mention it, I think that's what I did. (I know I wasn't so tied down to lakewood  :) )
Title: Re: Excel help
Post by: jack12 on April 08, 2014, 07:23:45 AM
Funny how this issue only comes up with lakewood :)
Title: Re: Excel help
Post by: chucksterace on April 08, 2014, 07:44:41 AM

And why would no one mention that earlier. ???
Title: Re: Excel help
Post by: etech0 on April 08, 2014, 08:57:01 AM
And why would no one mention that earlier. ???
That's the funny part...
Title: Re: Excel help
Post by: AnonymousUser on April 08, 2014, 09:46:02 AM
And why would no one mention that earlier. ???
You mean there are places in NJ besides Lakewood??? ;)
Title: Re: Excel help
Post by: chucksterace on April 08, 2014, 09:47:03 AM

You mean there are places in NJ besides Lakewood??? ;)

Nope. :P
Title: Re: Excel help
Post by: etech0 on April 08, 2014, 10:11:41 AM
Nope. :P
Sorry guys, but I'm moving to Passaic in less than a month...
Title: Re: Excel help
Post by: jack12 on April 08, 2014, 12:16:37 PM
Other states do too. From Wikipedia: 0 = Connecticut (CT), Massachusetts (MA), Maine (ME), New Hampshire (NH), New Jersey (NJ), Puerto Rico (PR), Rhode Island (RI), Vermont (VT), Virgin Islands (VI), Army Post Office Europe (AE), Fleet Post Office Europe (AE)
Title: Re: Excel Problem
Post by: churnbabychurn on May 19, 2014, 09:35:42 AM
Whats an easy way to remove every second row of data?
Title: Re: Excel Problem
Post by: AnonymousUser on May 19, 2014, 09:38:15 AM
Whats an easy way to remove every second row of data?
Write a macro? And start from the bottom up.
Title: Re: Excel Problem
Post by: MarkS on May 19, 2014, 09:42:32 AM
Whats an easy way to remove every second row of data?
One way you can do it is:
In the column to the right of all the data, enter a 1 on the first row, 0 on 2nd row, drag it down to the bottom and select copy cells. Now, every other row will have a 1 at the end and every other row will have a 0.

Filter to show only the 1's and not the zeros.  Copy/paste the filtered data to a new tab and you'll have just the data you want.
Title: Re: Excel Problem
Post by: myb821 on May 19, 2014, 09:44:59 AM
Whats an easy way to remove every second row of data?
add a new column at the end of all your data. in the first row put a 1 and in the second row put a 2 drag down those two rows to the end of your data. Filter to only see the "2" rows. Then delete
Title: Re: Excel Problem
Post by: myb821 on May 19, 2014, 09:45:25 AM
One way you can do it is:
In the column to the right of all the data, enter a 1 on the first row, 0 on 2nd row, drag it down to the bottom and select copy cells. Now, every other row will have a 1 at the end and every other row will have a 0.

Filter to show only the 1's and not the zeros.  Copy/paste the filtered data to a new tab and you'll have just the data you want.
add a new column at the end of all your data. in the first row put a 1 and in the second row put a 2 drag down those two rows to the end of your data. Filter to only see the "2" rows. Then delete
you beat me to it
Title: Re: Excel Problem
Post by: churnbabychurn on May 19, 2014, 09:47:19 AM
Was thinking something similar...
Thanks!
Title: Re: Excel Problem
Post by: churnbabychurn on May 19, 2014, 09:50:38 AM
add a new column at the end of all your data. in the first row put a 1 and in the second row put a 2 drag down those two rows to the end of your data. Filter to only see the "2" rows. Then delete
How do I delete the "2" rows?
Title: Re: Excel Problem
Post by: MarkS on May 19, 2014, 09:52:16 AM
How do I delete the "2" rows?
Once they're filtered out, copy paste the data to another tab.
Title: Re: Excel Problem
Post by: churnbabychurn on May 19, 2014, 09:52:56 AM
did "go to select", visible only and then deleted...
Title: Re: Excel Problem
Post by: churnbabychurn on May 19, 2014, 09:55:23 AM
Once they're filtered out, copy paste the data to another tab.
That works also. another tab is key...
Title: Re: Excel Problem
Post by: etech0 on May 19, 2014, 10:44:53 AM
Or you can then sort by column a, and delete the whole lot of them.
Title: Re: Excel Problem
Post by: unavailable on May 21, 2014, 09:23:02 PM
Is there a way to make the first letter of every word capital. I have a list of names (first and last) some are fully lower case done fully upper case, is there an option to get them all first letter capital and the rest lower case
TIA
Title: Re: Excel Problem
Post by: MarkS on May 21, 2014, 09:24:25 PM
Is there a way to make the first letter of every word capital. I have a list of names (first and last) some are fully lower case done fully upper case, is there an option to get them all first letter capital and the rest lower case
TIA

Use the function =proper()
If Column A has the text, in B1 type  =proper(A1) and drag that down
Title: Re: Excel Problem
Post by: unavailable on May 21, 2014, 10:13:34 PM
Use the function =proper()
If Column A has the text, in B1 type  =proper(A1) and drag that down
Thanks I'm not by a computer so I'll try later
Thanks again
Title: Re: Excel Problem
Post by: smurf on May 21, 2014, 11:23:52 PM
Is there a way to make the first letter of every word capital. I have a list of names (first and last) some are fully lower case done fully upper case, is there an option to get them all first letter capital and the rest lower case
TIA
Use this Macro to trim (remove extra spaces) And make proper

Code: [Select]
Sub proper_trim()Dim CleanTrimRg As RangeDim oCell As RangeDim Func As WorksheetFunctionSet Func = Application.WorksheetFunctionOn Error Resume NextSet CleanTrimRg = Selection.SpecialCells(xlCellTypeConstants, xlTextValues)If Err Then MsgBox "No data to clean and Trim!": Exit SubFor Each oCell In CleanTrimRg    oCell = Func.Proper(Func.Trim(oCell))NextEnd Sub
Then select the cells you want and run the macro.
You can easily adapt the code to only make proper or only trim if you like.
I know this can be done with a formula as others have mentioned but this way you dont have to add and remove columns
Title: Re: Excel Problem
Post by: unavailable on May 21, 2014, 11:37:54 PM
Thanks Smurf but it sounds to me like Chinese
Title: Re: Excel Problem
Post by: EJB on May 21, 2014, 11:45:28 PM
Thanks Smurf but it sounds to me like Chinese

Here's a way without using VBA.

Assuming your first name is in cell A1, use the following code:
=UPPER(LEFT((A1),1))&LOWER(MID(A1,2,LEN(A1)-1))

If you want to add last name as well, you can quickly adjust the formula to do so.
Title: Re: Excel Problem
Post by: unavailable on May 21, 2014, 11:48:53 PM
Thanks Ejb this way does seem a bit easier but wouldn't be sure I got it until I tried it when I'll be on computer
Title: Re: Excel Problem
Post by: smurf on May 21, 2014, 11:50:33 PM
Here's a way without using VBA.

Assuming your first name is in cell A1, use the following code:
=UPPER(LEFT((A1),1))&LOWER(MID(A1,2,LEN(A1)-1))

If you want to add last name as well, you can quickly adjust the formula to do so.
Once going with a formula why not just use =Proper()?
Title: Re: Excel Problem
Post by: unavailable on May 21, 2014, 11:57:32 PM
Do I have to do the formula in column b. Why can't I set this formula in a? (Sounds like a question of an illiterate,I know)
Title: Re: Excel Problem
Post by: lubaby on May 21, 2014, 11:59:08 PM
Once going with a formula why not just use =Proper()?
Maybe it's too simple ;)
Title: Re: Excel Problem
Post by: lubaby on May 22, 2014, 12:01:11 AM
Do I have to do the formula in column b. Why can't I set this formula in a? (Sounds like a question of an illiterate,I know)
You can do it in any column you want. =proper(FIELD YOU WANT CHANGED)

The formula results (fixed) depend on the data that you are referencing. If you want to remove the original (bad) column, you need to first copy the column of fixed data and 'paste special' it as text only (that's under 'paste other' as the 123). Otherwise if you delete the original name column the fixed formula data will disappear too.
Or just leave it in.
Title: Re: Excel Problem
Post by: MarkS on May 22, 2014, 12:01:19 AM
Do I have to do the formula in column b. Why can't I set this formula in a? (Sounds like a question of an illiterate,I know)
Where is your data? If it's in Column A, put this formula in column B. If you already have something else in column B, add a column between A and B. Once you've put in the formula and have everything as you want it in Column B, copy the column, right click and hit paste special and select paste values. At that point you can delete column A and the corrected data will move over to column A.
Title: Re: Excel Problem
Post by: churnbabychurn on May 22, 2014, 12:03:24 AM
Do I have to do the formula in column b. Why can't I set this formula in a? (Sounds like a question of an illiterate,I know)
You can't operate a formula in the cell that you are referring to in your formula.
Title: Re: Excel Problem
Post by: unavailable on May 22, 2014, 03:27:39 PM
well thanks to all ddf'ers
i opted for the most simple way, =proper(a1) then dragged down, copied and pasted values, it worked!
Title: Re: Excel Problem
Post by: unavailable on May 22, 2014, 03:30:06 PM
is there a way to remove the titles; Mr&Mrs, Rabbi&Mrs ETC. they all came jumbled in one column, how can I copy then to separate column?
tia
Title: Re: Excel Problem
Post by: churnbabychurn on May 22, 2014, 03:33:45 PM
is there a way to remove the titles; Mr&Mrs, Rabbi&Mrs ETC. they all came jumbled in one column, how can I copy then to separate column?
tia
Click Data, text to columns, play with it.
Title: Re: Excel Problem
Post by: etech0 on May 22, 2014, 03:35:29 PM
is there a way to remove the titles; Mr&Mrs, Rabbi&Mrs ETC. they all came jumbled in one column, how can I copy then to separate column?
tia
easiest way:
Click Data ribbon
Select the column with the data
Click Text to Columns, and use & as the delimiter.
Title: Re: Excel Problem
Post by: MarkS on May 22, 2014, 03:40:52 PM
is there a way to remove the titles; Mr&Mrs, Rabbi&Mrs ETC. they all came jumbled in one column, how can I copy then to separate column?
tia
Use text to columns
If all columns start with a title, do text to column using & and space as your delimiters.
If you want to then make 1 column showing Mr & Mrs, you can the do a concatenate using     =concatenate(A1," ","&"," ", B1)

Title: Re: Excel Problem
Post by: unavailable on May 22, 2014, 06:32:56 PM
Thanks it's really a help
Title: Re: Excel Problem
Post by: bubbles on May 22, 2014, 06:41:15 PM
Use text to columns

If you want to then make 1 column showing Mr & Mrs, you can the do a concatenate using     =concatenate(A1," & ", B1)

FTFY  ;)
Title: Re: Excel Problem
Post by: skyguy918 on May 22, 2014, 08:53:38 PM
FTFY  ;)
I always look for smallest number of characters in the formula:

=A1&" & "&B1
Title: Re: Excel Problem
Post by: EJB on May 22, 2014, 09:03:05 PM
Maybe it's too simple ;)

Yup. You learn something every day.
Title: Re: Excel Problem
Post by: lubaby on May 22, 2014, 09:08:59 PM
I always look for smallest number of characters in the formula:

=A1&" & "&B1
+1
Never saw the point to 'concatenate' anything, since the =A1&B1 works great.
Is it something new that didn't exist in earlier excels?
Title: Re: Excel Problem
Post by: skyguy918 on May 22, 2014, 09:22:21 PM
+1
Never saw the point to 'concatenate' anything, since the =A1&B1 works great.
Is it something new that didn't exist in earlier excels?
I've seen some discussion as to which method is more efficient, but no one knows for sure. CONCATENATE is most likely the newer of the 2 methods, as & exists as an operator in many programming languages that predate Excel.
Title: Re: Excel Problem
Post by: MarkS on May 22, 2014, 09:36:38 PM
+1
Never saw the point to 'concatenate' anything, since the =A1&B1 works great.
Is it something new that didn't exist in earlier excels?
Sometimes =A1&B1 doesnt work (possibly when the cells are formatted diferently) and I've found concatenate to work mire consistently
Title: Re: Excel Problem
Post by: smurf on May 22, 2014, 10:36:59 PM
Sometimes =A1&B1 doesnt work (possibly when the cells are formatted diferently) and I've found concatenate to work mire consistently
and it's easier to combine more then 2 cells that way.
Regardless I don't like the way either method handles blank cells so I use a borrowed UDF
Title: Re: Excel Problem
Post by: skyguy918 on May 23, 2014, 08:51:15 AM
and it's easier to combine more then 2 cells that way.
Regardless I don't like the way either method handles blank cells so I use a borrowed UDF
Disagree on the first point. In what way is it easier? You have to put a comma in between each reference in CONCATENATE anyway, just sub in an ampersand and drop the CONCATENATE function.

And what's the issue with blank cells? A blank cell has the value "", which is what it puts in the cell value when you use either method. UDF's are always a last resort for me. They're notoriously inefficient relative to built in functions.
Title: Re: Excel Problem
Post by: smurf on May 23, 2014, 12:51:32 PM
Disagree on the first point. In what way is it easier? You have to put a comma in between each reference in CONCATENATE anyway, just sub in an ampersand and drop the CONCATENATE function.

And what's the issue with blank cells? A blank cell has the value "", which is what it puts in the cell value when you use either method. UDF's are always a last resort for me. They're notoriously inefficient relative to built in functions.
you're right,I forgot how to use concatenate. I haven't used it in a while.

My issue with blank cells is that i often need to concatenate a range of cells with a delimiter between each one. The simple way to do it is to store the delimiter in a cell and reference it between each cell in the concatenate. However with a blank cell I'll then have 2 consecutive delimiter.
So I use udf
Title: Re: Excel Problem
Post by: unavailable on July 09, 2014, 10:26:49 PM
hi
when removing duplicates is there an option that it should ask you what duplicate to remove/keep. or at least show what duplicate was removed?

tia
Title: Re: Excel Problem
Post by: bubbles on July 09, 2014, 10:51:52 PM
hi
when removing duplicates is there an option that it should ask you what duplicate to remove/keep. or at least show what duplicate was removed?

tia

if they are duplicates what's the difference? you can highlight duplicates instead of deleting right away under condition formatting > highlight cells rules > duplicate values.

If you let us know what you are trying to accomplish maybe can be of more help
Title: Re: Excel Problem
Post by: EJB on July 09, 2014, 10:59:51 PM
hi
when removing duplicates is there an option that it should ask you what duplicate to remove/keep. or at least show what duplicate was removed?

tia

No direct option. If you want to delete all duplicates besides a specific set, create an indicator to flag those in another column and delete based on that column. Loads
Of alternatives using vba
Title: Re: Excel Problem
Post by: unavailable on July 09, 2014, 11:11:06 PM
if they are duplicates what's the difference? you can highlight duplicates instead of deleting right away under condition formatting > highlight cells rules > duplicate values.

thanks used it
have a list of names and phone #'s  wanted to make sure no number has 2 names (by error)

No direct option. If you want to delete all duplicates besides a specific set, create an indicator to flag those in another column and delete based on that column. Loads
Of alternatives using vba
maybe, but I have no idea what's vba

thanks anyway
Title: Re: Excel Problem
Post by: bubbles on July 09, 2014, 11:21:40 PM
thanks used it
have a list of names and phone #'s  wanted to make sure no number has 2 names (by error)
maybe, but I have no idea what's vba

thanks anyway
You can delete values that are only duplicate in two columns. So it won't delete the number if the names are mismatched
Title: Re: Excel Problem
Post by: yitzf on July 09, 2014, 11:24:06 PM
hi
when removing duplicates is there an option that it should ask you what duplicate to remove/keep. or at least show what duplicate was removed?

tia

You could make a copy of your data, and then remove duplicated, and compare the 2 versions to see which oned it took out.
It might be easier if you number the rows first, so then you can see which rows were taken out.
Title: Re: Excel Problem
Post by: unavailable on July 09, 2014, 11:39:19 PM
You can delete values that are only duplicate in two columns. So it won't delete the number if the names are mismatched
yes but I wanted to see those names
Title: Re: Excel Problem
Post by: unavailable on July 09, 2014, 11:41:00 PM
You could make a copy of your data, and then remove duplicated, and compare the 2 versions to see which oned it took out.
It might be easier if you number the rows first, so then you can see which rows were taken out.
Right, but we're talking 2000 names
Title: Re: Excel Problem
Post by: bubbles on July 09, 2014, 11:43:01 PM
yes but I wanted to see those names

I'm apparently not following. You have a list of names in column A and numbers in column B. You can highlight duplicates to see which values are going to be deleted. You can highlight duplicate values in column A alone and column B alone to find mismatched names. You can delete duplicates by two columns to make sure you don't delete any mismatched names. What else you need to do?
Title: Re: Excel Problem
Post by: unavailable on July 09, 2014, 11:45:26 PM
I'm apparently not following. You have a list of names in column A and numbers in column B. You can highlight duplicates to see which values are going to be deleted. You can highlight duplicate values in column A alone and column B alone to find mismatched names. You can delete duplicates by two columns to make sure you don't delete any mismatched names. What else you need to do?
Title: Re: Excel Problem
Post by: username on July 09, 2014, 11:50:54 PM
Create a column concecating the name and phone number. Then on that column remove duplicates and sort asceding, then scroll down and see if any numbers have more than one name on it
Title: Re: Excel Problem
Post by: unavailable on July 09, 2014, 11:58:21 PM
Create a column concecating the name and phone number. Then on that column remove duplicates and sort asceding, then scroll down and see if any numbers have more than one name on it
I don't follow. If I remove duplicates I won't be able to see if the numbers have 2 names again I'm talking 2k names for now
Title: Re: Excel Problem
Post by: bubbles on July 10, 2014, 08:08:00 AM
I don't follow. If I remove duplicates I won't be able to see if the numbers have 2 names again I'm talking 2k names for now
I thought we solved this? Highlight duplicates in column A. Then highlight duplicates in column B. Then sort the two columns, first by column B (the numbers) with highlight on top, then by column A with highlight on top. Then scroll down a drop .The duplicate numbers without duplicate names will start where column B is still highlighted but column A no longer is.

Or simply delete duplicates by both columns and then highlight duplicates by number only
Title: Re: Excel Problem
Post by: username on July 10, 2014, 08:31:59 AM
I don't follow. If I remove duplicates I won't be able to see if the numbers have 2 names again I'm talking 2k names for now
Only remove the duplicates from the newly created column.

How many lines do you have, how many unique names do you think there are?
Title: Re: Excel Problem
Post by: unavailable on July 10, 2014, 08:40:31 AM
@bubbles
We did. Wanted to understand what username wrote.
Plenty.
Title: Re: Excel Problem
Post by: unavailable on July 11, 2014, 12:29:34 PM
Hi
Can excel choose from a list of numbers to reach a specific amount. I have a list of donations I received, then I have a list of deposits made, can excel group together donations to deposit amounts?
Title: Re: Excel Problem
Post by: etech0 on July 11, 2014, 12:38:33 PM
Hi
Can excel choose from a list of numbers to reach a specific amount. I have a list of donations I received, then I have a list of deposits made, can excel group together donations to deposit amounts?
You can probably do that with VBA, but what's to guarantee that you'll end up with the right breakdown? There could be more than one "answer"...
Title: Re: Excel Problem
Post by: smurf on July 11, 2014, 12:47:35 PM
Hi
Can excel choose from a list of numbers to reach a specific amount. I have a list of donations I received, then I have a list of deposits made, can excel group together donations to deposit amounts?
can you describe the structure of your document?
Fwiu you can just try sorting both lists by value, check for where they don't line up.
Title: Re: Excel Problem
Post by: etech0 on July 11, 2014, 12:50:30 PM
can you describe the structure of your document?
Fwiu you can just try sorting both lists by value, check for where they don't line up.
True. And you can have excel show you on the bottom the total of the selected cells, so you could go through them and move things around until everything adds up.
Title: Re: Excel Problem
Post by: unavailable on July 11, 2014, 12:50:59 PM
You can probably do that with VBA, but what's to guarantee that you'll end up with the right breakdown? There could be more than one "answer"...
I'll accept any breakdown
whats vba? if it's hard to explain i'll try to search in on youtube
thanks
can you describe the structure of your document?
Fwiu you can just try sorting both lists by value, check for where they don't line up.

column a small amounts, column b daily totals
Title: Re: Excel Problem
Post by: etech0 on July 11, 2014, 12:54:25 PM
I'll accept any breakdown
whats vba? if it's hard to explain i'll try to search in on youtube
thankscolumn a small amounts, column b daily totals
VBA is Visual Basic for Applications, which basically means that you can write a program to interact with your excel/word/... file. Very cool, but you gotta know how to code. It sounds like unless your list is really long, you don't need something that complicated.
Title: Re: Excel Problem
Post by: unavailable on July 11, 2014, 12:56:31 PM
VBA is Visual Basic for Applications, which basically means that you can write a program to interact with your excel/word/... file. Very cool, but you gotta know how to code. It sounds like unless your list is really long, you don't need something that complicated.
do i have to write the program, there is nothing set up for this yet?
Title: Re: Excel Problem
Post by: etech0 on July 11, 2014, 12:57:03 PM
do i have to write the program, there is nothing set up for this yet?
right, unless you happen to find something by googling. I might be able to help with this next week, but you might not need something so complicated.
Title: Re: Excel Problem
Post by: unavailable on July 11, 2014, 12:58:22 PM
right, unless you happen to find something by googling. I might be able to help with this next week, but you might not need something so complicated.
i'll try
Title: Re: Excel Problem
Post by: skyguy918 on July 11, 2014, 01:01:53 PM
i'll try
If the list is small you can probably do it manually by yourself pretty easily. The larger the list is the more likely you need a VBA script to essentially compare the sum of each combination of the small amounts to the daily totals until every small amount is matched to a daily total.
Title: Re: Excel Problem
Post by: unavailable on July 11, 2014, 01:08:25 PM
If the list is small you can probably do it manually by yourself pretty easily. The larger the list is the more likely you need a VBA script to essentially compare the sum of each combination of the small amounts to the daily totals until every small amount is matched to a daily total.
about 40;8 (x12 months), but also there might be some missing so if there is a program or feature that can do this I'll prefer not to do it manually just to find out that something's missing

haven't applied this yet but it looks promising. Ill let you know
Title: Re: Excel Problem
Post by: skyguy918 on July 11, 2014, 01:12:57 PM
about 40;8 (x12 months), but also there might be some missing so if there is a program or feature that can do this I'll prefer not to do it manually just to find out that something's missing

haven't applied this yet but it looks promising. Ill let you know
I took out my edit. It'll only help you match a maximum of 200 small amount to 1 daily total at a time.
Title: Re: Excel Problem
Post by: unavailable on July 11, 2014, 01:17:43 PM
I took out my edit. It'll only help you match a maximum of 200 small amount to 1 daily total at a time.
so i can still leave column a as is and place 1 daily total at a time. beats manual labor.
Title: Re: Excel Problem
Post by: skyguy918 on July 11, 2014, 01:19:47 PM
about 40;8 (x12 months), but also there might be some missing so if there is a program or feature that can do this I'll prefer not to do it manually just to find out that something's missing

haven't applied this yet but it looks promising. Ill let you know
I can't tell what you're trying to say. What is the total number of all the 'small transactions' you have in your data set?
so i can still leave column a as is and place 1 daily total at a time. beats manual labor.
Yes this definitely will help you somewhat. You'd have to solve the first daily amount, move the transactions that remain with a 1 marker out of the transactions list, and then repeat that process for each daily amount. VBA could automate that part as well.
Title: Re: Excel Problem
Post by: unavailable on July 11, 2014, 01:24:10 PM
40 small to 8 totals per month. for a year
Title: Re: Excel Problem
Post by: skyguy918 on July 11, 2014, 01:30:05 PM
40 small to 8 totals per month. for a year
so you have 12 groups of 40 transactions, and each group of 40 transactions must be matched up to 1 of 8 totals within each month?
Title: Re: Excel Problem
Post by: unavailable on July 11, 2014, 01:45:54 PM
so you have 12 groups of 40 transactions, and each group of 40 transactions must be matched up to 1 of 8 totals within each month?
40 donations in month #1.
8 deposits (containing multiple donations) in month #1. Want to know which donations were grouped to create each of the 8 deposits.
This has been going on for a year.
Title: Re: Excel Problem
Post by: churnbabychurn on July 11, 2014, 01:53:45 PM
can a subtotal + if formula work?
Title: Re: Excel Problem
Post by: skyguy918 on July 11, 2014, 03:46:04 PM
40 donations in month #1.
8 deposits (containing multiple donations) in month #1. Want to know which donations were grouped to create each of the 8 deposits.
This has been going on for a year.
Ok, so:
Create 1 tab per month.
• On each tab, have the donations for that month listed down the first column starting from cell A2, and the deposits for that month listed across the first row starting from cell E1.
• Fill cells B2:I41 (assuming your data is exactly 40x8) with the value 1.
• In cell B42, put "=SUMPRODUCT($A$2:$A$41,B2:B41)-B1" (without the quotes obviously).
• Copy that cell B42 to cells C42:I42.

Now you can do the solver method on each cell within B42:I42. You still have to do the solver 8 time per tab X 12 tabs = 96 times, but as has been mentioned already, VBA is the way to solve that.
Title: Re: Excel Problem
Post by: skyguy918 on July 11, 2014, 03:46:27 PM
can a subtotal + if formula work?
Only if the donations are listed in chronological order.
Title: Re: Excel Problem
Post by: smurf on July 11, 2014, 05:47:39 PM
You should check out the "solver" excel add in
Title: Re: Excel Problem
Post by: MarkS on July 11, 2014, 06:00:45 PM
Also see ASAP Utilities add on

Title: Re: Excel Problem
Post by: skyguy918 on July 12, 2014, 10:29:39 PM
You should check out the "solver" excel add in
That's what I had added to my earlier post, a link to an explanation of how to use solver for this exact problem. I removed it because I thought the solver limitation of 100 variable would be a problem in this case - turns out it's not.

Also see ASAP Utilities add on

Do you actually know of a tool in there that would solve this specific problem?
Title: Re: Excel Problem
Post by: MarkS on July 12, 2014, 10:32:42 PM
Do you actually know of a tool in there that would solve this specific problem?
No - I was just posting it as an overall useful Excel Add on
Title: Re: Excel Problem
Post by: beej on July 13, 2014, 12:39:30 AM
If I have spreadsheet with 2 columns. Each colum containing a list of names. Lest say column A has Bob, Joe, and Steve in that order. And column B has Joe Steve and  Bob int hat order.
How would I filter out all the records that have Bob at once.
If I filter column A for Bob I right away lose the next two rows so I can't further filter column B for Bob too.
Basically is there a way to have multiple column filters work as an AND, meaning together with the previous filters.
Title: Re: Excel Problem
Post by: churnbabychurn on July 13, 2014, 12:47:42 AM
If I have spreadsheet with 2 columns. Each colum containing a list of names. Lest say column A has Bob, Joe, and Steve in that order. And column B has Joe Steve and  Bob int hat order.
How would I filter out all the records that have Bob at once.
If I filter column A for Bob I right away lose the next two rows so I can't further filter column B for Bob too.
Basically is there a way to have multiple column filters work as an AND, meaning together with the previous filters.
But why can't you do one at a time?
Title: Re: Excel Problem
Post by: beej on July 13, 2014, 01:00:59 AM
I simplified the scenario. I have  list of hundreds of transactions. I also have about 10 columns of the different people involved in that transaction. I need to see all the transactions Bob was involved with. He might be in the first column on one transaction, the third on another and the 10th column on another. It would be time consuming to do it separately.
Title: Re: Excel Problem
Post by: bubbles on July 13, 2014, 01:15:07 AM
Highlight based on text and sort by highlight? Not sure I understand the case exactly
Title: Re: Excel Problem
Post by: smurf on July 13, 2014, 01:39:32 AM
I simplified the scenario. I have  list of hundreds of transactions. I also have about 10 columns of the different people involved in that transaction. I need to see all the transactions Bob was involved with. He might be in the first column on one transaction, the third on another and the 10th column on another. It would be time consuming to do it separately.
Concatenate all columns containing the names and filter by that column
Title: Re: Excel Problem
Post by: lubaby on July 13, 2014, 03:35:08 AM
If I have spreadsheet with 2 columns. Each colum containing a list of names. Lest say column A has Bob, Joe, and Steve in that order. And column B has Joe Steve and  Bob int hat order.
How would I filter out all the records that have Bob at once.
If I filter column A for Bob I right away lose the next two rows so I can't further filter column B for Bob too.
Basically is there a way to have multiple column filters work as an AND, meaning together with the previous filters.
Seems like a simple IF clause should do it, if you're looking for anything that's the same, not just Bob.
Try '=IF(A2=B2,"same","different") then you can filter anything that's "same".

If you want only ones where Bob is the same, then Smurfs suggestion should work.
Title: Re: Excel Problem
Post by: churnbabychurn on July 13, 2014, 07:30:42 AM
You can also sort by multiple columns.
Not sure if this would work for you.
Title: Re: Excel Problem
Post by: etech0 on July 13, 2014, 01:54:00 PM
You can use an Advanced Filter
Title: Re: Excel Problem
Post by: yitzf on July 13, 2014, 01:54:11 PM
If I have spreadsheet with 2 columns. Each colum containing a list of names. Lest say column A has Bob, Joe, and Steve in that order. And column B has Joe Steve and  Bob int hat order.
How would I filter out all the records that have Bob at once.
If I filter column A for Bob I right away lose the next two rows so I can't further filter column B for Bob too.
Basically is there a way to have multiple column filters work as an AND, meaning together with the previous filters.

You're looking for "advanced filter", it's on the data tab to the right of the filter button. You can filter multiple columns using AND or OR.

The video here (https://www.youtube.com/watch?v=C_2cjh5Pd8o) gives a good overview, but doesn't have your specific case. You will need to put Bob in A3, B4, C5 ect. The reason is because criteria in the same row are AND, but you want OR, so you need to put then in different rows in the columns you want to filter.

Yip: If you need to keep on changing the names, you can find a blank call and use that to write the name in, and write in A3, B4, C5 etc =that blank cell. (eg. write Bob in K1, and write in A3, B4, C5 etc =K1, now when you want to switch names just change the name in K1. You will have to clear and re-apply the filter, unless you write a macro to do it automatically.)

(Advanced filters do not work in shared workbooks unless you program it in VBA).
Title: Re: Excel Problem
Post by: churnbabychurn on July 16, 2014, 10:04:32 AM
Need a formula to insert random dates within a range in a column.

(preparing a second quarter report of various activities, need to fill in the date column...)

ETA found this: http://www.techrepublic.com/blog/microsoft-office/generate-random-dates-within-a-specific-date-range/
Title: Re: Excel Problem
Post by: lubaby on July 16, 2014, 10:05:41 AM
Need a formula to insert random dates within a range in a column.

(preparing a second quarter report of various activities, need to fill in the date column...)
http://www.techrepublic.com/blog/microsoft-office/generate-random-dates-within-a-specific-date-range/

Quote
With just a little more work, you can use RANDBETWEEN() to generate random dates for a specific time period. You'll include the DATE() function to specify the bottom and top values as dates, using the form

RANDBETWEEN(DATE(bottomdate),DATE(topdate)
For example, to return random dates between January 1, 2012 and January 30, 2012, you'd use the following function:

=RANDBETWEEN(DATE(2012,1,1),DATE(2012,1,30))
Title: Excel Problem
Post by: MC on July 16, 2014, 10:07:45 AM
Need a formula to insert random dates within a range in a column.

(preparing a second quarter report of various activities, need to fill in the date column...)
I think this works: RANDBETWEEN(DATE(bottomdate),DATE(topdate))
Let me know if it doesn't
Title: Re: Excel Problem
Post by: churnbabychurn on July 16, 2014, 10:09:36 AM
http://www.techrepublic.com/blog/microsoft-office/generate-random-dates-within-a-specific-date-range/
Thanks all, works great! Google is our friend  :)
Title: Re: Excel Problem
Post by: churnbabychurn on July 16, 2014, 10:14:10 AM
But how do I get it to stop auto calculating everytime I enter data in a row? I guess I can change them to values...
Title: Re: Excel Problem
Post by: yitzf on July 16, 2014, 10:40:41 AM
But how do I get it to stop auto calculating everytime I enter data in a row? I guess I can change them to values...

Gotta change to values...
Title: Excel Problem
Post by: Gets on July 16, 2014, 09:03:50 PM
Hi,
I ran a report at work and it divided the rows up into 3 sets of 600 rows instead of 1 wide row of 600. Is there any way to put them side by side matching the user Id of each row.
Please let me know if I can be any clearer. Tia
Title: Re: Excel Problem
Post by: bubbles on July 16, 2014, 09:09:46 PM
Meaning it split the data into columns a, b and c rows 1 - 600? or column a rows 1 - 1800?
Title: Re: Excel Problem
Post by: Centurion on July 16, 2014, 09:26:09 PM
ever tried v-lookup?
Title: Re: Excel Problem
Post by: smurf on July 16, 2014, 09:47:35 PM
ever tried v-lookup?
nah index(,match is the way to go
Title: Re: Excel Problem
Post by: Gets on July 16, 2014, 09:49:36 PM
It split column a,b,c rows 1-600 into column a 1-601 b 601-1200 c1201-1800. I put them side by side but they are not all exactly the same. I want to match them up by the id number at the beginning of each row.
Title: Re: Excel Problem
Post by: Gets on July 16, 2014, 09:51:20 PM

nah index(,match is the way to go
Thanks. I'll try that tomorrow morning can you elaborate a little please
Title: Re: Excel Problem
Post by: smurf on July 16, 2014, 09:52:17 PM
It split column a,b,c rows 1-600 into column a 1-601 b 601-1200 c1201-1800. I put them side by side but they are not all exactly the same. I want to match them up by the id number at the beginning of each row.
is the id number a consistent length?
Title: Re: Excel Problem
Post by: Gets on July 16, 2014, 10:02:16 PM
No. The 3 groups are divided based on different info for the 600 people
So when I put them side by side I want it to match up using the user id so it will skip the ones that are n/a.
Title: Re: Excel Problem
Post by: bubbles on July 16, 2014, 11:45:42 PM
I think posting a small example might help. It sounds like the type of problem with an easy fix, but I'm still not exactly sure how it looks
Title: Re: Excel Problem
Post by: churnbabychurn on July 17, 2014, 12:28:09 AM
Hi,
I ran a report at work and it divided the rows up into 3 sets of 600 rows instead of 1 wide row of 600. Is there any way to put them side by side matching the user Id of each row.
Please let me know if I can be any clearer. Tia
Ran a report from where?
Title: Re: Excel Problem
Post by: smurf on July 17, 2014, 12:56:17 AM
It split column a,b,c rows 1-600 into column a 1-601 b 601-1200 c1201-1800. I put them side by side but they are not all exactly the same. I want to match them up by the id number at the beginning of each row.
 Table A B C 1 A1-600 2 B601-1200 3 C1201-1800

It sounds like your data looks like this
Title: Re: Excel Problem
Post by: chff on July 17, 2014, 07:10:09 AM
For some reason, when I create a new sheet, the page name on the bottom is in Hebrew. How can I change it?
Title: Re: Excel Problem
Post by: dave on August 18, 2014, 04:58:23 PM
how do i trun off  scientific notation?
Title: Re: Excel Problem
Post by: aygart on August 18, 2014, 05:02:42 PM
how do i trun off  scientific notation?
meaning when you enter a long number?
Title: Re: Excel Problem
Post by: dave on August 18, 2014, 05:04:36 PM
yes all data i enter should be  as is
Title: Re: Excel Problem
Post by: aygart on August 18, 2014, 05:06:02 PM
Do you need it to be considered a number by excel such as to do calculations from
Title: Re: Excel Problem
Post by: Marco Polo on August 18, 2014, 05:06:28 PM
yes all data i enter should be  as is
Try "trimming" the amount of decimal places shown in a cell (on the home tab in the "number" box).
Title: Re: Excel Problem
Post by: dave on August 18, 2014, 05:16:13 PM
trying to upload template to amazon keeps on giving me this error

Error A EAN/UPC value in scientific notation is not allowed: [Product ID Type = "ean"], [Product ID =
Title: Re: Excel Problem
Post by: Centurion on August 18, 2014, 05:32:41 PM
Did you put a 1 or a 3
Did you put asin or sku?
Try ro pasre in note pad first then back in excel
If it doesn't show a number you will get this error
Title: Re: Excel Problem
Post by: dave on August 18, 2014, 05:37:00 PM
Did you put a 1 or a 3
Did you put asin or sku?
Try ro pasre in note pad first then back in excel
If it doesn't show a number you will get this error

asin and sku

Title: Re: Excel Problem
Post by: aygart on August 18, 2014, 05:39:31 PM
trying to upload template to amazon keeps on giving me this error

Error A EAN/UPC value in scientific notation is not allowed: [Product ID Type = "ean"], [Product ID =
as I thought it is not a "number" but text with numeric characters. Format the cells as text in excel. You may need to fake edit each cell if you are doing it after the number was entered. This means to select the cell, place the cursor in the editing area, and press enter. If you are pasting into the cells you may need to right click and paste values instead of using control v. That is the paste icon with the 123 on it.
An alternative method is to type a ' at the beginning of each number.
Title: Re: Excel Problem
Post by: dave on August 18, 2014, 05:51:32 PM
thanks so much it worked

Title: Re: Excel Problem
Post by: aygart on August 18, 2014, 05:54:51 PM
I go through this all the time with utility account numbers
Title: Re: Excel Problem
Post by: A3 on September 18, 2014, 12:20:15 PM
I want to get a simple barcode reader to keep track of inventory, the only inventory I need to keep track of at the moment is finished goods, I need a few columns, such as Item, UPC, New inventory, shipped, on shelf (total)
I would want to scan a barcode and have excel do the rest.
Any ideas where to start?

Also I would want an option for the scanner to lower the inventory when the items ship out.

How complicated does this sound?

Thanks guys
Title: Re: Excel Problem
Post by: AnonymousUser on September 18, 2014, 03:00:02 PM
I want to get a simple barcode reader to keep track of inventory, the only inventory I need to keep track of at the moment is finished goods, I need a few columns, such as Item, UPC, New inventory, shipped, on shelf (total)
I would want to scan a barcode and have excel do the rest.
Any ideas where to start?

Also I would want an option for the scanner to lower the inventory when the items ship out.

How complicated does this sound?

Thanks guys
You can write a macro to get input from the barcode scanner, lookup the row with that item, and decrease the quantity in stock by 1.
Title: Re: Excel Problem
Post by: Fan of Dan on September 18, 2014, 03:30:54 PM
Don't want this to come across as if I think excel is simple or easy to learn. Where can I learn basic excel either online or perhaps a good book etc. I use it a bit for simple stuff and I think know I am not taking advantage of what it has to offer properly.

Thank you
Title: Re: Excel Problem
Post by: churnbabychurn on September 18, 2014, 03:34:04 PM
I want to get a simple barcode reader to keep track of inventory, the only inventory I need to keep track of at the moment is finished goods, I need a few columns, such as Item, UPC, New inventory, shipped, on shelf (total)
I would want to scan a barcode and have excel do the rest.
Any ideas where to start?

Also I would want an option for the scanner to lower the inventory when the items ship out.

How complicated does this sound?

Thanks guys
you really need a cheap POS/inventory system. Using excel sounds complicated when there is an abundance of other options.. IMHO
Title: Re: Excel Problem
Post by: etech0 on September 18, 2014, 03:38:21 PM
you really need a cheap POS/inventory system. Using excel sounds complicated when there is an abundance of other options.. IMHO
+1
Title: Re: Excel Problem
Post by: DanH on September 18, 2014, 06:05:16 PM
Don't want this to come across as if I think excel is simple or easy to learn. Where can I learn basic excel either online or perhaps a good book etc. I use it a bit for simple stuff and I think know I am not taking advantage of what it has to offer properly.

Thank you
http://excelexposure.com/lesson-guide/
Title: Re: Excel Problem
Post by: Fan of Dan on September 18, 2014, 07:20:17 PM
http://excelexposure.com/lesson-guide/
Thank you so much!
Title: Re: Excel Problem
Post by: churnbabychurn on November 12, 2014, 02:49:23 PM
I have a table to unsorted data. Is there a way to sort it alphabetically, then change some values, and then revert it back to its unsorted state?
Title: Re: Excel Problem
Post by: MarkS on November 12, 2014, 02:52:32 PM
I have a table to unsorted data. Is there a way to sort it alphabetically, then change some values, and then revert it back to its unsorted state?
Make a column and label it 1,2,3 etc.
when you want to revert back to unsorted state sort by that new 1 2 3 column.
Title: Re: Excel Problem
Post by: etech0 on November 12, 2014, 03:02:07 PM
Make a column and label it 1,2,3 etc.
when you want to revert back to unsorted state sort by that new 1 2 3 column.
To get the row #s automatically, put this in cell A1 (or any column), and then copy down.
Code: [Select]
=ROW(A1)Then, select the column, do copy, and paste special - values.
Title: Re: Excel Problem
Post by: skyguy918 on November 12, 2014, 03:08:18 PM
To get the row #s automatically, put this in cell A1 (or any column), and then copy down.
Code: [Select]
=ROW(A1)Then, select the column, do copy, and paste special - values.
or just type 1 and 2 in the first 2 rows, select them, then double click the fill handle (which is the corner of the selection box) and it'll fill the series down to the end of your data set.
Title: Re: Excel Problem
Post by: etech0 on November 12, 2014, 03:09:26 PM
or just type 1 and 2 in the first 2 rows, select them, then double click the fill handle (which is the corner of the selection box) and it'll fill the series down to the end of your data set.
True!
Title: Re: Excel Problem
Post by: churnbabychurn on November 12, 2014, 05:11:13 PM
Make a column and label it 1,2,3 etc.
when you want to revert back to unsorted state sort by that new 1 2 3 column.

To get the row #s automatically, put this in cell A1 (or any column), and then copy down.
Code: [Select]
=ROW(A1)Then, select the column, do copy, and paste special - values.

or just type 1 and 2 in the first 2 rows, select them, then double click the fill handle (which is the corner of the selection box) and it'll fill the series down to the end of your data set.

True!
Thanks! :)

I wasted much time playing with mental formulas...:-[
Title: Re: Excel Problem
Post by: etech0 on November 12, 2014, 08:28:52 PM

Thanks! :)

I wasted much time playing with mental formulas...:-[
exercise for the brain :)
Title: Re: Excel Problem
Post by: churnbabychurn on November 12, 2014, 09:41:20 PM
exercise for the brain :)
Nah, billed a client ;)
Title: Re: Excel Problem
Post by: etech0 on November 12, 2014, 11:14:42 PM
Nah, billed a client ;)
You get paid to exercise? COOL!
Title: Re: Excel Problem
Post by: Ephcc90 on November 18, 2014, 07:43:53 PM
Anybody know how I can pull data just from the subtotals? There are about 7000 rows and about 350 are totals. I just want the rows with the totals. How can I easily get that data? Is there a way to hide the other data and just highlight the ones I need?
Title: Re: Excel Problem
Post by: Dr Moose on November 18, 2014, 08:11:49 PM
I hate cross posting, but I posted in the other excel thread. and apparently this is the active thread, so:

I need to create a goal chart, like this one here: http://www.exceldashboardtemplates.com/how-to-make-a-beer-mug-goal-chart-as-an-excel-dashboard-component/

does anyone know of an easier way to make it than the link I posted? or maybe someone else who explains it differently?

Title: Re: Excel Problem
Post by: WQ on November 18, 2014, 08:12:42 PM
Anybody know how I can pull data just from the subtotals? There are about 7000 rows and about 350 are totals. I just want the rows with the totals. How can I easily get that data? Is there a way to hide the other data and just highlight the ones I need?
if using the subtotal function it should automatically hide the 6650 rows.
Are you using subtitle function or was it manually subtotalled?
Title: Re: Excel Problem
Post by: Ephcc90 on November 18, 2014, 08:14:34 PM
if using the subtotal function it should automatically hide the 6650 rows.
Are you using subtitle function or was it manually subtotalled?
It is hidden with the plus sign on the left side. However, I can't highlight them all because it includes the hidden rows...
Title: Re: Excel Problem
Post by: WQ on November 18, 2014, 08:19:58 PM
It is hidden with the plus sign on the left side. However, I can't highlight them all because it includes the hidden rows...
easy, select "go to special" then "visible only"
Title: Re: Excel Problem
Post by: Ephcc90 on November 18, 2014, 08:28:09 PM
easy, select "go to special" then "visible only"
Thanks!!!
Title: Re: Excel Problem
Post by: skyguy918 on November 19, 2014, 10:03:54 AM
I hate cross posting, but I posted in the other excel thread. and apparently this is the active thread, so:
What exactly are you trying to do? Specifically a goal chart with a nice customized graphic, like the beer mug? Or any functional progress chart would do?
Title: Re: Excel Problem
Post by: Dr Moose on November 19, 2014, 10:05:13 AM

What exactly are you trying to do? Specifically a goal chart with a nice customized graphic, like the beer mug? Or any functional progress chart would do?

I originally wanted something nice like the beer mug, but it seems to difficult. so I'll settle for a regular functional progress chart
Title: Re: Excel Problem
Post by: WQ on November 19, 2014, 10:10:59 AM
I hate cross posting, but I posted in the other excel thread. and apparently this is the active thread, so:
yeah, I rtm'd to merge these two threads ages ago...
Title: Re: Excel Problem
Post by: Dr Moose on November 19, 2014, 10:11:36 AM
yeah, I rtm'd to merge these two threads ages ago...
umm, you only joined yesterday ....
Title: Re: Excel Problem
Post by: WQ on November 19, 2014, 10:45:57 AM
umm, you only joined yesterday ....
my point is still valid
Title: Re: Excel Problem
Post by: Ephcc90 on November 19, 2014, 12:31:26 PM
How in the world can I do this? I assume an IF formula.

"Employee shall be entitled to vacation only upon completion of 1 year of service.  1-7 years of service: 2 weeks paid vacation; 8-11 years of service: 3 weeks paid vacation; 12-15 years of service: 4 weeks paid vacation; 15+ years of service, employees may receive an additional 5 days of vacation.

I have the date of hire in column D. I need to calculate it in terms of hours so assume every day is 7.5 hours.
Title: Re: Excel Problem
Post by: etech0 on November 19, 2014, 12:39:03 PM
How in the world can I do this? I assume an IF formula.

"Employee shall be entitled to vacation only upon completion of 1 year of service.  1-7 years of service: 2 weeks paid vacation; 8-11 years of service: 3 weeks paid vacation; 12-15 years of service: 4 weeks paid vacation; 15+ years of service, employees may receive an additional 5 days of vacation.

I have the date of hire in column D. I need to calculate it in terms of hours so assume every day is 7.5 hours.
You need to specify what column(s) of data you have, and what you want the output column to contain.
Title: Re: Excel Problem
Post by: Ephcc90 on November 19, 2014, 12:43:11 PM
You need to specify what column(s) of data you have, and what you want the output column to contain.
I have the date of hire in column D. I want to have the accrued time in AQ.  I basically want to say if they worked 1- 7 years then they get 75 hours, if they worked 8-11 they get 112.5, etc.
Title: Re: Excel Problem
Post by: etech0 on November 19, 2014, 12:44:29 PM
I have the date of hire in column D. I want to have the accrued time in AQ.  I basically want to say if they worked 1- 7 years then they get 75 hours, if they worked 8-11 they get 112.5, etc.
Okay, so the first step is to create a formula to figure out how many years they worked, based on their date of hire. You'll want to play around with the Date functions to find one that works for you.
Title: Re: Excel Problem
Post by: skyguy918 on November 19, 2014, 01:04:00 PM
I have the date of hire in column D. I want to have the accrued time in AQ.  I basically want to say if they worked 1- 7 years then they get 75 hours, if they worked 8-11 they get 112.5, etc.

Find a spot to put a table of the vacation allotments and name that range (let's say vacation_table).. The first column should be the lowest number of years you need to be eligible for that amount of vacation, and the second column should be the amount of vacation:
 1 75 8 112.5

Then the formula in AQ1 would be = IFERROR(VLOOKUP(DATEDIF(D1,TODAY(),"Y"),vacation_table,2,TRUE),0)
Title: Re: Excel Problem
Post by: Ephcc90 on November 19, 2014, 01:12:41 PM

Find a spot to put a table of the vacation allotments and name that range (let's say vacation_table).. The first column should be the lowest number of years you need to be eligible for that amount of vacation, and the second column should be the amount of vacation:
 1 75 8 112.5

Then the formula in AQ1 would be = IFERROR(VLOOKUP(DATEDIF(D1,TODAY(),"Y"),vacation_table,2,TRUE),0)
Thanks so much!!!
Title: Re: Excel Problem
Post by: Ephcc90 on November 19, 2014, 01:43:00 PM

Find a spot to put a table of the vacation allotments and name that range (let's say vacation_table).. The first column should be the lowest number of years you need to be eligible for that amount of vacation, and the second column should be the amount of vacation:
 1 75 8 112.5

Then the formula in AQ1 would be = IFERROR(VLOOKUP(DATEDIF(D1,TODAY(),"Y"),vacation_table,2,TRUE),0)
One more thing... I only want to count the employees who worked more than 30 hours. I have a column that says how many hours they worked.
Title: Re: Excel Problem
Post by: Toasted on November 19, 2014, 01:52:37 PM
One more thing... I only want to count the employees who worked more than 30 hours. I have a column that says how many hours they worked.
Say hours worked is in column H.
= IFERROR(IF(H1>30,VLOOKUP(DATEDIF(D1,TODAY(),"Y"),vacation_table,2,TRUE),0),0)
Title: Re: Excel Problem
Post by: Ephcc90 on November 19, 2014, 02:11:48 PM
Find a spot to put a table of the vacation allotments and name that range (let's say vacation_table).. The first column should be the lowest number of years you need to be eligible for that amount of vacation, and the second column should be the amount of vacation:
 1 75 8 112.5

Then the formula in AQ1 would be = IFERROR(VLOOKUP(DATEDIF(D1,TODAY(),"Y"),vacation_table,2,TRUE),0)
Say hours worked is in column H.
= IFERROR(IF(H1>30,VLOOKUP(DATEDIF(D1,TODAY(),"Y"),vacation_table,2,TRUE),0),0)
Thanks so much guys!
Title: Re: Excel Problem
Post by: far rockaway on November 20, 2014, 08:53:10 AM
Anyone have an answer to create one generic formula for this? It would be greatly appreciated.

I have different from/to dates throughout the year with each period having a balance( ex. Weight in pounds) I am trying to create a list of each month and the weighted average pounds per month.

So column A is from date (ex. January 1, 2014) column B is to date ( January 6, 2014) and column C is balance in pounds. I then have each row with a different periods throughout the year with a different weight. I want to create a summary per month what the weighted average is.

Thanks,
Title: Re: Excel Problem
Post by: skyguy918 on November 20, 2014, 09:46:52 AM
Anyone have an answer to create one generic formula for this? It would be greatly appreciated.

I have different from/to dates throughout the year with each period having a balance( ex. Weight in pounds) I am trying to create a list of each month and the weighted average pounds per month.

So column A is from date (ex. January 1, 2014) column B is to date ( January 6, 2014) and column C is balance in pounds. I then have each row with a different periods throughout the year with a different weight. I want to create a summary per month what the weighted average is.

Thanks,
Assuming the 'from' and 'to' months are the same for each entry (ie no entry spans 2 months) and that you have your data in rows 1-100 (just replace the references to 1 or 100 with your actual starting row and ending row of the data):

Put the formula =MONTH(A1) in column D. Put 1 through 12 in cells E1:E12 and =SUMIF($D$1:$D$100,E1,$C$1:$C$100)/COUNTIF($D$1:$D$100,E1) in cells F1:F12.
Title: Re: Excel Problem
Post by: far rockaway on November 22, 2014, 08:43:57 PM
Assuming the 'from' and 'to' months are the same for each entry (ie no entry spans 2 months) and that you have your data in rows 1-100 (just replace the references to 1 or 100 with your actual starting row and ending row of the data):

Put the formula =MONTH(A1) in column D. Put 1 through 12 in cells E1:E12 and =SUMIF($D$1:$D$100,E1,$C$1:$C$100)/COUNTIF($D$1:$D$100,E1) in cells F1:F12.

Thanks.

This gets me the average. I'm looking to get the weighted average. Depending how many days in the month.
Title: Re: Excel Problem
Post by: skyguy918 on November 22, 2014, 08:57:14 PM
Thanks.

This gets me the average. I'm looking to get the weighted average. Depending how many days in the month.
Put = B1-A1 in column G. Then replace the COUNTIF function from my formula below with SUMIF($D$1:$D$100,E1,$G$1:$G$100)
Title: Re: Excel Problem
Post by: PTU on January 31, 2015, 07:43:08 PM
we have a couple of hundred customers each are are charged a different fee every month. Each month is on its own sheet.
How can I calculate the annual total fee per customer? -They are not in any order and there are often new customers in the middle of the year.
Title: Re: Excel Problem
Post by: MarkS on January 31, 2015, 07:50:16 PM
we have a couple of hundred customers each are are charged a different fee every month. Each month is on its own sheet.
How can I calculate the annual total fee per customer? -They are not in any order and there are often new customers in the middle of the year.

Do you have a master list anywhere of all customers?
If not, create one by copy pasting from all 12 months the customer account number onto one column of a new tab. Remove duplicates (under data toolbar) to have a master list of all customers billed during the year.

Then use a vlookup to pull the data from the various tabs. If each customer had several fees per month, first sort the various months and subtotal them to get the total for that customer for the month.
Title: Re: Excel Problem
Post by: PTU on January 31, 2015, 07:58:47 PM
Sounds good, il try that..

Been working with array sumifs or's and's stuff but it hasnt  been working out..
Title: Re: Excel Problem
Post by: PTU on February 01, 2015, 11:43:24 AM
The vlookups werent working well because there were many duplicate entires and formating issues.

I ended up copying all clients from all months into column A, and all fees from all months into B. Then sorted by a/z and subtotaled.

#another twenty min job took 5.5 hours.  :-\
Title: Re: Excel Problem
Post by: etech0 on February 01, 2015, 11:57:32 AM
The vlookups werent working well because there were many duplicate entires and formating issues.

I ended up copying all clients from all months into column A, and all fees from all months into B. Then sorted by a/z and subtotaled.

#another twenty min job took 5.5 hours.  :-\
OT for this thread, but it sounds like your situation might work better in Microsoft Access.
Title: Re: Excel Problem
Post by: skyguy918 on February 01, 2015, 01:53:06 PM
we have a couple of hundred customers each are are charged a different fee every month. Each month is on its own sheet.
How can I calculate the annual total fee per customer? -They are not in any order and there are often new customers in the middle of the year.

By far, the easiest way to do this is a pivot table.
• Open your spreadsheet and hit ALT>D>P to start the pivot table wizard.
• On the first page of the wizard, select 'Multiple consolidation ranges' and click next.
• On the next screen, select 'I will create the page fields' and click next.
• On the next screen, press the little icon with the red arrow, navigate to your first monthly tab, and select the whole table that has your values, including the headers, names, and fee values. If you want to set this up before the values are put in (ie at the beginning of the year), just highlight the entire columns - for example Sheet1!$A:$B if you have only 2 columns of data - and that way later you can just refresh the pivot table results after new data has been entered. Once you have the range selected, click add, and repeat the process for each monthly tab, then click next once you finish the last one.
• On the next screen, select 'New worksheet' and click finish.
The wizard will then generate a pivot table, and a pivot report showing the results. Each row in the pivot table will show one customer name, alphabetized, with no duplicates. When the report is first generated, it'll show a count of how many values there are for each name. To switch that to a sum of actual values, look at the bottom right corner of your screen, in the Values section of the PivotTable Field List window. Click the little arrow next to the Count of Value field, select Value Field Settings, and switch from Count to Sum in the window that pops up. The report will now show the final result.

If you add or remove data from the source ranges (ie your monthly tabs) later, you can always click into any cell in the report and hit ALT>J>T>F>A to refresh the pivot table.

ETA: I did that in Excel 2007, but it should work similarly in all newer versions as well at the very least.
Title: Re: Excel Problem
Post by: PTU on February 01, 2015, 02:54:27 PM
Thanks,
I tried to experiment with the pivot table with excel 2013, seems very complicated... Asking me about related table ranges etc. -Either way, I keep  getting an error that excel cant do it with the available resources and im just playing with jan and feb!
Title: Re: Excel Problem
Post by: skyguy918 on February 01, 2015, 10:59:12 PM
Thanks,
I tried to experiment with the pivot table with excel 2013, seems very complicated... Asking me about related table ranges etc. -Either way, I keep  getting an error that excel cant do it with the available resources and im just playing with jan and feb!
Was that even with the steps I mentioned above, or does 2013 not follow that exact script?
Title: Re: Excel Problem
Post by: PTU on February 01, 2015, 11:35:47 PM
Was that even with the steps I mentioned above, or does 2013 not follow that exact script?
To me it looked like 2013 is totally different. Definitely couldn't follow the step by step..
Needed to set data as tables first in order to use multiple ranges etc
Title: Re: Excel Problem
Post by: skyguy918 on February 02, 2015, 10:00:56 AM
To me it looked like 2013 is totally different. Definitely couldn't follow the step by step..
Needed to set data as tables first in order to use multiple ranges etc
Does ALT>D>P get you to the wizard? I googled it and it sounds like 2013 has the exact same wizard as 2007.

Here's a tutorial made for Excel 2013 that has screenshots for everything I mentioned. The relevant details are on pages 1 and 2:
http://prairiestate.edu/Assets/Global/itr-department/office/2013/Excel13-PivotTables_MultipleSheets.pdf
Title: Re: Excel Problem
Post by: chucksterace on February 24, 2015, 01:21:24 PM
I am looking to convert a excel sheet into a html dropdown leading to another dropdown.

Column A = Countries
Column B = City, Airport Code

Any ideas? Thanks
Title: Re: Excel Problem
Post by: lubaby on February 24, 2015, 01:47:02 PM
I am looking to convert a excel sheet into a html dropdown leading to another dropdown.

Column A = Countries
Column B = City, Airport Code

Any ideas? Thanks
Pivot Table wouldn't do it for you?
Title: Re: Excel Problem
Post by: skyguy918 on February 24, 2015, 02:01:34 PM
I am looking to convert a excel sheet into a html dropdown leading to another dropdown.

Column A = Countries
Column B = City, Airport Code

Any ideas? Thanks
Are you asking how to set this up in Excel, or how to have HTML code that looks in the Excel file for the counties/airports?
Title: Re: Excel Problem
Post by: chucksterace on February 24, 2015, 02:36:28 PM
Are you asking how to set this up in Excel, or how to have HTML code that looks in the Excel file for the counties/airports?

Looking how to set it up in html code so i won't have to retype all the info.

But a html code that when they start typing it would look up the text in a excel file would be pretty cool
Title: Re: Excel Problem
Post by: etech0 on February 24, 2015, 02:37:14 PM
Looking how to set it up in html code so i won't have to retype all the info.

But a html code that when they start typing it would look up the text in a excel file would be pretty cool
Is this form going to be on a website?
Title: Re: Excel Problem
Post by: chucksterace on February 24, 2015, 02:43:13 PM

Is this form going to be on a website?

Yes
Title: Re: Excel Problem
Post by: etech0 on February 24, 2015, 03:39:59 PM
Yes
Does the website exist yet? How did you build it?
If you're going with wordpress, the gravity forms plugin can do this for you.
Title: Re: Excel Problem
Post by: PTU on February 25, 2015, 05:04:22 PM
I have a corrupted excel file that I need repaired asap. I tried the built in repair tool..
Is there any free, safe software that I can use??
Title: Re: Excel Problem
Post by: jackofall on February 25, 2015, 06:00:51 PM
easy, select "go to special" then "visible only"
or alt+;
Title: Re: Excel Problem
Post by: etech0 on February 25, 2015, 06:40:00 PM
I have a corrupted excel file that I need repaired asap. I tried the built in repair tool..
Is there any free, safe software that I can use??
Can you open the file? Sometimes the easiest way is to open it, select all the cells, copy and paste them into a new file.
Title: Re: Excel Problem
Post by: yesitsme on February 25, 2015, 09:13:49 PM
Looking how to set it up in html code so i won't have to retype all the info.

But a html code that when they start typing it would look up the text in a excel file would be pretty cool
you can import csv format to mysql and pass the info through php & ajax
Title: Re: Excel Problem
Post by: yesitsme on February 25, 2015, 09:35:54 PM
example
Title: Re: Excel Problem
Post by: PTU on February 25, 2015, 09:50:24 PM
Can you open the file? Sometimes the easiest way is to open it, select all the cells, copy and paste them into a new file.
Cant open and can't repair
Title: Re: Excel Problem
Post by: etech0 on February 25, 2015, 09:50:55 PM
Cant open and can't repair
:(
I'll leave it for the experts, then. Good luck!
Title: Re: Excel Problem
Post by: dealfinder85 on March 02, 2015, 04:32:50 PM
in a sumif, i want to add up all the values for certain states on the list, but im excluding a few. is there a function to nest inside the sumif that i can use for this to list the few im excluding?
thanks
Title: Re: Excel Problem
Post by: etech0 on March 02, 2015, 04:35:19 PM
in a sumif, i want to add up all the values for certain states on the list, but im excluding a few. is there a function to nest inside the sumif that i can use for this to list the few im excluding?
thanks
Sounds like DSUM would be a better option.
http://www.techonthenet.com/excel/formulas/dsum.php

Basically, you set up another small table with the criteria you want.
Title: Re: Excel Problem
Post by: dealfinder85 on March 02, 2015, 04:37:45 PM
Sounds like DSUM would be a better option.
http://www.techonthenet.com/excel/formulas/dsum.php
not sure thats gonna help
i need to include in the function the list of states im excluding, that i dont want to add up those values corresponding to those states
Title: Re: Excel Problem
Post by: etech0 on March 02, 2015, 04:38:39 PM
not sure thats gonna help
i need to include in the function the list of states im excluding, that i dont want to add up those values corresponding to those states
Should be possible. Give me a minute...
Title: Re: Excel Problem
Post by: dealfinder85 on March 02, 2015, 04:43:02 PM
Should be possible. Give me a minute...
figured out a less technical way to do it
thanks though
Title: Re: Excel Problem
Post by: etech0 on March 02, 2015, 04:44:00 PM
figured out a less technical way to do it
thanks though
NP. I'm curious now, so I'll keep looking :)

BTW you might want to look into sumifs
Title: Re: Excel Problem
Post by: lubaby on March 02, 2015, 04:44:47 PM
figured out a less technical way to do it
thanks though
Added a new column and deleted the ones you don't want?
Title: Re: Excel Problem
Post by: etech0 on March 02, 2015, 04:49:35 PM
Got it - your small table should look something like this:

State  State  State
<>NY <>NJ  <>CT

etc, for all the states you don't want
Title: Re: Excel Problem
Post by: dealfinder85 on March 02, 2015, 04:54:27 PM
Got it - your small table should look something like this:

State  State  State
<>NY <>NJ  <>CT

etc, for all the states you don't want
thanks
Title: Re: Excel Problem
Post by: PTU on March 02, 2015, 04:55:08 PM
in a sumif, i want to add up all the values for certain states on the list, but im excluding a few. is there a function to nest inside the sumif that i can use for this to list the few im excluding?
thanks
Title: Re: Excel Problem
Post by: lubaby on March 19, 2015, 09:57:53 AM
have a few 100K rows and i need to convert a column from text to number
i know if you highlight them then that thing pops up where you can, but that keeps freezing my excel
another option?
Make a cell with the number 1 in it, copy that cell, then do paste special over the entire column, there should be an option to Multiply. Should work.
Title: Re: Excel Problem
Post by: dealfinder85 on March 19, 2015, 10:04:59 AM
Make a cell with the number 1 in it, copy that cell, then do paste special over the entire column, there should be an option to Multiply. Should work.
thanks
Title: Re: Excel Problem
Post by: smurf on March 20, 2015, 01:37:04 AM
Make a cell with the number 1 in it, copy that cell, then do paste special over the entire column, there should be an option to Multiply. Should work.
use text to columns. Don't select a delimiter and choose the cell type you want.
Title: Re: Excel Problem
Post by: jackofall on April 30, 2015, 06:50:07 PM
I overwrote data on an excel sheet how do I restore to a previous version? I right-clicked on the file and there is no previous version saved, any suggestions?
Title: Re: Excel Problem
Post by: etech0 on April 30, 2015, 08:42:06 PM
I overwrote data on an excel sheet how do I restore to a previous version? I right-clicked on the file and there is no previous version saved, any suggestions?
I'm assuming you tried control-z?
Title: Re: Excel Problem
Post by: jackofall on April 30, 2015, 08:59:36 PM
I'm assuming you tried control-z?
I saved the wrong data by mistake.
Title: Re: Excel Problem
Post by: menachem_m on May 17, 2015, 05:22:27 PM
Is there any formula to calculate an average daily balance for a set date range? When downloading BOFA data to excel, it only provides a row for days with activity, so I can't just do a simple average function. Or a quick way to 'fill in' all the missing days with the same balance as the previous day?
Title: Re: Excel Problem
Post by: lubaby on May 17, 2015, 07:46:34 PM
Is there any formula to calculate an average daily balance for a set date range? When downloading BOFA data to excel, it only provides a row for days with activity, so I can't just do a simple average function. Or a quick way to 'fill in' all the missing days with the same balance as the previous day?
That would be simpler. Done so many times.

Not by a computer now, but IIRC the logic is "If cell is empty, use cell above it, otherwise use cell". Try in a new column next to the column with missing data.

Will check back once by a computer with an exact formula.
Title: Re: Excel Problem
Post by: MarkS on May 17, 2015, 08:42:37 PM
1. Select the range that contains blank cells you need to fill.
2. Click Home > Find & Select > Go To Special…, and a Go To Special dialog box will appear, then check Blanks option.

3.Click OK, and all of the blank cells have been selected. Then input the formula “=A2” into active cell A3 without changing the selection. This cell reference can be changed as you need.

4. Press Ctrl + Enter, Excel will copy the respective formula to all blank cells.

5. At this point, the filled contents are formulas, and we need to convert the formals to values. Then select the whole range, right-click to choose Copy, and then press Ctrl + Alt + V to active the Paste Special… dialog box. And select Values option from Paste, and select None option from Operation.

6.Then click OK. And all of the formulas have been converted to values.
Title: Re: Excel Problem
Post by: jackofall on June 02, 2015, 03:54:13 PM
I have a set of data and would like any tips of the best way to present it so one can see the trends easily.
Column A - Month
Column B - Payee
Column C - Service Provided (there are only 3 choices)
Column D - number of items
Column E - Total cost of items

I would prefer some sort of chart.

Any help is greatly appreciated.
TIA
Title: Re: Excel Problem
Post by: lubaby on June 02, 2015, 05:22:32 PM
I have a set of data and would like any tips of the best way to present it so one can see the trends easily.
Column A - Month
Column B - Payee
Column C - Service Provided (there are only 3 choices)
Column D - number of items
Column E - Total cost of items

I would prefer some sort of chart.

Any help is greatly appreciated.
TIA
Excel has a great Pivot Chart feature built in. Should be exactly what you're looking for.
Title: Re: Excel Problem
Post by: jackofall on June 02, 2015, 06:22:19 PM
Excel has a great Pivot Chart feature built in. Should be exactly what you're looking for.
Thanks, no idea why I never saw the pivot chart option.
Title: Re: Excel Problem
Post by: yesitsme on June 02, 2015, 07:39:05 PM
Thanks, no idea why I never saw the pivot chart option.
Live & Learn (http://www.excel-easy.com/data-analysis/pivot-tables.html)
Title: Re: Excel Problem
Post by: jackofall on June 09, 2015, 05:36:21 PM
Is there a way to paste a formula into multiple cells that already have data. For Example - A1:A120 has random numbers in each cell I want to add a formula to each cell in addition to the number in the cell currently.
TIA
Title: Re: Excel Problem
Post by: MarkS on June 09, 2015, 05:42:25 PM
Is there a way to paste a formula into multiple cells that already have data. For Example - A1:A120 has random numbers in each cell I want to add a formula to each cell in addition to the number in the cell currently.
TIA
Say your formula is 1+1. In B1 enter =A1+1+1 and drag down
Title: Re: Excel Problem
Post by: jackofall on June 09, 2015, 05:55:47 PM
Say your formula is 1+1. In B1 enter =A1+1+1 and drag down
Thanks
Title: Re: Excel Problem
Post by: PTU on July 02, 2015, 02:05:30 PM
Have a table, columns are the names and rows are months.

How can I convert this to a list where that will have all the months in column A and the name in B? So it will list

 Jan sam transaction
 Jan jack transaction
 feb chaim transaction
 feb shemerel transaction
Title: Re: Excel Problem
Post by: skyguy918 on July 02, 2015, 03:19:06 PM
Have a table, columns are the names and rows are months.

How can I convert this to a list where that will have all the months in column A and the name in B? So it will list

 Jan sam transaction
 Jan jack transaction
 feb chaim transaction
 feb shemerel transaction
Easiest thing to do would be to create the first 2 columns yourself by copy and pasting, then use INDEX/MATCH in the 3rd column to pull in the transaction for each combination.
Title: Re: Excel Problem
Post by: AJK on July 21, 2015, 10:22:23 PM
How would I sort a pivot table by criteria that is not in the pivot table itself, but IS in the source data?

Looking to sort first column by date, but date is not included in pivot table, but it in source data.
Title: Re: Excel Problem
Post by: shoobi on July 22, 2015, 11:56:32 AM
Try adding it to the pivot table in a non-altering way? i.e. add the date field to the "filter" section of the pivot table and keep it selected to "all"

ETA: yeah doesn't seem like a solution
Title: Re: Excel Problem
Post by: AJK on July 22, 2015, 12:02:18 PM
Try adding it to the pivot table in a non-altering way? i.e. add the date field to the "filter" section of the pivot table and keep it selected to "all"

Filter would only do that, "filter."

I need it sorted by a date that's present in the source data.

From my searching, I'm not sure it can be done.
Title: Re: Excel Problem
Post by: EJB on July 22, 2015, 02:00:58 PM
Filter would only do that, "filter."

I need it sorted by a date that's present in the source data.

From my searching, I'm not sure it can be done.

Don't think it's possible without VBA or presorting data, unless you are ok adding a hidden or invisible column.
Title: Re: Excel Problem
Post by: AJK on July 22, 2015, 03:31:14 PM
That's what I figured.

What do you mean by presorting data or adding hidden column?
Title: Re: Excel Problem
Post by: Ergel on July 22, 2015, 05:57:28 PM
That's what I figured.

What do you mean by presorting data or adding hidden column?
Presorting data, he means sorting the source table
Hidden column would mean adding an extra column with the date in your pivot table and sorting based on that. However, being that the column is not present in your pivot table, he assumes that you don't want to display the date in your pivot table. As such, he is recommending hiding that column.
Title: Re: Excel Problem
Post by: PTU on July 23, 2015, 04:53:12 PM
That's what I figured.

What do you mean by presorting data or adding hidden column?
You should be able to sort pivot tbl by source data. Maybe right click and see if the option is there
Title: Re: Excel Problem
Post by: yesitsme on July 23, 2015, 11:20:25 PM
Does anyone Here know the "Solver" Password?
Title: Re: Excel Problem
Post by: jackofall on July 23, 2015, 11:25:00 PM
To confirm. If I have a sheet with rows of info for ex. A name b address c transaction date etc. if I select all the data and hit remove duplicates it will only remove a row if all the data in the row matches to another row, is this correct?
Title: Re: Excel Problem
Post by: bubbles on July 24, 2015, 12:03:15 AM
To confirm. If I have a sheet with rows of info for ex. A name b address c transaction date etc. if I select all the data and hit remove duplicates it will only remove a row if all the data in the row matches to another row, is this correct?

It will give you the option to choose which columns need to match to be considered duplicates. Default is that all the columns need to match, like you are saying.
Title: Re: Excel Problem
Post by: jackofall on July 24, 2015, 12:10:33 AM
It will give you the option to choose which columns need to match to be considered duplicates. Default is that all the columns need to match, like you are saying.
Thanks.
Title: Re: Excel Problem
Post by: yesitsme on July 24, 2015, 12:59:38 AM
To create a sheet for each month in VBA
Code: [Select]
Sub createbooks()Dim x As IntegerDim i As Integer For i = 1 To 11If i = ActiveWorkbook.Sheets.Count Then     ActiveWorkbook.Sheets.Add    End IfNext For x = 1 To ActiveWorkbook.Sheets.Count   Sheets(x).Name = MonthName(x)NextEnd Sub
Title: Re: Excel Problem
Post by: PTU on July 24, 2015, 09:25:37 AM
To confirm. If I have a sheet with rows of info for ex. A name b address c transaction date etc. if I select all the data and hit remove duplicates it will only remove a row if all the data in the row matches to another row, is this correct?
When in doubt, always do your work on a duplicate tab. Always.
Title: Re: Excel Problem
Post by: yesitsme on July 24, 2015, 04:01:22 PM
How do I bind text boxes from UserForm to Field Range? Lets say the value of 5 Text boxes should be bound to A1:A5 and Down (B1:B5, and so on)
Title: Re: Excel Problem
Post by: PTU on July 24, 2015, 04:36:41 PM
How do I bind text boxes from UserForm to Field Range? Lets say the value of 5 Text boxes should be bound to A1:A5 and Down (B1:B5, and so on)
merge and center button on the home ribbon?
Title: Re: Excel Problem
Post by: yesitsme on July 24, 2015, 04:52:42 PM
merge and center button on the home ribbon?
Code: [Select]
Sub Form()'' Form Macro' Activate Form'' Keyboard Shortcut: Ctrl+f'Range(????).Select   <<<<< HERE is my problem       ActiveSheet.ShowDataFormEnd Sub
Title: Re: Excel Problem
Post by: yesitsme on July 26, 2015, 10:00:31 PM
Code: [Select]
Sub Form()'' Form Macro' Activate Form'' Keyboard Shortcut: Ctrl+f'Range(????).Select   <<<<< HERE is my problem       ActiveSheet.ShowDataFormEnd Sub
And here (http://stackoverflow.com/a/31642837/4535386) is the solution
Title: Re: Excel Problem
Post by: PTU on August 07, 2015, 11:35:52 AM
HELP.

Right click on a tab does nothing! no menu, cant move tabs, color etc.
Title: Re: Excel Problem
Post by: JoeyShmoe on August 07, 2015, 11:44:11 AM
HELP.

Right click on a tab does nothing! no menu, cant move tabs, color etc.

Based on this question and answers (http://answers.microsoft.com/en-us/office/forum/office_2007-excel/mouse-right-click-no-longer-working-in-excel/36a5d05c-b410-4cac-98c6-86839169b950?auth=1), is the file locked? If not, try the other answer
Quote
From your worksheet, press Alt + F11.   careful, that's ALT + F11
Next press Ctrl+G
Type in (or copy here and paste)
Application.CommandBars("Cell").Reset
Then press the Enter key.
Title: Re: Excel Problem
Post by: PTU on August 07, 2015, 11:50:13 AM
Based on this question and answers (http://answers.microsoft.com/en-us/office/forum/office_2007-excel/mouse-right-click-no-longer-working-in-excel/36a5d05c-b410-4cac-98c6-86839169b950?auth=1), is the file locked? If not, try the other answer
its just the tabs that are not right clickable, the cells are fine
Title: Re: Excel Problem
Post by: JoeyShmoe on August 07, 2015, 11:55:07 AM
its just the tabs that are not right clickable, the cells are fine

So try
Code: [Select]
Application.CommandBars("Ply").Enabled = TrueI just tested False and I couldn't right click on the tabs and True reenabled it (from this (http://stackoverflow.com/questions/494926/right-click-on-sheet-tabs-disabled-in-excel) SO)
Title: Re: Excel Problem
Post by: PTU on August 07, 2015, 12:36:33 PM
So try
Code: [Select]
Application.CommandBars("Ply").Enabled = TrueI just tested False and I couldn't right click on the tabs and True reenabled it (from this (http://stackoverflow.com/questions/494926/right-click-on-sheet-tabs-disabled-in-excel) SO)
Yep , that worked.

Thanks
Title: Re: Excel Problem
Post by: alpicone on August 12, 2015, 09:22:57 AM
I have a file that has multiple tabs where the data and formatting in each tab is the same. I have some groupings within each tab that groups some columns  and rows together to exclude that information when printing.

Is there any way to expand or collapse the groupings in each sheet by grouping the tabs together?
Title: Re: Excel Problem
Post by: smurf on August 12, 2015, 10:11:22 AM
I have workbook where sheet 1 contains the inventory where each row is another unique entry. So column A is "Style" B is "option" and C is "Quantity"
On sheet 1 "style" is repeated on every row for every variant
Sheet 2 has the price, however it is formatted differently. Each style is combined onto one row with additional columns for each variant so
Col A is "style" B is "Option1Name" C is "Option1Price" D is "Option2Name" E is "Option2price"

Now I want to add the correct price to sheet one which would mean Getting the row number based on looking up sheet1 Col A compared to Sheet 2 Col A but for the column I'll have to look up Sheet 1 Column B on the Row that was just found on sheet 2

Any way to do this without macros?

Thanks
Title: Re: Excel Problem
Post by: skyguy918 on August 12, 2015, 12:15:51 PM
I have workbook where sheet 1 contains the inventory where each row is another unique entry. So column A is "Style" B is "option" and C is "Quantity"
On sheet 1 "style" is repeated on every row for every variant
Sheet 2 has the price, however it is formatted differently. Each style is combined onto one row with additional columns for each variant so
Col A is "style" B is "Option1Name" C is "Option1Price" D is "Option2Name" E is "Option2price"

Now I want to add the correct price to sheet one which would mean Getting the row number based on looking up sheet1 Col A compared to Sheet 2 Col A but for the column I'll have to look up Sheet 1 Column B on the Row that was just found on sheet 2

Any way to do this without macros?

Thanks
Do they actually say Option1Name, Option2Name, etc? Meaning, do they have the number in them, or is it actual names? And if it's names, how is it set up exactly?
Title: Re: Excel Problem
Post by: smurf on August 12, 2015, 12:58:41 PM
I have workbook where sheet 1 contains the inventory where each row is another unique entry. So column A is "Style" B is "option" and C is "Quantity"
On sheet 1 "style" is repeated on every row for every variant
Sheet 2 has the price, however it is formatted differently. Each style is combined onto one row with additional columns for each variant so
Col A is "style" B is "Option1Name" C is "Option1Price" D is "Option2Name" E is "Option2price"

Now I want to add the correct price to sheet one which would mean Getting the row number based on looking up sheet1 Col A compared to Sheet 2 Col A but for the column I'll have to look up Sheet 1 Column B on the Row that was just found on sheet 2

Any way to do this without macros?

Thanks
Shout out and a thanks to bubbles for a nice working formula
Title: Re: Excel Problem
Post by: etech0 on August 12, 2015, 01:06:17 PM
Shout out and a thanks to bubbles for a nice working formula
can you post the formula?
(just curious)
Title: Re: Excel Problem
Post by: Zevi16 on August 20, 2015, 05:55:09 PM
is there a way to create a hyperlink to a folder. Not a file! I would like to click on the link and itll open the folder to view the documents in it.
Title: Re: Excel Problem
Post by: etech0 on August 20, 2015, 06:30:35 PM
is there a way to create a hyperlink to a folder. Not a file! I would like to click on the link and itll open the folder to view the documents in it.
Title: Re: Excel Problem
Post by: yesitsme on August 20, 2015, 11:51:33 PM

With friendly name
Title: Re: Excel Problem
Post by: etech0 on August 21, 2015, 12:09:53 AM

With friendly name

While we're on the topic, do you get a security warning when you click the link? Any way to disable it just for links within my computer?
Title: Re: Excel Problem
Post by: yesitsme on August 21, 2015, 01:08:08 AM
Title: Re: Excel Problem
Post by: Zevi16 on August 21, 2015, 06:26:57 AM
Thanx a mil.. worked.... no security warning tho...
I'm using open office database but i think its the same formulas generally...
I have another q. Is there a way to click on a link on the spreadsheet and directed to chrome-gmail-compose message-and have certain attachments waiting there for me(or some kind of canned response)
Title: Re: Excel Problem
Post by: Zevi16 on August 21, 2015, 06:31:23 AM

With friendly name
btw on open office its not a comma its a semi colon and no extra quotations . like this =HYPERLINK("C:\path\to\your\folder";My Folder)
Title: Re: Excel Problem
Post by: jackofall on August 31, 2015, 01:14:23 PM
I have rows of data which occurred at different times. Column C has the time stamp, any formula i can put in Column D which will give a number based on the order these events occurred. For example 30 events occurred in June each on separate day can a formula calculate that the row that has June 10th is the 10th item in chronological order?

TIA
Title: Re: Excel Problem
Post by: mancunian on August 31, 2015, 01:16:06 PM
You want to return which row 'June 10' shows in?
Use MATCH

=MATCH('June 10', RANGE, 0)
Title: Re: Excel Problem
Post by: skyguy918 on August 31, 2015, 01:27:38 PM
I have rows of data which occurred at different times. Column C has the time stamp, any formula i can put in Column D which will give a number based on the order these events occurred. For example 30 events occurred in June each on separate day can a formula calculate that the row that has June 10th is the 10th item in chronological order?

TIA
That would be RANK():
https://support.office.com/en-us/article/RANK-function-6a2fc49d-1831-4a03-9d8c-c279cf99f723

I believe that's what you're asking for.
Title: Re: Excel Problem
Post by: jackofall on August 31, 2015, 01:36:55 PM
That would be RANK():
https://support.office.com/en-us/article/RANK-function-6a2fc49d-1831-4a03-9d8c-c279cf99f723

I believe that's what you're asking for.
Nice! Perfect! TYVM
Title: Re: Excel Problem
Post by: Zevi16 on September 02, 2015, 02:28:09 AM
Is there a way to change the name of the columns, instaed of 'a' 'b' 'c'. I made a row at the top and i froze it but the problem is, whenever i add data and sort by a-z it gets put to the bottom and the data in that row won't stay frozen, only the actual row (now with random data)
Title: Re: Excel Problem
Post by: lubaby on September 02, 2015, 07:51:57 AM
Is there a way to change the name of the columns, instaed of 'a' 'b' 'c'. I made a row at the top and i froze it but the problem is, whenever i add data and sort by a-z it gets put to the bottom and the data in that row won't stay frozen, only the actual row (now with random data)
Unfreeze the row. Make a table with all your data in it.

Shortcut is CTRL + T (highlight all your data, then do CTRL + T. If all your date is in columns/rows next to each other, you should be able to just click on a my box, then CTRL + T should do the trick automatically.)

Makes it much simpler for sorting and filtering as well.
Title: Re: Excel Problem
Post by: skyguy918 on September 02, 2015, 10:08:00 AM
Is there a way to change the name of the columns, instaed of 'a' 'b' 'c'. I made a row at the top and i froze it but the problem is, whenever i add data and sort by a-z it gets put to the bottom and the data in that row won't stay frozen, only the actual row (now with random data)
Unfreeze the row. Make a table with all your data in it.

Shortcut is CTRL + T (highlight all your data, then do CTRL + T. If all your date is in columns/rows next to each other, you should be able to just click on a my box, then CTRL + T should do the trick automatically.)

Makes it much simpler for sorting and filtering as well.
Don't use the Sort A to Z/Z to A shortcuts.

Either use Custom Sort and check off My data has headers, or add a Filter to the whole range (which automatically makes the top row the column headers and doesn't move them) and sort through the Filter button on the column you want.

lubaby's table suggestion essentially adds the Filter, as well as some formatting. If you want the formatting, the table is quickest due to the shortcut lubaby mentioned.
Title: Re: Excel Problem
Post by: User6669 on September 08, 2015, 12:38:29 PM
Is there a way to make a macro, in a Google spreadsheet?
Title: Re: Excel Problem
Post by: skyguy918 on September 08, 2015, 01:21:32 PM
Is there a way to make a macro, in a Google spreadsheet?
Title: Re: Excel Problem
Post by: mancunian on September 08, 2015, 01:30:29 PM
How can I upload to an FTP location from VBA?

I tried

but obviously that's too simple to work. Do I need to enable a reference library? Do I need to set paramiters before hand?

Maybe someone here can write me a snippet which can work? I've googled a lot and all the answers are above my paygrade.

thanks
Title: Re: Excel Problem
Post by: DanH on September 08, 2015, 05:24:02 PM
How can I upload to an FTP location from VBA?

I tried

but obviously that's too simple to work. Do I need to enable a reference library? Do I need to set paramiters before hand?

Maybe someone here can write me a snippet which can work? I've googled a lot and all the answers are above my paygrade.

thanks
It's a bit annoying.  googling around can find you an answer.  it seems the easiest is external, i.e. to use winscp
Title: Re: Excel Problem
Post by: 1050BU on October 22, 2015, 08:57:53 AM
Is there a formal for excel to take one cell and search it against a list, and if it matches then copy the cell next to it?
Title: Re: Excel Problem
Post by: mancunian on October 22, 2015, 08:58:54 AM
Match or index match
Title: Re: Excel Problem
Post by: yoruel on October 22, 2015, 09:03:12 AM
Match or index match
or vlookup(lookup,hlookup)
Title: Re: Excel Problem
Post by: skyguy918 on October 22, 2015, 10:04:15 AM
or vlookup(lookup,hlookup)
INDEX/MATCH is cleaner and more effective for a number of reasons.

Is there a formal for excel to take one cell and search it against a list, and if it matches then copy the cell next to it?

If you can be more specific I can give you an example. Here's an example for what I assumed you were asking.

For example, if A1 is what you're looking for, column B (i'll use rows 1-20 as an example) is where you're looking to find it, and column c has the value you want to return, then the formula is:
=INDEX(C1:C20,MATCH(A1,A1:A20,0))
Title: Re: Excel Problem
Post by: churnbabychurn on October 23, 2015, 10:57:35 AM
Looking for a formula that would automatically update the date on a sheet from December 31 2014 to December 31 2015 at anytime the sheet is opened after x date.
Title: Re: Excel Problem
Post by: lubaby on October 23, 2015, 11:11:45 AM
Looking for a formula that would automatically update the date on a sheet from December 31 2014 to December 31 2015 at anytime the sheet is opened after x date.
=IF(TODAY() > 10/20/2015, "12/31/2014","12/31/2015")

May need to tweak it a bit, but that's the gist of it.
Title: Re: Excel Problem
Post by: myb821 on October 23, 2015, 11:16:10 AM
=IF(TODAY()>=DATE(2015,10,25),DATE(2015,12,31),DATE(2014,12,31))
Title: Re: Excel Problem
Post by: churnbabychurn on October 23, 2015, 11:17:28 AM
Thanks.
Need this to roll forward every year though!
Title: Re: Excel Problem
Post by: mancunian on October 23, 2015, 11:19:32 AM
=IF(TODAY()>=DATE(YEAR(TODAY()),10,25),DATE(YEAR(TODAY()),12,31),DATE(YEAR(TODAY()-1),12,31))

Or just

=DATE(IF(TODAY()>=DATE(YEAR(TODAY()),10,25),YEAR(TODAY()),YEAR(TODAY()-1)),12,31)
Title: Re: Excel Problem
Post by: skyguy918 on October 23, 2015, 11:42:28 AM
=IF(TODAY()>=DATE(YEAR(TODAY()),10,25),DATE(YEAR(TODAY()),12,31),DATE(YEAR(TODAY()-1),12,31))

Or just

=DATE(IF(TODAY()>=DATE(YEAR(TODAY()),10,25),YEAR(TODAY()),YEAR(TODAY()-1)),12,31)
This only saves 1 character, but it's a cool trick to know. Month 13, day 0 is also 12/31. So DATE(xx,13,0) is 12/31/xx.
Title: Re: Excel Problem
Post by: mancunian on October 23, 2015, 11:44:27 AM
Saves 2 characters, don't have to write '0'

=DATE(IF(TODAY()>=DATE(YEAR(TODAY()),10,25),YEAR(TODAY()),YEAR(TODAY()-1)),13,)
Title: Re: Excel Problem
Post by: etech0 on October 26, 2015, 12:23:49 PM
PSA: vlookup is NOT case sensitive. Please don't learn the hard way like I almost did...
Title: Re: Excel Problem
Post by: skyguy918 on October 26, 2015, 12:53:42 PM
PSA: vlookup is NOT case sensitive. Please don't learn the hard way like I almost did...
Yet another reason to always use INDEX/MATCH. I've literally never come across a situation where it made sense to use any of the LOOKUP functions.
Title: Re: Excel Problem
Post by: etech0 on October 26, 2015, 01:00:10 PM
Yet another reason to always use INDEX/MATCH. I've literally never come across a situation where it made sense to use any of the LOOKUP functions.
Is Index/Match always going to be an array function? IME those are much slower.
Title: Re: Excel Problem
Post by: skyguy918 on October 26, 2015, 01:42:58 PM
Is Index/Match always going to be an array function? IME those are much slower.
Nope. INDEX/MATCH is always at least as fast as the LOOKUP functions, and often much faster. Here's one of many articles google will find you on the topic:

http://exceluser.com/formulas/why-index-match-is-better-than-vlookup.htm
Title: Re: Excel Problem
Post by: lubaby on October 26, 2015, 01:48:54 PM
Yet another reason to always use INDEX/MATCH. I've literally never come across a situation where it made sense to use any of the LOOKUP functions.
CMIIW, but INDEX/MATCH isn't either Case Sensitive.
Title: Re: Excel Problem
Post by: skyguy918 on October 26, 2015, 01:52:39 PM
CMIIW, but INDEX/MATCH isn't either Case Sensitive.
Correct, you need to add EXACT in there. The same is true for the LOOKUPS, but that combo will be much slower than it will be with INDEX/MATCH.

ETA: Here is the syntax - https://support.microsoft.com/en-us/kb/214264
Title: Re: Excel Problem
Post by: mancunian on October 26, 2015, 02:37:32 PM
Lookups are used when one array is a variable. If you're looking for a column relative to a reference.

Offhand I can say I've used it when creating permutations.
Title: Re: Excel Problem
Post by: mancunian on October 28, 2015, 12:00:33 PM
Is there any way to make the array in a MATCH function a variable based on a reference? Or something else to accomplish the same
I know I can use INDIRECT but there's got to be a way to use a reference number of column within array (as is done in VLOOKUP for index column, I want to do for lookup column)...

=INDEX($A:$A,MATCH($B1,$C:$C,0)) I want: =INDEX($A:$A,MATCH($B1,[Lookup Array Column Number],0))

Edit:
This is the INDIRECT. How long do you wait when excel crashes BTW?
=INDEX('[102615.xlsx]FBA1'!$C:$C,MATCH(ROW()-12,INDIRECT("'[102615.xlsx]FBA1'!$"&CHAR(MATCH(LEFT(RIGHT(B$1,6),5),'[102615.xlsx]FBA1'!$N$1:$U$1,0)+77)&":$"&CHAR(MATCH(LEFT(RIGHT(B$1,6),5),'[102615.xlsx]FBA1'!$N$1:$U$1,0)+77)),0))
Title: Re: Excel Problem
Post by: skyguy918 on October 28, 2015, 12:22:59 PM
Is there any way to make the array in a MATCH function a variable based on a reference? Or something else to accomplish the same
I know I can use INDIRECT but there's got to be a way to use a reference number of column within array (as is done in VLOOKUP for index column, I want to do for lookup column)...

=INDEX($A:$A,MATCH($B1,$C:$C,0)) I want: =INDEX($A:$A,MATCH($B1,[Lookup Array Column Number],0))

Edit:
This is the INDIRECT. How long do you wait when excel crashes BTW?
=INDEX('[102615.xlsx]FBA1'!$C:$C,MATCH(ROW()-12,INDIRECT("'[102615.xlsx]FBA1'!$"&CHAR(MATCH(LEFT(RIGHT(B$1,6),5),'[102615.xlsx]FBA1'!$N$1:$U$1,0)+77)&":$"&CHAR(MATCH(LEFT(RIGHT(B$1,6),5),'[102615.xlsx]FBA1'!$N$1:$U$1,0)+77)),0))
If you have to read inside the text of another cell just to figure out which array you want your MATCH to look in, you basically need INDIRECT. What's the issue with the formula you created? It doesn't work?

Also, you're probably better off moving the INDIRECT function into a named range.
Title: Re: Excel Problem
Post by: mancunian on October 28, 2015, 12:27:42 PM
My INDIRECT is actually working like a charm now!
The first time it crashed my excel, but once I restarted its ok.
I never use named ranges. Don't know why but seems to me the same as hard coding variables.

Thanks
Title: Re: Excel Problem
Post by: skyguy918 on October 28, 2015, 12:48:32 PM
My INDIRECT is actually working like a charm now!
The first time it crashed my excel, but once I restarted its ok.
I never use named ranges. Don't know why but seems to me the same as hard coding variables.

Thanks
It's very much not the same as hardcoding variables, and if you're using this function more than once, it'll save time in Excel because that value is already calculated. I'm not 100% sure that will hold true for INDIRECT, which is a volatile function, but there are many, many instances where named ranges add calculation speed, clarity of understanding, coding speed, etc.
Title: Re: Excel Problem
Post by: etech0 on October 29, 2015, 01:57:22 PM
every so often when I move excel from my main (laptop) screen to my external monitor, I have an issue. Excel itself will be full screen, but the spreadsheet (and any that I open) only take up a portion of the screen.

I tried dragging the corners to make the spreadsheet take up more screen, but they won't drag

Any ideas how to keep this from happening? Closing and reopening excel usually fixes it, but it's a pain to reopen all my files.

Screenshot of the issue: (it's large so I didn't embed it)
http://i.imgur.com/82XAfeg.png

Thanks!

PS: I don't remember this happening before I got Windows 10. Don't know if it's related, though.
Title: Re: Excel Problem
Post by: skyguy918 on October 29, 2015, 02:09:26 PM
every so often when I move excel from my main (laptop) screen to my external monitor, I have an issue. Excel itself will be full screen, but the spreadsheet (and any that I open) only take up a portion of the screen.

I tried dragging the corners to make the spreadsheet take up more screen, but they won't drag

Any ideas how to keep this from happening? Closing and reopening excel usually fixes it, but it's a pain to reopen all my files.

Screenshot of the issue: (it's large so I didn't embed it)
http://i.imgur.com/82XAfeg.png

Thanks!

PS: I don't remember this happening before I got Windows 10. Don't know if it's related, though.
Did you try maximizing (Ctrl+F10)?
Title: Re: Excel Problem
Post by: tageed-lee on October 29, 2015, 02:15:18 PM
I tried dragging the corners to make the spreadsheet take up more screen, but they won't drag

Any ideas how to keep this from happening?

Did you try pressing this?
Title: Re: Excel Problem
Post by: skyguy918 on October 29, 2015, 02:19:40 PM
Did you try pressing this?
You can see from the picture that those buttons are hidden under the formula bar. It becomes difficult or impossible to move the window to get at them. That's why I suggested the shortcut for maximize current workbook.
Title: Re: Excel Problem
Post by: tageed-lee on October 29, 2015, 02:20:57 PM
You can see from the picture that those buttons are hidden under the formula bar. It becomes difficult or impossible to move the window to get at them. That's why I suggested the shortcut for maximize current workbook.

Ah yes.. now i see... Ya Ctrl+F10 should help...
Title: Re: Excel Problem
Post by: skyguy918 on October 29, 2015, 02:28:26 PM
You can see from the picture that those buttons are hidden under the formula bar. It becomes difficult or impossible to move the window to get at them. That's why I suggested the shortcut for maximize current workbook.
Actually, I just tested this out too. If you put your cursor along the sides, you get the horizontal arrows. But if you move as far to the top as possible, you should get the diagonal arrows just before you cross over onto the formula bar. Then you can click and drag downward to bring the maximize/minimize/etc. buttons back into view.
Title: Re: Excel Problem
Post by: etech0 on October 29, 2015, 03:19:14 PM
Did you try maximizing (Ctrl+F10)?
Did you try pressing this?
They both do the same thing - make the spreadsheet smaller within the excel window. It seems that it is already "maximized".

How it looks after pressing Ctrl-F10: http://i.imgur.com/BNoCUU2.png
Title: Re: Excel Problem
Post by: skyguy918 on October 29, 2015, 03:39:02 PM
They both do the same thing - make the spreadsheet smaller within the excel window. It seems that it is already "maximized".

How it looks after pressing Ctrl-F10: http://i.imgur.com/BNoCUU2.png
It's not maximized (look at the icon) for some reason. Try that combo several times. This guy seems to have had similar issues:
http://dailydoseofexcel.com/archives/2013/06/18/workbook-window-states-maximized-restored-minimized-limbo/
Title: Re: Excel Problem
Post by: churnbabychurn on October 29, 2015, 03:51:52 PM
They both do the same thing - make the spreadsheet smaller within the excel window. It seems that it is already "maximized".

How it looks after pressing Ctrl-F10: http://i.imgur.com/BNoCUU2.png
Try messing around with the view tab, arrange all etc
Title: Re: Excel Problem
Post by: etech0 on October 29, 2015, 03:55:55 PM
It's not maximized (look at the icon) for some reason.
Are you referring to my first screenshot, or the second?
http://dailydoseofexcel.com/archives/2013/06/18/workbook-window-states-maximized-restored-minimized-limbo/
I tried what it said in the link, but no dice. It doesn't seem to be the same problem either.
Title: Re: Excel Problem
Post by: mancunian on October 29, 2015, 04:12:59 PM
Maybe try changing the resolution on your monitor, then change back after you can access that button
Or try resizing before moving across screens (not maximize just resize)

Just taking shots in the dark here - probably won't work...
Title: Re: Excel Problem
Post by: etech0 on October 29, 2015, 04:16:39 PM
Maybe try changing the resolution on your monitor, then change back after you can access that button
Or try resizing before moving across screens (not maximize just resize)

Just taking shots in the dark here - probably won't work...
which button am i trying to access? I can click the maximize button for that file, but it just minimizes it
Title: Re: Excel Problem
Post by: mancunian on October 29, 2015, 04:22:28 PM
Ah wasn't understanding because in one picture you do indeed have those buttons.
Whatever - I can't use the old Excel for a similar reason - need everything in separate windows. If only you could put separate sheets within a workbook in separate windows like Google Docs.

BTW AFAIK if you sign up for Office 365 and cancel subscription the programs still work I think.
Title: Re: Excel Problem
Post by: etech0 on October 29, 2015, 05:52:08 PM
Ah wasn't understanding because in one picture you do indeed have those buttons.
Whatever - I can't use the old Excel for a similar reason - need everything in separate windows. If only you could put separate sheets within a workbook in separate windows like Google Docs.

BTW AFAIK if you sign up for Office 365 and cancel subscription the programs still work I think.
Right - that screenshot was showing what happens when I press crtl-f12.

btw, if  you alt-rightclick, or click with the mouse wheel, on the excel icon in the taskbar, you'll get another excel window in which you can create/open files. If you do it this way you can view 2 side by side.
Title: Re: Excel Problem
Post by: tageed-lee on October 29, 2015, 06:28:24 PM
If you do it this way you can view 2 side by side.

The day i learned that i went crazy... Gotta love learning something new in excel...
Title: Re: Excel Problem
Post by: mancunian on October 29, 2015, 06:45:46 PM
Does that new window run in a separate process?
Why don't they make it that when it crashes it doesn't ruin the whole thing as in chrome
Title: Re: Excel Problem
Post by: churnbabychurn on October 29, 2015, 07:23:22 PM
Does that new window run in a separate process?
Why don't they make it that when it crashes it doesn't ruin the whole thing as in chrome
You can run two instances of excel. Google it.
Title: Re: Excel Problem
Post by: myb821 on October 29, 2015, 07:43:26 PM
Does that new window run in a separate process?
Why don't they make it that when it crashes it doesn't ruin the whole thing as in chrome
You can run two instances of excel. Google it.
yup if you have an open instance of excel if you try and open a new one from the start menu you can open a second instance
Title: Re: Excel Problem
Post by: churnbabychurn on October 29, 2015, 08:02:38 PM
But ime when excel crashes, both instances crash.
Title: Re: Excel Problem
Post by: myb821 on October 29, 2015, 08:11:52 PM
But ime when excel crashes, both instances crash.
I believe I have seen otherwise but cant really remember
Title: Re: Excel Problem
Post by: etech0 on October 29, 2015, 08:14:42 PM
Does that new window run in a separate process?
Why don't they make it that when it crashes it doesn't ruin the whole thing as in chrome
don't know
The day i learned that i went crazy... Gotta love learning something new in excel...
yup. it was almost as exciting as pinned browser tabs!
Title: Re: Excel Problem
Post by: aygart on October 30, 2015, 09:39:33 AM
Does that new window run in a separate process?
According to task manager it starts as a separate process and then they merge together.
Title: Re: Excel Problem
Post by: mancunian on October 30, 2015, 09:45:56 AM
In windows 8 it always looks like workbooks separate process in task manager but when it crashes the whole thing crashes. I'll see what happens this way.... Unless someone here knows
Title: Re: Excel Problem
Post by: aygart on October 30, 2015, 10:01:56 AM
See here from MS
https://blogs.office.com/2013/06/03/opening-workbooks-by-running-separate-instances-of-excel/
Title: Re: Excel Problem
Post by: skyguy918 on October 30, 2015, 10:11:00 AM
There are significant limitations to running 2 instances of excel, especially if you want them to be able to interact at all. The biggest one for me is that copy/paste is treated as coming from an outside program - ie no paste formula, format, etc. The only time I use 2 instances is when the first is busy running a macro that will take a while.
Title: Re: Excel Problem
Post by: skyguy918 on October 30, 2015, 10:15:01 AM
There are significant limitations to running 2 instances of excel, especially if you want them to be able to interact at all. The biggest one for me is that copy/paste is treated as coming from an outside program - ie no paste formula, format, etc. The only time I use 2 instances is when the first is busy running a macro that will take a while.
BTW, someone at my company came up with a really cool trick to make use of the multiple instance concept. Basically, you can't normally make use of all your CPU power (ie multiple cores) from a macro. So let's say you have a macro that's supposed to loop through a bunch of 'cases' and create output for each set of 'case' inputs. Instead of just letting it loop, the macro opens multiple instances of Excel and assigns 'cases' to each one for processing, then stores all the results in the sames spot. If you have 4 cores, you can finish the run of 'cases' close to 400% faster.
Title: Re: Excel Problem
Post by: etech0 on October 30, 2015, 10:50:00 AM
BTW, someone at my company came up with a really cool trick to make use of the multiple instance concept. Basically, you can't normally make use of all your CPU power (ie multiple cores) from a macro. So let's say you have a macro that's supposed to loop through a bunch of 'cases' and create output for each set of 'case' inputs. Instead of just letting it loop, the macro opens multiple instances of Excel and assigns 'cases' to each one for processing, then stores all the results in the sames spot. If you have 4 cores, you can finish the run of 'cases' close to 400% faster.
COOL!

I'd love to see sample code, if you have.
Title: Re: Excel Problem
Post by: skyguy918 on October 30, 2015, 11:15:57 AM
COOL!

I'd love to see sample code, if you have.
Sorry, it's considered proprietary. But others have done it online, if you spend some time googling it you'll probably find an example.
Title: Re: Excel Problem
Post by: mancunian on October 30, 2015, 11:18:54 AM
That is very cool. BTW why in the world do computers not make use of the processors? It makes no sense to me at all that work is not allocated properly and we have to buy better computers.

I just kept my old computer on my desk and when my computer gets stuck I turn and work there
Title: Re: Excel Problem
Post by: etech0 on October 30, 2015, 12:30:09 PM
Sorry, it's considered proprietary. But others have done it online, if you spend some time googling it you'll probably find an example.
ok, one day when I actually need it :)

Thanks!
Title: Re: Excel Problem
Post by: skyguy918 on October 30, 2015, 12:39:11 PM
That is very cool. BTW why in the world do computers not make use of the processors? It makes no sense to me at all that work is not allocated properly and we have to buy better computers.

I just kept my old computer on my desk and when my computer gets stuck I turn and work there
It's generally a software issue. If the software is written properly, it'll make use of all available resources. In the case of Excel, you can choose how many cores to make use of, but that only affects the workbook calcs, not macros. The basic reason for this is that Excel functions are defined and known to MS developers when they built the program, so they can optimize how tasks get spread over multiple cores. But there's no real way to make a general method for spreading VBA/Macro tasks over multiple cores, as the possibilities are unlimited.
Title: Re: Excel Problem
Post by: etech0 on November 11, 2015, 01:09:17 PM
Is there a way to have a function display whether or not a certain cell has a background color?
Title: Re: Excel Problem
Post by: skyguy918 on November 11, 2015, 01:45:02 PM
Is there a way to have a function display whether or not a certain cell has a background color?
Nope. You need a UDF. Here's one:

Function FillColor(Target As Range) As Variant
If Target.Interior.ColorIndex = -4142 Then
FillColor = True
Else
FillColor = False
End If
End Function

It has issues with refreshing when the target cell changes, but I'm sure if you google it a bit you can fix that too.

Then you'd use the formula =FillColor(A1), for example, to check whether A1 has a background color or not. -4142 is the ColorIndex for no color.
Title: Re: Excel Problem
Post by: etech0 on November 11, 2015, 06:34:31 PM
Nope. You need a UDF. Here's one:

Function FillColor(Target As Range) As Variant
If Target.Interior.ColorIndex = -4142 Then
FillColor = True
Else
FillColor = False
End If
End Function

It has issues with refreshing when the target cell changes, but I'm sure if you google it a bit you can fix that too.

Then you'd use the formula =FillColor(A1), for example, to check whether A1 has a background color or not. -4142 is the ColorIndex for no color.
cool, thanks!
Title: Re: Excel Problem
Post by: joshnuss on November 12, 2015, 10:18:07 AM
Question to all the Excel Experts. I am making a spreadsheet with a pricing structure for my company. The price depends on 2 factors quantity(3 levels of quantities) and price(2 levels). All together there are 6 different options I.E. If the price is less than 1 dollar and the quantity is 500 than the markup is this.
I used a IF(AND Function 6 times. Is there a better way?
This was Mine:
=IF(AND(A2>=500,B2<=1),B2*1.05,IF(AND(A2>=300,B2<=1),B2*1.10,IF(AND(A2>=100,B2<=1),B2*1.15,IF(AND(A2>=500,B2>1),B2*1.04,IF(AND(A2>=300,B2>1),B2*1.08,IF(AND(A2>=100,B2>1),B2*1.13," "))))))

Title: Re: Excel Problem
Post by: skyguy918 on November 12, 2015, 10:26:12 AM
Question to all the Excel Experts. I am making a spreadsheet with a pricing structure for my company. The price depends on 2 factors quantity(3 levels of quantities) and price(2 levels). All together there are 6 different options I.E. If the price is less than 1 dollar and the quantity is 500 than the markup is this.
I used a IF(AND Function 6 times. Is there a better way?
This was Mine:
=IF(AND(A2>=500,B2<=1),B2*1.05,IF(AND(A2>=300,B2<=1),B2*1.10,IF(AND(A2>=100,B2<=1),B2*1.15,IF(AND(A2>=500,B2>1),B2*1.04,IF(AND(A2>=300,B2>1),B2*1.08,IF(AND(A2>=100,B2>1),B2*1.13," "))))))
Your pricing is not quite formulaic (if that 1.13 would've been 1.12 you'd be in better shape), so the only other way would be a table, and then a formula to read from the table.
Title: Re: Excel Problem
Post by: mancunian on November 12, 2015, 10:29:35 AM
What he's saying is to think about making it formulaic.

I did the same thing a long time ago. What I tried to do was separate the two factors in a way where they can be combined...
So you get like a calculation that works across the board for all your options. Like for the first part (price below 1) you could do for every hundred pieces less stock raise the price 0.02

That sort of thing
Title: Re: Excel Problem
Post by: joshnuss on November 12, 2015, 10:30:53 AM
That was an example. The real pricing is based on that the company makes the same amount of money Gross profit regardless of the quantity. Meaning if for 500 units the markup is 10% than for 250 units the markup would be 20%. (just an example)
Title: Re: Excel Problem
Post by: mancunian on November 12, 2015, 10:32:44 AM
Whatever. But you get the point. You take the real factors (like target gross margin) and build that in instead of options
Title: Re: Excel Problem
Post by: skyguy918 on November 12, 2015, 10:33:52 AM
That was an example. The real pricing is based on that the company makes the same amount of money Gross profit regardless of the quantity. Meaning if for 500 units the markup is 10% than for 250 units the markup would be 20%. (just an example)
Wouldn't it be easier to add the profit as a dollar amount then? Either way, if it is in fact formulaic, I can't turn it into an Excel formula without a proper description of the pricing formula.
Title: Re: Excel Problem
Post by: joshnuss on November 12, 2015, 10:45:06 AM
Thanks guys. I guess than it is more of a math question. How to figure out that regardless of quantity the profit margin is still the same?
Title: Re: Excel Problem
Post by: skyguy918 on November 12, 2015, 11:25:42 AM
Thanks guys. I guess than it is more of a math question. How to figure out that regardless of quantity the profit margin is still the same?
You have to define your terms. Are you looking for a certain dollar amount per sale, regardless of quantity? Are you looking for a certain percentage profit (over actual cost) on each item sold?
Title: Re: Excel Problem
Post by: joshnuss on November 12, 2015, 11:36:21 AM
You have to define your terms. Are you looking for a certain dollar amount per sale, regardless of quantity? Are you looking for a certain percentage profit (over actual cost) on each item sold?
A certain Dollar amount regardless of quantity. The point is that it would really hurt to order less quantity.
Title: Re: Excel Problem
Post by: skyguy918 on November 12, 2015, 11:53:29 AM
A certain Dollar amount regardless of quantity. The point is that it would really hurt to order less quantity.
Okay. So shouldn't your formula just be [quantity * unit price + fixed profit margin]?
Title: Re: Excel Problem
Post by: joshnuss on November 12, 2015, 12:00:25 PM
Okay. So shouldn't your formula just be [quantity * unit price + fixed profit margin]?
How would that work?? The number changes depending on the price of the highest tier quantity wise. Let's say the price for 1000 units is 5 dollars than 500 and 200 units would be priced accordingly. But if the Price for 1000 units is 3 dollars than we would need to match that profit margin for 500 and 200 units too. It would have to be a formula based on the highest tier price that's how you should charge the lower amount quantity wise.
Title: Re: Excel Problem
Post by: skyguy918 on November 12, 2015, 12:05:21 PM
How would that work?? The number changes depending on the price of the highest tier quantity wise. Let's say the price for 1000 units is 5 dollars than 500 and 200 units would be priced accordingly. But if the Price for 1000 units is 3 dollars than we would need to match that profit margin for 500 and 200 units too. It would have to be a formula based on the highest tier price that's how you should charge the lower amount quantity wise.
You're really not explaining yourself well at all. What are the 2 tiers? Are those related to the actual cost of the items, to the profit margin, both?

In your numbers above, is $5 the cost for 1000 units, or is it$5 per unit?
Title: Re: Excel Problem
Post by: Jkhein on November 13, 2015, 11:10:34 AM
I'm having a autofill problem, when trying to drag down a formula, it is only copying the value not the formula.
Calculations are set to automatic,
Anybody knows how to solve?
Title: Re: Excel Problem
Post by: myb821 on November 13, 2015, 11:13:41 AM
I'm having a autofill problem, when trying to drag down a formula, it is only copying the value not the formula.
Calculations are set to automatic,
Anybody knows how to solve?
try copy paste special formula
Title: Re: Excel Problem
Post by: Jkhein on November 13, 2015, 11:32:57 AM
try copy paste special formula
just tried it, now it pastes the exact formula of the original cell formulas info (does not update to this new row's column cells info) so it doesnt do anything
Title: Re: Excel Problem
Post by: skyguy918 on November 13, 2015, 11:34:17 AM
just tried it, now it pastes the exact formula of the original cell formulas info (does not update to this new row's column cells info) so it doesnt do anything
Ie you have relative cell references that are behaving like absolute references when you copy/paste formulas?

ETA: Might be a corrupted workbook. Try saving in another format (eg .xlsx to .xlb and back again).
Title: Re: Excel Problem
Post by: Jkhein on November 13, 2015, 11:48:31 AM
Ie you have relative cell references that are behaving like absolute references when you copy/paste formulas?

ETA: Might be a corrupted workbook. Try saving in another format (eg .xlsx to .xlb and back again).
I'm a total excel newbie but that might be the term.

When doing what myb821 advised, and pasting special formula into the next row it still stays with the original formula of A1:B1 instead of updating to A2:B2
Title: Re: Excel Problem
Post by: jackofall on November 17, 2015, 05:47:37 PM
Need help to write a Macro. This is the requirement.
There is a data set in Column C and D. Check column D for "X", if a row has an "X" in column D delete all data in Column C.

Title: Re: Excel Problem
Post by: etech0 on November 17, 2015, 05:55:02 PM
Need help to write a Macro. This is the requirement.
There is a data set in Column C and D. Check column D for "X", if a row has an "X" in column D delete all data in Column C.

you could just use functions = much easier
put this in E1:

=if(d1="x","delete","")
and copy it to the whole column

Then sort by column E, select all the corresponding cells in column C, and press delete on the keyboard.

Presto!
Title: Re: Excel Problem
Post by: jackofall on November 17, 2015, 06:09:29 PM
you could just use functions = much easier
put this in E1:

=if(d1="x","delete","")
and copy it to the whole column

Then sort by column E, select all the corresponding cells in column C, and press delete on the keyboard.

Presto!
Nice! Thanks. But I need it to be a constant, I dont want to have continue to sort and delete etc.
Title: Re: Excel Problem
Post by: etech0 on November 17, 2015, 06:10:04 PM
Nice! Thanks. But I need it to be a constant, I dont want to have continue to sort and delete etc.
Ah, ok. I'll throw something together - give me a minute.
Title: Re: Excel Problem
Post by: etech0 on November 17, 2015, 06:14:42 PM
Nice! Thanks. But I need it to be a constant, I dont want to have continue to sort and delete etc.
How's this?

Code: [Select]
Sub DeleteX()For Each cell In Range([C2], [C2].End(xlDown)).Cells    If cell.Offset(0, 1).Value = "x" Then cell.ClearNextEnd Sub
Title: Re: Excel Problem
Post by: jackofall on November 17, 2015, 06:58:25 PM
How's this?

Code: [Select]
Sub DeleteX()For Each cell In Range([C2], [C2].End(xlDown)).Cells    If cell.Offset(0, 1).Value = "x" Then cell.ClearNextEnd Sub
Wow! Thanks! Perfect!
Title: Re: Excel Problem
Post by: etech0 on November 17, 2015, 08:08:23 PM
Wow! Thanks! Perfect!
Pleasure!
Title: Re: Excel Problem
Post by: churnbabychurn on November 20, 2015, 10:12:28 AM
I have a workbook with only a handful of rows, but with massive megilas of text in them.

Is there a way to make that I can scroll through this slowly? Currently when I spin the wheel of the mouse it zooms through the rows as if they were regular sized rows... I want to change settings just for this workbook..
Title: Re: Excel Problem
Post by: smurf on November 20, 2015, 11:24:22 AM
I have a workbook with only a handful of rows, but with massive megilas of text in them.

Is there a way to make that I can scroll through this slowly? Currently when I spin the wheel of the mouse it zooms through the rows as if they were regular sized rows... I want to change settings just for this workbook..
try setting word wrap. Then click the top left corner to highlight the whole workbook, then double click the line between any row, that should snap them all to size
Title: Re: Excel Problem
Post by: skyguy918 on November 20, 2015, 12:38:25 PM
try setting word wrap. Then click the top left corner to highlight the whole workbook, then double click the line between any row, that should snap them all to size
That won't help. Scrolling still treats any given row as a unit, and therefore it doesn't scroll through the contents of a given row, rather it scrolls through the rows.

In short, you're out of luck cbc. You're gonna have to manipulate the text if you want to read it within Excel.
Title: Re: Excel Problem
Post by: joshnuss on November 26, 2015, 09:21:24 AM
Does anybody know how to insert a picture in a cell and then press equal that cell in a different cell and the picture will appear? I am not asking for a fancy function on a picture just a equal sign on it.
Title: Re: Excel Problem
Post by: churnbabychurn on November 26, 2015, 09:37:30 AM
Does anybody know how to insert a picture in a cell and then press equal that cell in a different cell and the picture will appear? I am not asking for a fancy function on a picture just a equal sign on it.
Copy and paste?
Title: Re: Excel Problem
Post by: joshnuss on November 26, 2015, 10:24:30 AM
I need it automatically to populate 10 other pages
Title: Re: Excel Problem
Post by: aygart on November 26, 2015, 11:00:48 AM
Does it work to do this
http://trumpexcel.com/2013/05/insert-picture-into-excel-cell/

and then this?
Title: Re: Excel Problem
Post by: etech0 on November 26, 2015, 11:09:11 AM
I need it automatically to populate 10 other pages
Look into the Excel Camera http://www.dummies.com/how-to/content/adding-the-excel-camera-tool-to-the-quick-access-t.html

It's not exactly what you asked for, but it might do the trick anyways.
Title: Re: Excel Problem
Post by: aygart on November 26, 2015, 11:25:09 AM
I am trying to separate and then add 2 years of hourly data to have monthly totals of peak and off peak numbers. The data comes in a .csv file formatted like this and has 17,520 rows of data.
Quote
 UsageDate HourNum Usage 4/13/2013 1 58.9 4/13/2013 2 56.84 4/13/2013 3 56.22 4/13/2013 4 55.55 4/13/2013 5 55.25 4/13/2013 6 56.21 4/13/2013 7 60.69 4/13/2013 8 63.9
What I do currently is that I paste this formula through the entire column e (D is other data)
Code: [Select]
=IF(AND(B4>7,B4<22,((WEEKDAY(A4,2))<6)),"P","OP")which then fills column d with either "p" or "op" depending on the timestamp.
I paste this formula into columns f and g
Code: [Select]
=IF(E4="P",C4,"--")
Code: [Select]
=IF(E4="OP",C4,"--")This makes column f contain only peak numbers while column g contains only off peak numbers.

I then use auto filter to filter a month separately and copy paste it onto a new tab. On that tab I paste a formula to sum each column to give me the total for each month and then paste those to a separate tab where I would have all the monthly numbers.

This works but is a somewhat tedious process. Is there a simple way to get it done automatically or a simpler way to do it?
Title: Re: Excel Problem
Post by: lubaby on November 26, 2015, 12:30:55 PM
I am trying to separate and then add 2 years of hourly data to have monthly totals of peak and off peak numbers. The data comes in a .csv file formatted like this and has 17,520 rows of data.What I do currently is that I paste this formula through the entire column e (D is other data)
Code: [Select]
=IF(AND(B4>7,B4<22,((WEEKDAY(A4,2))<6)),"P","OP")which then fills column d with either "p" or "op" depending on the timestamp.
I paste this formula into columns f and g
Code: [Select]
=IF(E4="P",C4,"--")
Code: [Select]
=IF(E4="OP",C4,"--")This makes column f contain only peak numbers while column g contains only off peak numbers.

I then use auto filter to filter a month separately and copy paste it onto a new tab. On that tab I paste a formula to sum each column to give me the total for each month and then paste those to a separate tab where I would have all the monthly numbers.

This works but is a somewhat tedious process. Is there a simple way to get it done automatically or a simpler way to do it?
Excel has a feature called Record Macro, that you can activate with a keyboard shortcut. The Macro would be saved in Excel, so it can run in any workbook.

Essentially you'd click Record, do all those formulas and steps the first time.
Then open the next workbook (or same) and tweak the run the Macro. Might need some debugging / tweaking and remove the extra clicks and steps.

The Macro would mimic all the steps and formulas you did.
Title: Re: Excel Problem
Post by: joshnuss on November 26, 2015, 02:03:20 PM
Does it work to do this
http://trumpexcel.com/2013/05/insert-picture-into-excel-cell/

and then this?
Worked Like a Charm. Sweet. Thanks
Title: Re: Excel Problem
Post by: aygart on November 26, 2015, 02:47:13 PM
Excel has a feature called Record Macro, that you can activate with a keyboard shortcut. The Macro would be saved in Excel, so it can run in any workbook.

Essentially you'd click Record, do all those formulas and steps the first time.
Then open the next workbook (or same) and tweak the run the Macro. Might need some debugging / tweaking and remove the extra clicks and steps.

The Macro would mimic all the steps and formulas you did.
My experience with Macro Recorder is that it makes extremely inefficient macros because it includes many more extraneous actions than those which you need. If it is for something simple and short it will work well but for something with as many steps as this it will not work well.

What I was thinking would work best would be to have a template to paste the data on which would reference everything to the correct places. The issue is that depending on when the data is pulled the start and end months vary so I cannot use simple links to cells.
Title: Re: Excel Problem
Post by: lubaby on November 26, 2015, 03:59:21 PM
My experience with Macro Recorder is that it makes extremely inefficient macros because it includes many more extraneous actions than those which you need. If it is for something simple and short it will work well but for something with as many steps as this it will not work well.
That's why you debug it after you record it the first time. You can delete the rows of code that are extra and simplify the clicks / processing.
Macros are great for repetitive tasks, no matter how complex. It really depends how well you can "teach the computer".

Excel is a fun learning experience.
Title: Re: Excel Problem
Post by: etech0 on November 26, 2015, 04:27:51 PM
That's why you debug it after you record it the first time. You can delete the rows of code that are extra and simplify the clicks / processing.
Macros are great for repetitive tasks, no matter how complex. It really depends how well you can "teach the computer".

Excel is a fun learning experience.
one thing you'll probably need to fix in a recorded macro is absolute/relative referencing
Title: Re: Excel Problem
Post by: joshnuss on November 30, 2015, 10:13:59 AM
Anybody know how to return a value in a cell based on a basic =left(A9,5) function and then add on it extra few words? The point being that i want part of this cell based on the cell i am referencing but part of the cell to have a few words in their that is constant.(not based on Formula or function just plain words)
Title: Re: Excel Problem
Post by: lubaby on November 30, 2015, 10:24:28 AM
Anybody know how to return a value in a cell based on a basic =left(A9,5) function and then add on it extra few words? The point being that i want part of this cell based on the cell i am referencing but part of the cell to have a few words in their that is constant.(not based on Formula or function just plain words)
Code: [Select]
&"TEXT" to the end of your formula.

So basically,
Code: [Select]
=left(A9,5)&"TEXT"
Anything stored in between the " " would be considered a constant.
Title: Re: Excel Problem
Post by: joshnuss on November 30, 2015, 10:27:42 AM
Code: [Select]
&"TEXT" to the end of your formula.

So basically,
Code: [Select]
=left(A9,5)&"TEXT"
Anything stored in between the " " would be considered a constant.
Thanks. Is there a way to put those words first before the result of the formula?
Title: Re: Excel Problem
Post by: lubaby on November 30, 2015, 10:31:49 AM
Thanks. Is there a way to put those words first before the result of the formula?

Sure, just move around the " " tags.

Code: [Select]
="TEXT"&left(A9,5)
Title: Re: Excel Problem
Post by: joshnuss on November 30, 2015, 10:33:22 AM
Nice and easy Thanks
Title: Re: Excel Problem
Post by: aygart on November 30, 2015, 05:39:32 PM
I am trying to separate and then add 2 years of hourly data to have monthly totals of peak and off peak numbers. The data comes in a .csv file formatted like this and has 17,520 rows of data.What I do currently is that I paste this formula through the entire column e (D is other data)
Code: [Select]
=IF(AND(B4>7,B4<22,((WEEKDAY(A4,2))<6)),"P","OP")which then fills column d with either "p" or "op" depending on the timestamp.
I paste this formula into columns f and g
Code: [Select]
=IF(E4="P",C4,"--")
Code: [Select]
=IF(E4="OP",C4,"--")This makes column f contain only peak numbers while column g contains only off peak numbers.

I then use auto filter to filter a month separately and copy paste it onto a new tab. On that tab I paste a formula to sum each column to give me the total for each month and then paste those to a separate tab where I would have all the monthly numbers.

This works but is a somewhat tedious process. Is there a simple way to get it done automatically or a simpler way to do it?

Is there a way to SUMIF all values from the most recent January out of a few years of data?
Title: Re: Excel Problem
Post by: churnbabychurn on November 30, 2015, 05:55:37 PM
Is there a way to SUMIF all values from the most recent January out of a few years of data?
Why not?
Title: Re: Excel Problem
Post by: aygart on November 30, 2015, 06:00:28 PM
Why not?
How? and in case I wasn't clear, What I am looking for is NOT to SUMIF Jan 2015 but whichever is the most recent one in the data set
Title: Re: Excel Problem
Post by: etech0 on November 30, 2015, 07:33:13 PM
How? and in case I wasn't clear, What I am looking for is NOT to SUMIF Jan 2015 but whichever is the most recent one in the data set
It should be doable. Do you want to post a sample file for us to work on?
Title: Re: Excel Problem
Post by: skyguy918 on November 30, 2015, 08:56:09 PM
How? and in case I wasn't clear, What I am looking for is NOT to SUMIF Jan 2015 but whichever is the most recent one in the data set
You have to craft a condition indicating what the most recent January is. I'll post an example later when I have time.
Title: Re: Excel Problem
Post by: aygart on December 01, 2015, 04:29:12 PM
It should be doable. Do you want to post a sample file for us to work on?

So in this chart I would need it to include October 2014 for the October total while in a more current data set I would need it to include Oct 2015

 UsageDate HourNum Usage 4/14/2013 1 74.13 1/5/2014 2 77.07 10/24/2014 3 72.04 6/14/2014 4 71.66 8/19/2015 5 71.71 4/14/2014 6 72.57 4/14/2015 7 75.03 6/15/2015 8 76.15 6/30/2015 9 78.66 7/6/2015 21 82.05 7/20/2015 22 80.44 8/1/2015 23 77.37 8/5/2015 24 75.31 9/10/2015 1 73.81 9/25/2015 2 73.27
Title: Re: Excel Problem
Post by: skyguy918 on December 01, 2015, 04:48:21 PM
So in this chart I would need it to include October 2014 for the October total while in a more current data set I would need it to include Oct 2015

 UsageDate HourNum Usage 4/14/2013 1 74.13 1/5/2014 2 77.07 10/24/2014 3 72.04 6/14/2014 4 71.66 8/19/2015 5 71.71 4/14/2014 6 72.57 4/14/2015 7 75.03 6/15/2015 8 76.15 6/30/2015 9 78.66 7/6/2015 21 82.05 7/20/2015 22 80.44 8/1/2015 23 77.37 8/5/2015 24 75.31 9/10/2015 1 73.81 9/25/2015 2 73.27
Crude version:
Code: [Select]
{=SUM($C$2:$C$16*(MONTH($A$2:$A$16)=1)*(YEAR($A$2:$A$16)=MAX(IF(MONTH($A$2:$A$16)=1,YEAR($A$2:$A$16),0))))}Make sure to ctrl-enter for array formula.

ETA: I put in 1 for January (I think that was your original example). Replace with 10 for October, or make it a reference so you can copy it down to do it once for each month of the year.
Title: Re: Excel Problem
Post by: aygart on December 01, 2015, 06:09:18 PM
Crude version:
Code: [Select]
{=SUM($C$2:$C$16*(MONTH($A$2:$A$16)=1)*(YEAR($A$2:$A$16)=MAX(IF(MONTH($A$2:$A$16)=1,YEAR($A$2:$A$16),0))))}Make sure to ctrl-enter for array formula.

ETA: I put in 1 for January (I think that was your original example). Replace with 10 for October, or make it a reference so you can copy it down to do it once for each month of the year.

Thanks. I see I need to be more specific and/or clearer. I have uploaded some files to the links below.

In this file (http://www.lowerwatt.com/files/Sample%20Usage.csv) is a sample of the raw data as I receive it. I then paste it into this template (http://www.lowerwatt.com/files/Usage%20Calc%20Template.xlsx) to calculate which rows are for peak and which are for off-peak with this file (http://www.lowerwatt.com/files/Sample%20Usage%20Calculation.xlsx) as the result. What I am trying to do is get the total peak usage from the last 12 months to be calculated into M6:M17 and the off-peak into N6:N17. One of the criteria of a SUMIF type formula would be that Column E would say "P" or "OP". The real issue is that the dates on the data vary depending on when it was pulled and the most recent 12 months will therefore be different in each data set.

As you will see in the file, when I pasted your formula into excel (I pasted it into the formula area, removed the {}, changed the end of the arrays to be row 20000, and hit CTRL-SHIFT-ENTER) it came up as zero. Not sure if that is because I did something wrong or I was unclear about what I was looking for.
Title: Re: Excel Problem
Post by: skyguy918 on December 01, 2015, 06:13:40 PM
Thanks. I see I need to be more specific and/or clearer. I have uploaded some files to the links below.

In this file (http://www.lowerwatt.com/files/Sample%20Usage.csv) is a sample of the raw data as I receive it. I then paste it into this template (http://www.lowerwatt.com/files/Usage%20Calc%20Template.xlsx) to calculate which rows are for peak and which are for off-peak with this file (http://www.lowerwatt.com/files/Sample%20Usage%20Calculation.xlsx) as the result. What I am trying to do is get the total peak usage from the last 12 months to be calculated into M6:M17 and the off-peak into N6:N17. One of the criteria of a SUMIF type formula would be that Column E would say "P" or "OP". The real issue is that the dates on the data vary depending on when it was pulled and the most recent 12 months will therefore be different in each data set.

As you will see in the file, when I pasted your formula into excel (I pasted it into the formula area, removed the {}, changed the end of the arrays to be row 20000, and hit CTRL-SHIFT-ENTER) it came up as zero. Not sure if that is because I did something wrong or I was unclear about what I was looking for.
That's actually probably easier to do. I'll take a look when I get home.
Title: Re: Excel Problem
Post by: skyguy918 on December 01, 2015, 07:39:13 PM
Thanks. I see I need to be more specific and/or clearer. I have uploaded some files to the links below.

In this file (http://www.lowerwatt.com/files/Sample%20Usage.csv) is a sample of the raw data as I receive it. I then paste it into this template (http://www.lowerwatt.com/files/Usage%20Calc%20Template.xlsx) to calculate which rows are for peak and which are for off-peak with this file (http://www.lowerwatt.com/files/Sample%20Usage%20Calculation.xlsx) as the result. What I am trying to do is get the total peak usage from the last 12 months to be calculated into M6:M17 and the off-peak into N6:N17. One of the criteria of a SUMIF type formula would be that Column E would say "P" or "OP". The real issue is that the dates on the data vary depending on when it was pulled and the most recent 12 months will therefore be different in each data set.

As you will see in the file, when I pasted your formula into excel (I pasted it into the formula area, removed the {}, changed the end of the arrays to be row 20000, and hit CTRL-SHIFT-ENTER) it came up as zero. Not sure if that is because I did something wrong or I was unclear about what I was looking for.
Your sample data ends in the middle of April. So for the April total, do you want only the most recent (partial) April data, the last full April (ie the prior year's) data, or some combination of the 2?
Title: Re: Excel Problem
Post by: aygart on December 01, 2015, 07:45:10 PM
Your sample data ends in the middle of April. So for the April total, do you want only the most recent (partial) April data, the last full April (ie the prior year's) data, or some combination of the 2?
I would imagine it would be easier to just do complete months and it doesn't really make much of a difference since it is modeled and not exact data anyhow. I am just trying to extract this aspect of the data from the model.
So whatever is simpler.
Title: Re: Excel Problem
Post by: skyguy918 on December 01, 2015, 08:22:19 PM
I would imagine it would be easier to just do complete months and it doesn't really make much of a difference since it is modeled and not exact data anyhow. I am just trying to extract this aspect of the data from the model.
So whatever is simpler.
Code: [Select]
{=SUM(IF(((MONTH($A$2:$A$20000)=$K6)*(YEAR($A$2:$A$20000)=MAX(IF(MONTH($A$2:$A$20000)=$K6,YEAR($A$2:$A$20000),0)))),F$2:F$20000,0))}Put the numbers 1-12 in Column K next to the month names, and then you can copy the formula as is to the whole table.

Title: Re: Excel Problem
Post by: aygart on December 02, 2015, 11:16:59 AM
Code: [Select]
{=SUM(IF(((MONTH($A$2:$A$20000)=$K6)*(YEAR($A$2:$A$20000)=MAX(IF(MONTH($A$2:$A$20000)=$K6,YEAR($A$2:$A$20000),0)))),F$2:F$20000,0))}Put the numbers 1-12 in Column K next to the month names, and then you can copy the formula as is to the whole table.

This worked perfectly! Amazing! Thanks tons!

There is no way I would have gotten to this on my own, now I need to figure out what you did so that should be able to do it myself next time.
Title: Re: Excel Problem
Post by: skyguy918 on December 02, 2015, 11:25:09 AM
This worked perfectly! Amazing! Thanks tons!

There is no way I would have gotten to this on my own, now I need to figure out what you did so that should be able to do it myself next time.
The IF statement says that if a particular row in the array passes the logical test - which I'll explain in the next paragraph - then return the value from the usage column, otherwise return 0. So you get an array that's 19,999 cells, some filled with 0 and some with a usage value, and we sum that array.

The logical test works by 'multiplying' several logical tests by each other. The first parentheses creates a TRUE/FALSE array indicating whether each row is the month you're looking for. The second creates another TRUE/FALSE array indicating whether each row is the year you want (the one that contains the latest instance of the month you're looking for) - which I'll explain in the next paragraph. Multiplying the 2 arrays together results in 1 array that has TRUE only if both of the 'input' arrays are TRUE, and FALSE otherwise.

The year you want is determined by creating an array that's filled with 0 when the month is not the month you're looking for, and with the year where it is the right month. Take the max of that array, and you get the year that contains the latest instance of the month you're looking for.
Title: Re: Excel Problem
Post by: churnbabychurn on December 02, 2015, 11:34:45 AM
Cool
Title: Re: Excel Problem
Post by: aygart on December 02, 2015, 06:24:00 PM
The IF statement says that if a particular row in the array passes the logical test - which I'll explain in the next paragraph - then return the value from the usage column, otherwise return 0. So you get an array that's 19,999 cells, some filled with 0 and some with a usage value, and we sum that array.

The logical test works by 'multiplying' several logical tests by each other. The first parentheses creates a TRUE/FALSE array indicating whether each row is the month you're looking for. The second creates another TRUE/FALSE array indicating whether each row is the year you want (the one that contains the latest instance of the month you're looking for) - which I'll explain in the next paragraph. Multiplying the 2 arrays together results in 1 array that has TRUE only if both of the 'input' arrays are TRUE, and FALSE otherwise.

The year you want is determined by creating an array that's filled with 0 when the month is not the month you're looking for, and with the year where it is the right month. Take the max of that array, and you get the year that contains the latest instance of the month you're looking for.
I think I get what you did, but looking at the results more carefully now I see that April is only showing a half month's worth of usage. As I mentioned before it does not make a difference to me if it is, in this example, entirely the previous year meaning 2014, or split between 2015 and 2015. I am trying to play around with the formula but with no success yet.
Title: Re: Excel Problem
Post by: skyguy918 on December 02, 2015, 06:27:00 PM
I think I get what you did, but looking at the results more carefully now I see that April is only showing a half month's worth of usage. As I mentioned before it does not make a difference to me if it is, in this example, entirely the previous year meaning 2014, or split between 2015 and 2015. I am trying to play around with the formula but with no success yet.
I misunderstood, but that actually makes it easier. Will post tonight.
Title: Re: Excel Problem
Post by: skyguy918 on December 02, 2015, 08:01:44 PM
I think I get what you did, but looking at the results more carefully now I see that April is only showing a half month's worth of usage. As I mentioned before it does not make a difference to me if it is, in this example, entirely the previous year meaning 2014, or split between 2015 and 2015. I am trying to play around with the formula but with no success yet.
Replacement formula:
Code: [Select]
=SUM(IF((MONTH($A$2:$A$20000)=$K6)*($A$2:$A$20000>$L$5),F$2:F$20000,0)){CTRL-ENTER for array formula} For which you should add the formula: Code: [Select] =EDATE(MAX($A$2:$A$20000),-12)to cell L5. This solution sums the current fractional April with the other half of the prior April. Title: Re: Excel Problem Post by: aygart on December 03, 2015, 03:55:56 PM Replacement formula: Code: [Select] =SUM(IF((MONTH($A$2:$A$20000)=$K6)*($A$2:$A$20000>$L$5),F$2:F$20000,0)){CTRL-ENTER for array formula}
For which you should add the formula:
Code: [Select]
=EDATE(MAX($A$2:$A$20000),-12)to cell L5.

This solution sums the current fractional April with the other half of the prior April.
Beautiful! Thanks tons!

In the original formula and the first one here the * works like an AND?
Title: Re: Excel Problem
Post by: skyguy918 on December 03, 2015, 04:10:44 PM
Beautiful! Thanks tons!

In the original formula and the first one here the * works like an AND?
Sort of. MONTH($A$2:$A$20000)=$K6 and$A$2:$A$20000>$L$5 each create an array of TRUE/FALSE values. Multiplying TRUE/FALSE values against each other returns a 1 (which is then treated as a TRUE) or a 0 (which is then treated as a FALSE). As I'm typing this, I realize that what I just explained means that I can just skip a step: Code: [Select] =SUM((MONTH($A$2:$A$20000)=$K6)*($A$2:$A$20000>$L$5)*F$2:F$20000)Because the FALSE values are 0's, they just cancel out the values in that row from the F column.
Title: Re: Excel Problem
Post by: etech0 on January 11, 2016, 12:05:42 PM
Weird issue over here - I wrote a simple excel macro, and assigned it to a keyboard shortcut, and it works fine. I also added the macro to the Quick Access Toolbar, but it doesn't do anything when I click it.

Any ideas? Am I losing my marbles?
Title: Re: Excel Problem
Post by: etech0 on January 11, 2016, 01:19:31 PM
Weird issue over here - I wrote a simple excel macro, and assigned it to a keyboard shortcut, and it works fine. I also added the macro to the Quick Access Toolbar, but it doesn't do anything when I click it.

Any ideas? Am I losing my marbles?

Quote
Select File > Options.

Select Disabled Items from the Manage dropdown, then click Go...

Is the .xlsm listed? If so, select it and click Enable.

Title: Re: Excel Problem
Post by: Zevi16 on January 14, 2016, 07:53:35 AM
Formula for time tracking.  E.g
Time in: 8.00am
Time out: 4.30pm
Total hours : 8hrs 30min.
And then times that by wage. i.e $18 per hour. =$153.
How can I do all this simply?
Title: Re: Excel Problem
Post by: MarkS on January 14, 2016, 08:04:38 AM
Formula for time tracking.  E.g
Time in: 8.00am
Time out: 4.30pm
Total hours : 8hrs 30min.
And then times that by wage. i.e $18 per hour. =$153.
How can I do all this simply?
Assuming that everyone is working morning through  evening,  A1-8.0  B1-4.5   C1- =(12-A1)+B1    D1=C1*18

Title: Re: Excel Problem
Post by: lubaby on January 14, 2016, 08:22:52 AM
Formula for time tracking.  E.g
Time in: 8.00am
Time out: 4.30pm
Total hours : 8hrs 30min.
And then times that by wage. i.e $18 per hour. =$153.
How can I do all this simply?
Is this just calculating your own hours or for other people as well?
Title: Re: Excel Problem
Post by: mancunian on January 14, 2016, 09:36:23 AM
Google 'excel convert time to decimal' - that's what you need to do, I'm pretty sure its by dividing by 60.
You also want to make sure excel knows if its am or pm, i.e. use the correct formatting.
Title: Re: Excel Problem
Post by: chucksterace on January 14, 2016, 11:16:59 AM
Ok. time for a complicated formula request. (if its even possible)

I have two excel sheets with lists of products. Sheet A has the products descriptions and Sheet B doesn't. I want sheet B to compare SKU's in column B with sheet A and if they match to copy a specific cell from Sheet A to Sheet B.

Possible?
Title: Re: Excel Problem
Post by: MarkS on January 14, 2016, 11:17:59 AM
Ok. time for a complicated formula request. (if its even possible)

I have two excel sheets with lists of products. Sheet A has the products descriptions and Sheet B doesn't. I want sheet B to compare SKU's in column B with sheet A and if they match to copy a specific cell from Sheet A to Sheet B.

Possible?
Wouldn't a simple V lookup do the trick?
Title: Re: Excel Problem
Post by: chucksterace on January 14, 2016, 11:18:35 AM
Wouldn't a simple V lookup do the trick?

Don't know anything about that. But I can take a look.

Really quick response by the way.
Title: Re: Excel Problem
Post by: MarkS on January 14, 2016, 11:23:59 AM
Don't know anything about that. But I can take a look.

Really quick response by the way.
Google it to understand it better, but basically, if Sheet A had SKU in Column A and description in Column B, And Sheet 2 had SKU in column A and you want to put the description in column B, in B1 put =vlookup(A1,Sheet1!A:B,2,false)  and drag it down to fill the other rows.
2
Title: Re: Excel Problem
Post by: HowYaDoin on January 14, 2016, 11:30:27 AM
Ok. time for a complicated formula request. (if its even possible)

I have two excel sheets with lists of products. Sheet A has the products descriptions and Sheet B doesn't. I want sheet B to compare SKU's in column B with sheet A and if they match to copy a specific cell from Sheet A to Sheet B.

Possible?
Yup I agree with MarkS sounds like a typical Vlookup. Very useful formula to learn
Title: Re: Excel Problem
Post by: skyguy918 on January 14, 2016, 11:33:49 AM
Yup I agree with MarkS sounds like a typical Vlookup. Very useful formula to learn
Booooo... INDEX-MATCH, FTW!
Title: Re: Excel Problem
Post by: aygart on January 14, 2016, 12:02:14 PM
Booooo... INDEX-MATCH, FTW!
True, but for someone who did not realize that vlookup even exists the syntax will be simpler.
Title: Re: Excel Problem
Post by: Zevi16 on January 14, 2016, 12:03:08 PM
Google 'excel convert time to decimal' - that's what you need to do, I'm pretty sure its by dividing by 60.
You also want to make sure excel knows if its am or pm, i.e. use the correct formatting.
Thanx I'll try.
Title: Re: Excel Problem
Post by: HowYaDoin on January 14, 2016, 12:17:19 PM
Booooo... INDEX-MATCH, FTW!
After Googling you are probably correct. That definitely is something i will have to try one of these days. The fact that  INDEX-MATCH can be done right to left is a game changer
Title: Re: Excel Problem
Post by: churnbabychurn on January 18, 2016, 12:08:36 AM
Booooo... INDEX-MATCH, FTW!
I love index match. -much more flexible than vlookup..
But is there an approximate match option? Seems to be either exact/more/less.
Also, does index match work with duplicate matches to return both?
Title: Re: Excel Problem
Post by: skyguy918 on January 18, 2016, 12:15:21 AM
I love index match. -much more flexible than vlookup..
But is there an approximate match option? Seems to be either exact/more/less.
Also, does index match work with duplicate matches to return both?

Not sure what you mean by approximate. There are certainly no other options (-1, 0, 1), but you should be able to pick up the appropriate values with one of those options on most scenarios.

Duplicates only comes up with the exact match option, and it will return the first position in the vector that matches, thereby ignoring any others. There are (fairly tedious) ways around this.

Eta: If you give specific examples for your 2 questions I can try to formulate solutions, but a lot of times it ends up being way more complex than just the INDEX-MATCH.
Title: Re: Excel Problem
Post by: MarkS on January 18, 2016, 01:04:02 AM
I love index match. -much more flexible than vlookup..
But is there an approximate match option? Seems to be either exact/more/less.
Also, does index match work with duplicate matches to return both?

Aha! V lookup has the approximate match option! (True/false)
Title: Re: Excel Problem
Post by: churnbabychurn on January 18, 2016, 07:11:11 AM

Not sure what you mean by approximate. There are certainly no other options (-1, 0, 1), but you should be able to pick up the appropriate values with one of those options on most scenarios.

Looking up cells containing text description or names that have slight variations would work better in vlookup then.

Quote

Duplicates only comes up with the exact match option, and it will return the first position in the vector that matches, thereby ignoring any others. There are (fairly tedious) ways around this.

Eta: If you give specific examples for your 2 questions I can try to formulate solutions, but a lot of times it ends up being way more complex than just the INDEX-MATCH.
I'm sure there are solutions but I do this very often these days with various data sets..- custom solutions wouldn't work..wish it would just work.
Title: Re: Excel Problem
Post by: yitzf on January 18, 2016, 09:39:24 PM

I'm sure there are solutions but I do this very often these days with various data sets..- custom solutions wouldn't work..wish it would just work.
Creating a pivot table first should take care of duplicates (if you want to add them...)

Title: Re: Excel Problem
Post by: yitzf on January 18, 2016, 09:45:08 PM

Looking up cells containing text description or names that have slight variations would work better in vlookup then.

Approximate only works for a sorted number range not text.

You could use wildcards in vlookup to help with slight variations.
Title: Re: Excel Problem
Post by: yitzf on January 18, 2016, 10:00:46 PM

It's called Fuzzy Lookup.

Has anyone used this before?
I can't believe I never heard of it...
Title: Re: Excel Problem
Post by: churnbabychurn on January 18, 2016, 11:35:27 PM
Creating a pivot table first should take care of duplicates (if you want to add them...)
They are not really duplicates.. Need to keep both.
Title: Re: Excel Problem
Post by: yitzf on January 19, 2016, 12:27:57 AM
They are not really duplicates.. Need to keep both.

If most of the items are unique and only a few are duplicates, you can attach a countif to the vlookup to check for duplicates, them manually work on the duplicates.
Title: Re: Excel Problem
Post by: dave on January 20, 2016, 03:43:33 PM
Trying to do a mail merge for envelopes but can't seem to find princess size envelopes called A1
any help ?
Title: Re: Excel Problem
Post by: lechatchileh ariber on January 22, 2016, 03:49:30 PM
Taking ajk into consideration, I'm trying to make this table. Is there any way that I can organize this so that I can make column 'E' automatic, or  should I leave it as manual?
Title: Re: Excel Problem
Post by: lubaby on January 23, 2016, 06:00:19 PM
Taking ajk into consideration, I'm trying to make this table. Is there any way that I can organize this so that I can make column 'E' automatic, or  should I leave it as manual?
Excel is extremely proficient at math.

In E2, enter =B2-C2 (assuming that's what you want to calculate).
Title: Re: Excel Problem
Post by: lechatchileh ariber on January 23, 2016, 06:55:53 PM
Excel is extremely proficient at math.

In E2, enter =B2-C2 (assuming that's what you want to calculate).
For the same price I can write 9578 in E5.
I'm wondering if there's a way I can organize it that when I add a new event I can have a total automatically without having to input in the 'total' column.
Eta: this might be a little clearer.

Is there a way organize this that i can have an automatic total every time I add a row with new information?
Title: Re: Excel Problem
Post by: churnbabychurn on January 23, 2016, 07:31:17 PM
For the same price I can write 9578 in E5.
I'm wondering if there's a way I can organize it that when I add a new event I can have a total automatically without having to input in the 'total' column.
Eta: this might be a little clearer.

Is there a way organize this that i can have an automatic total every time I add a row with new information?
Yes. organize it as a table and it should to it automatically.
Title: Re: Excel Problem
Post by: lechatchileh ariber on January 23, 2016, 07:34:11 PM
Yes. organize it as a table and it should to it automatically.
So have each reward system is own table and column E as the sum of each table?
Title: Re: Excel Problem
Post by: lechatchileh ariber on January 23, 2016, 10:09:42 PM
Yes. organize it as a table and it should to it automatically.
I didn't really get what you meant so I did this:
=sumif(A:A, "HERTZ", B:B)
Seems to be working, but I have to fill in column A.
Title: Re: Excel Problem
Post by: jackofall on January 25, 2016, 10:08:03 AM
Anyway to have a vlookup return "0" for no match instead of "false"?
Title: Re: Excel Problem
Post by: myb821 on January 25, 2016, 10:34:27 AM
Anyway to have a vlookup return "0" for no match instead of "false"?
=iferror(vlookup(....),0)
Title: Re: Excel Problem
Post by: skyguy918 on January 25, 2016, 10:34:46 AM
Anyway to have a vlookup return "0" for no match instead of "false"?
VLOOKUP doesn't return FALSE for no match, it returns #N/A. If you want to return 0 for no match you can surround your VLOOKUP with IFERROR:
=IFERROR(VLOOKUP(...),0)

ETA
=iferror(vlookup(....),0)
Beat me to it by a minute.

Also, technically speaking this obscures any other errors, so if you want to be really careful you can use =IF(ISNA(VLOOKUP(...),0,VLOOKUP(...))
Title: Re: Excel Problem
Post by: jackofall on January 25, 2016, 10:37:00 AM
=iferror(vlookup(....),0)
Ty
Title: Re: Excel Problem
Post by: jackofall on January 25, 2016, 10:37:26 AM
VLOOKUP doesn't return FALSE for no match, it returns #N/A. If you want to return 0 for no match you can surround your VLOOKUP with IFERROR:
=IFERROR(VLOOKUP(...),0)

ETABeat me to it by a minute.

Also, technically speaking this obscures any other errors, so if you want to be really careful you can use =IF(ISNA(VLOOKUP(...),0,VLOOKUP(...))
Correct. I meant n/a. Thanks.
Title: Re: Excel Problem
Post by: joshnuss on January 26, 2016, 12:36:05 PM
Anyone know a Macro to Copy one Column and paste that column every other column for the next 500 columns??
Title: Re: Excel Problem
Post by: churnbabychurn on January 26, 2016, 12:39:31 PM
Anyone know a Macro to Copy one Column and paste that column every other column for the next 500 columns??
Could just do a formula and drag
Title: Re: Excel Problem
Post by: joshnuss on January 26, 2016, 12:41:21 PM
Its not a formula just text..
Title: Re: Excel Problem
Post by: churnbabychurn on January 26, 2016, 12:43:50 PM
Its not a formula just text..
Yes =a1 will return the text in a1
Title: Re: Excel Problem
Post by: joshnuss on January 26, 2016, 12:47:29 PM
Good idea thank you
Title: Re: Excel Problem
Post by: joshnuss on January 26, 2016, 12:49:13 PM
There is still a issue, I need the formatting to come along, when you use the Formula it does not pull that...
Title: Re: Excel Problem
Post by: MarkS on January 26, 2016, 12:50:50 PM
There is still a issue, I need the formatting to come along, when you use the Formula it does not pull that...
Use format painter (the paintbrush near the paste button on the home ribbon)
Title: Re: Excel Problem
Post by: joshnuss on January 26, 2016, 01:02:09 PM
its thousands of columns, a macro would make my life a lot easier...
Title: Re: Excel Problem
Post by: MarkS on January 26, 2016, 01:05:07 PM
its thousands of columns, a macro would make my life a lot easier...

Meh. A double click here and there and you're done. I work on spreadsheets with hundreds of thousands of rows etc. Doesn't take long when you know your way around
Title: Re: Excel Problem
Post by: skyguy918 on January 26, 2016, 01:37:36 PM
Don't bother with the =A1, just highlight the column with the text, and drag the fill cursor all the way to the right till you hit column SF (that's the 500th column). It'll take a few seconds holding it there while it scrolls, but it also copies the formatting.

ETA: Even better solution. Type SF1 into the Name Box (that's the thing to the left of the formula bar, which will navigate you to cell SF1. Type 1, or anything else into that cell. Click CTRL+HOME and select the data you want to copy. With the source data selected, hit CTRL+SHIFT+(right arrow). Then hit CTRL+R.
Title: Re: Excel Problem
Post by: churnbabychurn on January 26, 2016, 02:37:37 PM
Don't bother with the =A1, just highlight the column with the text, and drag the fill cursor all the way to the right till you hit column SF (that's the 500th column). It'll take a few seconds holding it there while it scrolls, but it also copies the formatting.

ETA: Even better solution. Type SF1 into the Name Box (that's the thing to the left of the formula bar, which will navigate you to cell SF1. Type 1, or anything else into that cell. Click CTRL+HOME and select the data you want to copy. With the source data selected, hit CTRL+SHIFT+(right arrow). Then hit CTRL+R.
He wanted every other column. Needs to do two first, one empty, select both and drag.
Title: Re: Excel Problem
Post by: skyguy918 on January 26, 2016, 02:48:59 PM
He wanted every other column. Needs to do two first, one empty, select both and drag.
Lol, I read it that way first, then somehow convinced myself he meant all of the other columns.

Either way, the name box trick is still helpful because it allows you to mark the spot you want to stop instead of sitting there waiting till your drag reaches 500 columns. This way you can select the first 2 columns, CTRL+C, CTRL+SHIFT+(right arrow), CTRL+V.
Title: Re: Excel Problem
Post by: yitzf on January 26, 2016, 06:49:06 PM
Anyone know a Macro to Copy one Column and paste that column every other column for the next 500 columns??

Here you go

Code: [Select]
Sub copy500()Dim data As RangeDim startCol As RangeSet data = Application.InputBox(Prompt:="Select anywhere in the column you wish to copy", Type:=8)If data Is Nothing Then Exit SubSet startCol = Application.InputBox(Prompt:="Select anywhere in the first column you want to paste into", Type:=8)If startCol Is Nothing Then Exit SubFor i = startCol.Column To startCol.Column + 999    data.EntireColumn.Copy Columns(i)    i = i + 1Next iEnd Sub
Title: Re: Excel Problem
Post by: churnbabychurn on January 31, 2016, 08:26:25 AM
If I have a bunch of data that I want to sort, and a bunch of data that I don't want to sort on the same tab. Often I just insert a bunch of blank rows in between them and are then able to sort/filter the ones on top and not the ones after the break.

Why does this not work sometimes?

I guess I can set the top ones as a table, but wondering when excel sees blank rows as a break and when as part of the data?

Title: Re: Excel Problem
Post by: churnbabychurn on February 03, 2016, 06:36:20 PM
Cool tip, if you have a sheet with cells that are locked for formating, you can drag unlocked cells there and replace the locked ones.
Title: Re: Excel Problem
Post by: etech0 on February 03, 2016, 08:27:55 PM
Sneaky! :)

Another cool tip: if you want to type something in a whole bunch of cells at once (without copy/paste) - select all the cells, type your text, and press control-enter.
Title: Re: Excel Problem
Post by: MarkS on February 03, 2016, 08:50:48 PM
My favorite tip is grouping tabs. When you have a spreadsheet with say 20 tabs, and all 20 are formatted similarly and you need to do identical things to all 20 (add a header and documentation on top, do formulas at the dn of the data in a specific column, highlight certain rows etc.

When tabs are grouped, work that you do on one tab is auto applied to all the tabs grouped!!! Can be a huge time saver. Just beware to only do it if all tabs are indeed formatted the same. Otherwise you may by mistake overwrite date in a different grouped tab.
Title: Re: Excel Problem
Post by: yitzf on February 03, 2016, 10:47:42 PM
My favorite tip is grouping tabs. When you have a spreadsheet with say 20 tabs, and all 20 are formatted similarly and you need to do identical things to all 20 (add a header and documentation on top, do formulas at the dn of the data in a specific column, highlight certain rows etc.

When tabs are grouped, work that you do on one tab is auto applied to all the tabs grouped!!! Can be a huge time saver. Just beware to only do it if all tabs are indeed formatted the same. Otherwise you may by mistake overwrite date in a different grouped tab.

You can also pull data. It's called 3D referencing.

For example, if you want to add all cells B5 from multiple sheets, you can write =sum(sheet1:sheet9!B5)
Very easy to create totals.

http://www.excel-easy.com/examples/3d-reference.html (http://www.excel-easy.com/examples/3d-reference.html)
Title: Re: Excel Problem
Post by: Jkhein on February 07, 2016, 11:19:04 AM
When I filter a column, and then use the sum function to sum up the total for that column, it is giving me the total including all the hidden rows, what is the proper way to do it, that the row numbers should show 1,2,3,4 instead of their original ones that causes the problems.

(I saw online that I can use subtotal,9 but is that the only way?)
Somehow I don't have this problem with all files
Title: Re: Excel Problem
Post by: MarkS on February 07, 2016, 11:32:08 AM
When I filter a column, and then use the sum function to sum up the total for that column, it is giving me the total including all the hidden rows, what is the proper way to do it, that the row numbers should show 1,2,3,4 instead of their original ones that causes the problems.

(I saw online that I can use subtotal,9 but is that the only way?)
Somehow I don't have this problem with all files
FYI when you filter if you want to be able to copy/paste the filtered data to a different tab without copying the hidden data, use Go to special, and select visible cells only.
Title: Re: Excel Problem
Post by: yitzf on February 07, 2016, 11:33:50 AM

When I filter a column, and then use the sum function to sum up the total for that column, it is giving me the total including all the hidden rows, what is the proper way to do it, that the row numbers should show 1,2,3,4 instead of their original ones that causes the problems.

(I saw online that I can use subtotal,9 but is that the only way?)
Somehow I don't have this problem with all files

What do you mean by row numbers should show 1,2,3,4? And what problem were the hidden rows causing?
Title: Re: Excel Problem
Post by: Jkhein on February 07, 2016, 11:56:09 AM
FYI when you filter if you want to be able to copy/paste the filtered data to a different tab without copying the hidden data, use Go to special, and select visible cells only.
Regular copy/pasting the data works for me, it does not copy/paste the hidden cells

What do you mean by row numbers should show 1,2,3,4? And what problem were the hidden rows causing?
After I filter, I get all the results, and the row numbers on the left side are like their originals, eg. 431,482,499.501. When I drag the range of those cells, the result will be A431:A501 which is a wrong calculation.
Title: Re: Excel Problem
Post by: yitzf on February 07, 2016, 01:25:11 PM
Subtotal is the way to go.

If you don't want the hidden cells at all you can Ctrl+G -> special -> visible cells only, then copy and paste somewhere else, and you have only the filtered rows.
Title: Re: Excel Problem
Post by: Jkhein on February 07, 2016, 10:35:20 PM
is there a way to make that when pressing enter it should go to the beginning of the next row?
Title: Re: Excel Problem
Post by: Der Deutsche Jude on February 07, 2016, 10:59:59 PM
is there a way to make that when pressing enter it should go to the beginning of the next row?
Title: Re: Excel Problem
Post by: etech0 on February 08, 2016, 10:46:33 AM
is there a way to make that when pressing enter it should go to the beginning of the next row?
If you start at the beginning of a row, and press tab to get from cell to cell in that row, when you press Enter it will go to the beginning of the row
Title: Re: Excel Problem
Post by: Zevi16 on February 11, 2016, 03:43:38 PM
I have 2 laptops, my old one has only got open office. I now have a new computer which only has microsoft office. The Open office file ?my new laptop and i cant find a way to open it on excel. How would i transfer it in a good format over to excel?
Title: Re: Excel Problem
Post by: DanH on February 11, 2016, 03:49:29 PM
I have 2 laptops, my old one has only got open office. I now have a new computer which only has microsoft office. The Open office file ?my new laptop and i cant find a way to open it on excel. How would i transfer it in a good format over to excel?
Within OpenOffice you can save as a MicrosoftOffice file.
Title: Re: Excel Problem
Post by: Zevi16 on February 11, 2016, 03:50:50 PM
Within OpenOffice you can save as a MicrosoftOffice file.
Hmm I guess I'm going to have to revert back to my old laptop. Thanx
Title: Re: Excel Problem
Post by: lubaby on February 11, 2016, 05:12:14 PM
Hmm I guess I'm going to have to revert back to my old laptop. Thanx
Or install OpenOffice on the new laptop and do it all on there.
Title: Re: Excel Problem
Post by: DanH on February 11, 2016, 05:35:46 PM
Hmm I guess I'm going to have to revert back to my old laptop. Thanx

Or convert it...
http://www.zamzar.com/convert/odt-to-doc/

or
http://odf-converter.sourceforge.net/
Title: Re: Excel Problem
Post by: Zevi16 on February 12, 2016, 01:21:08 AM
Or convert it...
http://www.zamzar.com/convert/odt-to-doc/

or
http://odf-converter.sourceforge.net/
Doesn't work. Comes out the same way if I open the .ods file through excel. Illegible
Title: Re: Excel Problem
Post by: DanH on February 16, 2016, 06:37:38 PM
I have 2 laptops, my old one has only got open office. I now have a new computer which only has microsoft office. The Open office file ?my new laptop and i cant find a way to open it on excel. How would i transfer it in a good format over to excel?
what version of office do you have now?

Title: Re: Excel Problem
Post by: Zevi16 on February 17, 2016, 12:17:54 AM
what version of office do you have now?

Sorry for not updating. I went on the old laptop and saved as .xls file.
Title: Re: Excel Problem
Post by: churnbabychurn on February 19, 2016, 09:26:22 AM
Help!

Anyway to recover data, formatting, calcs, tickmarks etc from an excel book that was saved as csv??

I do not have this auto saved anywhere. - I believe that the work was done in a csv workbook, - but it seems that after I save, close it and reopen everything is DEAD.
:'(
Title: Re: Excel Problem
Post by: aygart on February 19, 2016, 09:43:46 AM
Help!

Anyway to recover data, formatting, calcs, tickmarks etc from an excel book that was saved as csv??

I do not have this auto saved anywhere. - I believe that the work was done in a csv workbook, - but it seems that after I save, close it and reopen everything is DEAD.
:'(
oy vey-good luck with that. Did it a couple of times. I think I once found a temporaray file for what I did and was able to copy a lot of what I did from there but not all. I think that itself was very YMMV
Title: Re: Excel Problem
Post by: churnbabychurn on February 19, 2016, 10:01:56 AM
oy vey-good luck with that. Did it a couple of times. I think I once found a temporaray file for what I did and was able to copy a lot of what I did from there but not all. I think that itself was very YMMV
Yeah, I think its over. Oh well.

But I think i remember that this happened to me once, and when saving the csv as xls it came back! Not happening now though.
Title: Re: Excel Problem
Post by: aygart on February 19, 2016, 10:17:50 AM
Maybe it was here?
Title: Re: Excel Problem
Post by: churnbabychurn on February 19, 2016, 10:30:47 AM
Maybe it was here?
Hey! it is there!

I thought I looked in the auto save folder before but I guess I had something off or it reappeared? Anyway, its there  :D
Title: Re: Excel Problem
Post by: yitzf on February 19, 2016, 12:53:15 PM
Nice!
I know the feeling (especially on a short Friday).
Title: Re: Excel Problem
Post by: churnbabychurn on March 02, 2016, 03:56:42 PM
Is there a simple formula for cell A1 to equal cell A1 on the previous sheet (tab)?
Title: Re: Excel Problem
Post by: MarkS on March 02, 2016, 04:01:21 PM
Is there a simple formula for cell A1 to equal cell A1 on the previous sheet (tab)?
Umm, =Sheet1!A1

Grouping is also a great way to setup several tabs to have similar headers etc
Title: Re: Excel Problem
Post by: churnbabychurn on March 02, 2016, 04:22:47 PM
Umm, =Sheet1!A1

Grouping is also a great way to setup several tabs to have similar headers etc
I mean that each sheet should have the one before it. 25 tabs.
So I can input it once with all sheets selected or something..
Title: Re: Excel Problem
Post by: dealfinder85 on March 02, 2016, 04:23:35 PM
I mean that each sheet should have the one before it. 25 tabs.
So I can input it once with all sheets selected or something..
highlight all the tabs and enter that formula that MarkS said into A1 on the first (second) tab?
Title: Re: Excel Problem
Post by: etech0 on March 02, 2016, 04:29:58 PM
highlight all the tabs and enter that formula that MarkS said into A1 on the first (second) tab?
+1
I mean that each sheet should have the one before it. 25 tabs.
So I can input it once with all sheets selected or something..
They can all reference the first tab and it will lead to the same results
Title: Re: Excel Problem
Post by: churnbabychurn on March 02, 2016, 04:33:56 PM
I don't want the first tab!
Want the PREVIOUS tab
Title: Re: Excel Problem
Post by: dealfinder85 on March 02, 2016, 04:36:33 PM
I don't want the first tab!
Want the PREVIOUS tab
if each tab's A1 equals the A1 on the previous tab, arent they all the same?
Title: Re: Excel Problem
Post by: skyguy918 on March 02, 2016, 04:41:10 PM
I don't want the first tab!
Want the PREVIOUS tab
But if you're making a chain, one tab has to be the first tab in the chain, even if it's not the first on the screen.

Are you saying you want to be able to change the value in any of the sheets, and have it applied to all the sheets? Maybe write a Worksheet_Change macro that you can copy into all the sheets?
Title: Re: Excel Problem
Post by: churnbabychurn on March 02, 2016, 04:44:56 PM
But if you're making a chain, one tab has to be the first tab in the chain, even if it's not the first on the screen.

Are you saying you want to be able to change the value in any of the sheets, and have it applied to all the sheets? Maybe write a Worksheet_Change macro that you can copy into all the sheets?
Yes every sheet has changed values.

Thought it might be possible w a formula.
Title: Re: Excel Problem
Post by: churnbabychurn on March 02, 2016, 04:46:09 PM
if each tab's A1 equals the A1 on the previous tab, arent they all the same?
It's more like every sheet z30 should equal the previous sheet x20
Title: Re: Excel Problem
Post by: skyguy918 on March 02, 2016, 04:56:30 PM
It's more like every sheet z30 should equal the previous sheet x20
Except the one on the sheet you're entering it. That one obviously has to be filled with a value, while the others would be a formula. But that doesn't hold if you want this to be true on any sheet.
Title: Re: Excel Problem
Post by: etech0 on March 02, 2016, 05:08:39 PM
It's hard to know for sure without understanding your use case, but I'm wondering if you might do better in an Access Database.
Title: Re: Excel Problem
Post by: churnbabychurn on March 02, 2016, 05:42:44 PM
It's hard to know for sure without understanding your use case, but I'm wondering if you might do better in an Access Database.
Nah, just did it manualy-  took 5 min
Title: Re: Excel Problem
Post by: etech0 on March 02, 2016, 05:44:57 PM
Nah, just did it manualy-  took 5 min
Gotcha. Yeah if it's a one-time thing, it's not such a big deal
Title: Re: Excel Problem
Post by: churnbabychurn on March 02, 2016, 05:54:55 PM
Gotcha. Yeah if it's a one-time thing, it's not such a big deal
Yeah. I just thought there might be some cool offset formula..
Title: Re: Excel Problem
Post by: yitzf on March 02, 2016, 06:06:09 PM
Haven't tried it but http://www.mcgimpsey.com/excel/udfs/prevsheet.html (http://www.mcgimpsey.com/excel/udfs/prevsheet.html)
Paste into VBA module, then you have a function called prevsheet.
Type =prevsheet(X20)
Title: Re: Excel Problem
Post by: etech0 on March 02, 2016, 06:10:41 PM
=OFFSET(Sheet1!A1,10,0)
It will go to Sheet!A1, and then jump down 10 rows and across 0 columns, and return what it finds.
Title: Re: Excel Problem
Post by: churnbabychurn on March 05, 2016, 09:29:08 PM
A clients excel workbook default format for all cells is TIME!

This means that every time I refresh a pivot table that I am working on it defaults to time. - How do I change this?
Title: Re: Excel Problem
Post by: skyguy918 on March 05, 2016, 10:13:59 PM
A clients excel workbook default format for all cells is TIME!

This means that every time I refresh a pivot table that I am working on it defaults to time. - How do I change this?
Which version of excel are you in? My recollection is that there's a Cell Style called Normal, and you have to modify it to change the default.
Title: Re: Excel Problem
Post by: churnbabychurn on March 05, 2016, 10:20:03 PM
Which version of excel are you in? My recollection is that there's a Cell Style called Normal, and you have to modify it to change the default.
2013 .
This is only for these workbooks. Rest of my excel is fine.
So I don't want to mess w anything that will affect everything..
Title: Re: Excel Problem
Post by: skyguy918 on March 05, 2016, 10:26:19 PM
2013 .
This is only for these workbooks. Rest of my excel is fine.
So I don't want to mess w anything that will affect everything..
Lol, so make a copy and test it out.
Title: Re: Excel Problem
Post by: Mordyk on March 05, 2016, 10:51:47 PM
Lol, so make a copy and test it out.
+1  i always make a copy and experiment. i have learned a lot like this
2013 .
This is only for these workbooks. Rest of my excel is fine.
So I don't want to mess w anything that will affect everything..
i believe  that if some cells are time and others are not then you must select only the cells that are time and change them to normal or text. i have had this issue in the past. or try conditional formatting clear rules
Title: Re: Excel Problem
Post by: churnbabychurn on March 06, 2016, 12:12:36 AM
Lol, so make a copy and test it out.
Huh? I don't want to make any changes to the default excel template.
I want to change the default settings just for this workbook.

I obviously tried the normal process of ctr a and setting my preferred format.
Problem is that it keeps switching back to time format when ever I refresh pivits etc.
Title: Re: Excel Problem
Post by: churnbabychurn on March 06, 2016, 12:14:16 AM
+1  i always make a copy and experiment. i have learned a lot like thisi believe  that if some cells are time and others are not then you must select only the cells that are time and change them to normal or text. i have had this issue in the past. or try conditional formatting clear rules
You're probably right. I think it may be a conditional format set on entire workbook. Il check that when I log back in.
Title: Re: Excel Problem
Post by: churnbabychurn on March 06, 2016, 06:54:35 PM
You're probably right. I think it may be a conditional format set on entire workbook. Il check that when I log back in.
Turns out there's like a million styles in these workbooks.. Oh well, il manage.

Title: Re: Excel Problem
Post by: skyguy918 on March 06, 2016, 08:08:54 PM
Turns out there's like a million styles in these workbooks.. Oh well, il manage.
I think it's just that one in the bottom left corner of the screenshot that matters.

I had a similar issue to your's once, except everything was formatted in euros. I ended up finding a script to essentially clear out all the styles and rebuild the standard style database - like this (found [ur=http://www.mrexcel.com/forum/excel-questions/390298-cell-styles-gone-wild-how-do-i-delete-them.htmll]here[/url]):
Code: [Select]
Sub RebuildDefaultStyles()'The purpose of this macro is to remove all styles in the active'workbook and rebuild the default styles.'It rebuilds the default styles by merging them from a new workbook.'Dimension variables.   Dim MyBook As Workbook   Dim tempBook As Workbook   Dim CurStyle As Style   'Set MyBook to the active workbook.   Set MyBook = ActiveWorkbook   On Error Resume Next   'Delete all the styles in the workbook.   For Each CurStyle In MyBook.Styles      'If CurStyle.Name <> "Normal" Then CurStyle.Delete      Select Case CurStyle.Name         Case "20% - Accent1", "20% - Accent2", _               "20% - Accent3", "20% - Accent4", "20% - Accent5", "20% - Accent6", _               "40% - Accent1", "40% - Accent2", "40% - Accent3", "40% - Accent4", _               "40% - Accent5", "40% - Accent6", "60% - Accent1", "60% - Accent2", _               "60% - Accent3", "60% - Accent4", "60% - Accent5", "60% - Accent6", _               "Accent1", "Accent2", "Accent3", "Accent4", "Accent5", "Accent6", _               "Bad", "Calculation", "Check Cell", "Comma", "Comma [0]", "Currency", _               "Currency [0]", "Explanatory Text", "Good", "Heading 1", "Heading 2", _               "Heading 3", "Heading 4", "Input", "Linked Cell", "Neutral", "Normal", _               "Note", "Output", "Percent", "Title", "Total", "Warning Text"            'Do nothing, these are the default styles         Case Else            CurStyle.Delete      End Select   Next CurStyle   'Open a new workbook.   Set tempBook = Workbooks.Add   'Disable alerts so you may merge changes to the Normal style   'from the new workbook.   Application.DisplayAlerts = False   'Merge styles from the new workbook into the existing workbook.   MyBook.Styles.Merge Workbook:=tempBook   'Enable alerts.   Application.DisplayAlerts = True   'Close the new workbook.   tempBook.CloseEnd Sub
ETA: This will only work if new workbooks open fine - with no style/format issues.
Title: Re: Excel Problem
Post by: yitzf on March 06, 2016, 09:09:08 PM
Is there a simple formula for cell A1 to equal cell A1 on the previous sheet (tab)?

Code: [Select]
=REPLACE(CELL("filename",A1),1,FIND("]",CELL("filename",A1)),"") Will give you the current sheet name. If your sheets are named numerically you might be in luck.
Title: Re: Excel Problem
Post by: Jkhein on March 09, 2016, 12:38:39 AM
I have number 1-99 in a column and trying to sort by value, however it's not recognizing double digits as higher value (eg. 55 is going next to 5, 12 is all the way at bottom by 1) how do I need to format this column so it should work properly?
Title: Re: Excel Problem
Post by: aygart on March 09, 2016, 12:41:01 AM
I have number 1-99 in a column and trying to sort by value, however it's not recognizing double digits as higher value (eg. 55 is going next to 5, 12 is all the way at bottom by 1) how do I need to format this column so it should work properly?
It is probably formatted as text not a number.
Title: Re: Excel Problem
Post by: Jkhein on March 09, 2016, 12:42:55 AM
It is probably formatted as text not a number.
I changed it to number already but still not working
Title: Re: Excel Problem
Post by: aygart on March 09, 2016, 12:48:33 AM
I changed it to number already but still not working
I've sometimes found that to change the format of multiple cells you need to change the format and then go through them one by one and place the cursor in the edit box and hit enter
Title: Re: Excel Problem
Post by: Jkhein on March 09, 2016, 12:53:11 AM
I've sometimes found that to change the format of multiple cells you need to change the format and then go through them one by one and place the cursor in the edit box and hit enter
when i do that the number does indeed flip to the right side of the box if that means anything, but I have hundreds of rows....
Title: Re: Excel Problem
Post by: Jkhein on March 09, 2016, 01:06:51 AM
I've sometimes found that to change the format of multiple cells you need to change the format and then go through them one by one and place the cursor in the edit box and hit enter
the fix:
Set the column to desired format and then select all the cells in that column. Go to Data-->Text To Columns and press finish. That should get them all in one swoop.
Title: Re: Excel Problem
Post by: JosephM on March 09, 2016, 03:46:32 AM
when i do that the number does indeed flip to the right side of the box if that means anything, but I have hundreds of rows....

Right click the top of the column, there should be an option to format cells
Title: Re: Excel Problem
Post by: aygart on March 09, 2016, 09:34:07 AM
Right click the top of the column, there should be an option to format cells
That will only work if you want to change the entire column
Title: Re: Excel Problem
Post by: etech0 on March 09, 2016, 10:18:21 AM
the fix:
Set the column to desired format and then select all the cells in that column. Go to Data-->Text To Columns and press finish. That should get them all in one swoop.
+1
Title: Re: Excel Problem
Post by: churnbabychurn on March 09, 2016, 01:04:37 PM
Or select all the affected cells and click the error in top one, convert to number. Will convert them all
Title: Re: Excel Problem
Post by: aygart on March 09, 2016, 01:05:49 PM
Or select all the affected cells and click the error in top one, convert to number. Will convert them all
What if there is no error?
Title: Re: Excel Problem
Post by: Jkhein on March 09, 2016, 01:13:23 PM
Or select all the affected cells and click the error in top one, convert to number. Will convert them all
Good, was wondering how to do that
Title: Re: Excel Problem
Post by: etech0 on March 09, 2016, 03:20:13 PM
Is there a format type that will show TRUE if the value is 1, and FALSE if it's 0?
Title: Re: Excel Problem
Post by: lubaby on March 09, 2016, 04:33:10 PM
Is there a format type that will show TRUE if the value is 1, and FALSE if it's 0?
Don't know about format, but a simple formula should do the trick. If the 1 / 0 is the result of a formula, you should be able to nest this inside.

=A1>=1

ETA: The term you are looking for is "Boolean". Excel does not have an to format as Boolean, but you can generate it by formula (as above) or by VBA.
Title: Re: Excel Problem
Post by: etech0 on March 09, 2016, 05:23:20 PM
Don't know about format, but a simple formula should do the trick. If the 1 / 0 is the result of a formula, you should be able to nest this inside.

=A1>=1

ETA: The term you are looking for is "Boolean". Excel does not have an to format as Boolean, but you can generate it by formula (as above) or by VBA.
Yeah, but then I need another column. In this situation it's probably easier to just change them manually (sort the column, select the 1s, type True and press control-enter...)

Thanks, though
Title: Re: Excel Problem
Post by: etech0 on March 10, 2016, 03:23:44 PM
Yeah, but then I need another column. In this situation it's probably easier to just change them manually (sort the column, select the 1s, type True and press control-enter...)

Thanks, though
I wrote a macro:
Code: [Select]
Sub TrueFalse()    For Each cell In Selection        If cell.Value = 0 Then            cell.Value = "FALSE"        Else            cell.Value = "TRUE"        End If    NextEnd Sub
Title: Re: Excel Problem
Post by: churnbabychurn on March 10, 2016, 04:11:24 PM
I think it's just that one in the bottom left corner of the screenshot that matters.

I had a similar issue to your's once, except everything was formatted in euros. I ended up finding a script to essentially clear out all the styles and rebuild the standard style database - like this (found [ur=http://www.mrexcel.com/forum/excel-questions/390298-cell-styles-gone-wild-how-do-i-delete-them.htmll]here[/url]):
Code: [Select]
Sub RebuildDefaultStyles()'The purpose of this macro is to remove all styles in the active'workbook and rebuild the default styles.'It rebuilds the default styles by merging them from a new workbook.'Dimension variables.   Dim MyBook As Workbook   Dim tempBook As Workbook   Dim CurStyle As Style   'Set MyBook to the active workbook.   Set MyBook = ActiveWorkbook   On Error Resume Next   'Delete all the styles in the workbook.   For Each CurStyle In MyBook.Styles      'If CurStyle.Name <> "Normal" Then CurStyle.Delete      Select Case CurStyle.Name         Case "20% - Accent1", "20% - Accent2", _               "20% - Accent3", "20% - Accent4", "20% - Accent5", "20% - Accent6", _               "40% - Accent1", "40% - Accent2", "40% - Accent3", "40% - Accent4", _               "40% - Accent5", "40% - Accent6", "60% - Accent1", "60% - Accent2", _               "60% - Accent3", "60% - Accent4", "60% - Accent5", "60% - Accent6", _               "Accent1", "Accent2", "Accent3", "Accent4", "Accent5", "Accent6", _               "Bad", "Calculation", "Check Cell", "Comma", "Comma [0]", "Currency", _               "Currency [0]", "Explanatory Text", "Good", "Heading 1", "Heading 2", _               "Heading 3", "Heading 4", "Input", "Linked Cell", "Neutral", "Normal", _               "Note", "Output", "Percent", "Title", "Total", "Warning Text"            'Do nothing, these are the default styles         Case Else            CurStyle.Delete      End Select   Next CurStyle   'Open a new workbook.   Set tempBook = Workbooks.Add   'Disable alerts so you may merge changes to the Normal style   'from the new workbook.   Application.DisplayAlerts = False   'Merge styles from the new workbook into the existing workbook.   MyBook.Styles.Merge Workbook:=tempBook   'Enable alerts.   Application.DisplayAlerts = True   'Close the new workbook.   tempBook.CloseEnd Sub
ETA: This will only work if new workbooks open fine - with no style/format issues.
This worked great, thanks!

Workbooks are still very slow though. At least I can now control the formatting.
Title: Re: Excel Problem
Post by: Jkhein on March 14, 2016, 07:07:19 PM
Is there any way to remove a duplicate word anytime there is one in a specific column? remove dulicates only works on dulpicate values, I want that there should not be any of the same word more then once.
Find and Replace would work if I manually go through each word but I'm wondering if there are any other ways to do this.
Title: Re: Excel Problem
Post by: etech0 on March 14, 2016, 07:45:23 PM
Is there any way to remove a duplicate word anytime there is one in a specific column? remove dulicates only works on dulpicate values, I want that there should not be any of the same word more then once.
Find and Replace would work if I manually go through each word but I'm wondering if there are any other ways to do this.
Do you meant the same word twice, within one cell?
Title: Re: Excel Problem
Post by: Jkhein on March 14, 2016, 08:46:27 PM
Do you meant the same word twice, within one cell?
I mean within a certain range - I can put it into one cell if needed to be able to do this
Title: Re: Excel Problem
Post by: churnbabychurn on March 14, 2016, 08:51:22 PM
Is there any way to remove a duplicate word anytime there is one in a specific column? remove dulicates only works on dulpicate values, I want that there should not be any of the same word more then once.
Find and Replace would work if I manually go through each word but I'm wondering if there are any other ways to do this.
Text is a value also. Not sure why remove duplicates is not working?

You can make a rule and then sort by it or something..
Title: Re: Excel Problem
Post by: etech0 on March 14, 2016, 08:57:58 PM
I mean within a certain range - I can put it into one cell if needed to be able to do this
I'm not sure I understand your situation. Can you post a small sample of your data?
Title: Re: Excel Problem
Post by: yitzf on March 14, 2016, 09:17:17 PM
Is there any way to remove a duplicate word anytime there is one in a specific column? remove dulicates only works on dulpicate values, I want that there should not be any of the same word more then once.
Find and Replace would work if I manually go through each word but I'm wondering if there are any other ways to do this.

Paste this into a vba module (Alt+F11 then right click on your book in the left pane, and insert->module)
Code: [Select]
Public Function GetUnique(rng As Range, Optional Outputseparator As String = " ") As String'*******************'Helped by'http://stackoverflow.com/questions/15144816/batch-string-concatenation-in-excel'http://www.mrexcel.com/forum/excel-questions/740936-how-find-duplicate-word-cell.html'*******************Dim arr As VariantDim myDic As ObjectDim outDic As ObjectDim L As LongDim concattedList As StringDim rangeCell As RangeDim rangeText As StringDim delimiter As String    delimiter = " "    concattedList = ""  For Each rangeCell In rng.Cells    rangeText = rangeCell.Value        If Len(rangeText) > 0 Then           If (Len(concattedList) > 0) Then        concattedList = concattedList & delimiter & rangeText      Else        concattedList = rangeText      End If    End If  Next rangeCellarr = Split(concattedList)If UBound(arr) > 0 Then    Set myDic = CreateObject("Scripting.Dictionary")    Set outDic = CreateObject("Scripting.Dictionary")    For L = LBound(arr) To UBound(arr)        If Not myDic.exists(arr(L)) Then            myDic(arr(L)) = 0        Else:            outDic(arr(L)) = 0        End If    Next    GetUnique = Join(myDic.Keys, Outputseparator)End IfEnd Function
Then in your worksheet type =GetUnique(A1:A200)
(substitute A1:A200 with your range) It works like any other function in excel (i.e. sum or vlookup)

This will give you a list with spaces in between each word. If you want another delimiter - after the range type ,";" (where ; is the delimiter) for example GetUnique(A1:A200,";").
Title: Re: Excel Problem
Post by: Jkhein on March 14, 2016, 11:33:38 PM
I'm not sure I understand your situation. Can you post a small sample of your data?
Text is a value also. Not sure why remove duplicates is not working?

You can make a rule and then sort by it or something..
I have a column with 1000 keywords, for eg. cell 1, tasty fish, cell 2, tasty meat, cell 3, tasty chicken, cell 4, good fruit, cell 5, good vegetables, and so on, I want to remove all the duplicated like "tasty" and "good", only keep the unique words.
Remove duplicates only removes if there are duplicate cell values like twice "tasty meat" or twice "tasty chicken"
Paste this into a vba module
will try soon thanks
Title: Re: Excel Problem
Post by: etech0 on March 14, 2016, 11:43:22 PM
I have a column with 1000 keywords, for eg. cell 1, tasty fish, cell 2, tasty meat, cell 3, tasty chicken, cell 4, good fruit, cell 5, good vegetables, and so on, I want to remove all the duplicated like "tasty" and "good", only keep the unique words.
Remove duplicates only removes if there are duplicate cell values like twice "tasty meat" or twice "tasty chicken"will try soon thanks
What if there was "tasty fish" and "good fish"? Would you want to remove both instances of the word "fish"? (Or does that not come up anyways?)
Title: Re: Excel Problem
Post by: aygart on March 14, 2016, 11:56:12 PM
I have a column with 1000 keywords, for eg. cell 1, tasty fish, cell 2, tasty meat, cell 3, tasty chicken, cell 4, good fruit, cell 5, good vegetables, and so on, I want to remove all the duplicated like "tasty" and "good", only keep the unique words.
Remove duplicates only removes if there are duplicate cell values like twice "tasty meat" or twice "tasty chicken"will try soon thanks
how many unique duplicate words are there
Title: Re: Excel Problem
Post by: Jkhein on March 15, 2016, 12:02:49 AM
What if there was "tasty fish" and "good fish"? Would you want to remove both instances of the word "fish"? (Or does that not come up anyways?)
yes I would like to remove that too, I don't want any two of the same words - all should be unique
how many unique duplicate words are there
probably 15-20 words are repeated many times
Title: Re: Excel Problem
Post by: Jkhein on March 15, 2016, 12:18:36 AM
Paste this into a vba module (Alt+F11 then right click on your book in the left pane, and insert->module)
Code: [Select]
Public Function GetUnique(rng As Range, Optional Outputseparator As String = " ") As String'*******************'Helped by'http://stackoverflow.com/questions/15144816/batch-string-concatenation-in-excel'http://www.mrexcel.com/forum/excel-questions/740936-how-find-duplicate-word-cell.html'*******************Dim arr As VariantDim myDic As ObjectDim outDic As ObjectDim L As LongDim concattedList As StringDim rangeCell As RangeDim rangeText As StringDim delimiter As String    delimiter = " "    concattedList = ""  For Each rangeCell In rng.Cells    rangeText = rangeCell.Value        If Len(rangeText) > 0 Then           If (Len(concattedList) > 0) Then        concattedList = concattedList & delimiter & rangeText      Else        concattedList = rangeText      End If    End If  Next rangeCellarr = Split(concattedList)If UBound(arr) > 0 Then    Set myDic = CreateObject("Scripting.Dictionary")    Set outDic = CreateObject("Scripting.Dictionary")    For L = LBound(arr) To UBound(arr)        If Not myDic.exists(arr(L)) Then            myDic(arr(L)) = 0        Else:            outDic(arr(L)) = 0        End If    Next    GetUnique = Join(myDic.Keys, Outputseparator)End IfEnd Function
Then in your worksheet type =GetUnique(A1:A200)
(substitute A1:A200 with your range) It works like any other function in excel (i.e. sum or vlookup)

This will give you a list with spaces in between each word. If you want another delimiter - after the range type ,";" (where ; is the delimiter) for example GetUnique(A1:A200,";").
I'm getting a formula error
1) Is after pasting this into the module do I need to save it etc or just go straight back to the worksheet?
2) do I not need to remove anything from that text before pasting? (like the first few lines)
Title: Re: Excel Problem
Post by: yitzf on March 15, 2016, 12:31:47 AM
I'm getting a formula error
1) Is after pasting this into the module do I need to save it etc or just go straight back to the worksheet?
2) do I not need to remove anything from that text before pasting? (like the first few lines)

When you open up the workbook make sure to enable the yellow bar that pops up under the formula bar.

-no need to save
-copy paste everything
Title: Re: Excel Problem
Post by: Jkhein on March 15, 2016, 12:47:05 AM
When you open up the workbook make sure to enable the yellow bar that pops up under the formula bar.

-no need to save
-copy paste everything
not completely sure which yellow bar you referring to but still getting the error
Title: Re: Excel Problem
Post by: yitzf on March 15, 2016, 12:59:49 AM
not completely sure which yellow bar you referring to but still getting the error
When you open an excel file that has macros, a yellow bar will pop up under the formula bar and ask you to enable macros.

Title: Re: Excel Problem
Post by: yitzf on March 15, 2016, 01:16:14 AM
.
Title: Re: Excel Problem
Post by: churnbabychurn on March 15, 2016, 07:43:28 AM
yes I would like to remove that too, I don't want any two of the same words - all should be uniqueprobably 15-20 words are repeated many times
I think you might be able to create a rule to highlight if contains duplicates
Title: Re: Excel Problem
Post by: Jkhein on March 15, 2016, 10:26:02 AM
.
AMAZING! works like a charm! thank you
ETA: what do I do now when I want to close and save this file with this formula? I can just close it and close the other page where I inserted the module without saving it?
Title: Re: Excel Problem
Post by: skyguy918 on March 15, 2016, 10:51:26 AM
AMAZING! works like a charm! thank you
ETA: what do I do now when I want to close and save this file with this formula? I can just close it and close the other page where I inserted the module without saving it?
Modules are saved automatically when you save the workbook (ie, you still have to save the workbook as you normally would in Excel). The VB editor opens as a separate window, but it's one file.
Title: Re: Excel Problem
Post by: Mordyk on March 15, 2016, 10:57:35 AM
i have a formula but instead of the cell returning the outcome it gives me the formula in text format. how can i help that?
Title: Re: Excel Problem
Post by: skyguy918 on March 15, 2016, 11:00:43 AM
i have a formula but instead of the cell returning the outcome it gives me the formula in text format. how can i help that?
Change the formatting. Also, click into the cell to make sure you don't have an apostrophe at the beginning of the formula (which would effectively turn it into text).
Title: Re: Excel Problem
Post by: Mordyk on March 15, 2016, 11:02:00 AM
Change the formatting. Also, click into the cell to make sure you don't have an apostrophe at the beginning of the formula (which would effectively turn it into text).
i checked both of that removed all formatting. thanks but i already found a workaround
Title: Re: Excel Problem
Post by: etech0 on March 15, 2016, 11:02:34 AM
i have a formula but instead of the cell returning the outcome it gives me the formula in text format. how can i help that?
try changing the cell format. Also you can try pressing control-~ (it's called tilde)
Title: Re: Excel Problem
Post by: yitzf on March 15, 2016, 11:10:39 AM
AMAZING! works like a charm! thank you
ETA: what do I do now when I want to close and save this file with this formula? I can just close it and close the other page where I inserted the module without saving it?
My pleasure

Modules are saved automatically when you save the workbook (ie, you still have to save the workbook as you normally would in Excel). The VB editor opens as a separate window, but it's one file.
This
Title: Re: Excel Problem
Post by: churnbabychurn on March 15, 2016, 11:16:44 AM
this jsut messed me up. how do i undo this?
Do it again
Title: Re: Excel Problem
Post by: Mordyk on March 15, 2016, 11:17:21 AM
Do it again
done. i deleted the post before you answered. but thanks :)
Title: Re: Excel Problem
Post by: Work-for-ur-muny on March 15, 2016, 02:01:14 PM
I have a spreadsheet that keeps track of (for example) every time someone enters my store. Column A is the last name and column B is the first name, (with other data entered in subsequent columns). I entered the following formula into column Q:
Code: [Select]
=COUNTIFS($A$2:$A$1000,A2,$B$2:$B$1000,B2)(I chose till row 1000 because I knew I won't exceed that amount of rows anyway.)
My question is, how can I modify the formula for it to meet the following two criteria:
• Categorize the customer by category (which is manually entered in column C). IOW if two customers with the same name are entered it will count them separately due to the difference in category; and,
• It should only count how many times a given customer entered the store within the last two weeks, or any other specified amount of recent time. (Dates on which customers visited are also entered manually in a separate column.)
TIA
Title: Re: Excel Problem
Post by: skyguy918 on March 15, 2016, 02:56:50 PM
I have a spreadsheet that keeps track of (for example) every time someone enters my store. Column A is the last name and column B is the first name, (with other data entered in subsequent columns). I entered the following formula into column Q:
Code: [Select]
=COUNTIFS($A$2:$A$1000,A2,$B$2:$B$1000,B2)(I chose till row 1000 because I knew I won't exceed that amount of rows anyway.)
My question is, how can I modify the formula for it to meet the following two criteria:
• Categorize the customer by category (which is manually entered in column C). IOW if two customers with the same name are entered it will count them separately due to the difference in category; and,
• It should only count how many times a given customer entered the store within the last two weeks, or any other specified amount of recent time. (Dates on which customers visited are also entered manually in a separate column.)
TIA
Just add more criteria into the COUNTIFS. The first item (category) would certainly be a simple extension of what you have already. And the second item (time-frame) would be similar, but you'd end up repeating the condition. For example:

Place the category in Column C, and the date of entry into column D. Your new formula in Column Q would then be:
=COUNTIFS($A$2:$A$1000,A2,$B$2:$B$1000,B2,$C$2:$C$1000,C2,$D$2:$D$1000,">="&?x?,$D$2:$D$1000,"<="&?y?
where the ?x? represents the beginning of the time-frame you're looking at, and the ?y? represents the end of the time-frame you're looking for. Ovbiously those values would be placed in a fixed spot off to the side somewhere.
Title: Re: Excel Problem
Post by: yitzf on March 15, 2016, 03:05:41 PM
I have a spreadsheet that keeps track of (for example) every time someone enters my store. Column A is the last name and column B is the first name, (with other data entered in subsequent columns). I entered the following formula into column Q:
Code: [Select]
=COUNTIFS($A$2:$A$1000,A2,$B$2:$B$1000,B2)(I chose till row 1000 because I knew I won't exceed that amount of rows anyway.)
My question is, how can I modify the formula for it to meet the following two criteria:
• Categorize the customer by category (which is manually entered in column C). IOW if two customers with the same name are entered it will count them separately due to the difference in category; and,
• It should only count how many times a given customer entered the store within the last two weeks, or any other specified amount of recent time. (Dates on which customers visited are also entered manually in a separate column.)
TIA

For date (where col C is the date they entered)

Code: [Select]
=COUNTIFS($A$2:$A$1000,A3,$B$2:$B$1000,B3,$C$2:$C$1000,">="&TODAY()-14)
Title: Re: Excel Problem
Post by: skyguy918 on March 15, 2016, 03:41:36 PM
For date (where col C is the date they entered)

Code: [Select]
=COUNTIFS($A$2:$A$1000,A3,$B$2:$B$1000,B3,$C$2:$C$1000,">="&TODAY()-14)
Just remember that this only works if you're always using the current date as the endpoint of your range (ie and not an earlier date). You could make this setup variable by replacing that 14 with a fixed reference to a cell somewhere on the sheet that you can enter any number of days in.
Title: Re: Excel Problem
Post by: Work-for-ur-muny on March 15, 2016, 04:25:30 PM
For date (where col C is the date they entered)

Code: [Select]
=COUNTIFS($A$2:$A$1000,A3,$B$2:$B$1000,B3,$C$2:$C$1000,">="&TODAY()-14)
Just remember that this only works if you're always using the current date as the endpoint of your range (ie and not an earlier date). You could make this setup variable by replacing that 14 with a fixed reference to a cell somewhere on the sheet that you can enter any number of days in.
Basically, when a customer walks in I want to see how many times he entered in the last two weeks.
Title: Re: Excel Problem
Post by: yitzf on March 15, 2016, 04:33:16 PM
Basically, when a customer walks in I want to see how many times he entered in the last two weeks.

I it's always a set amount of days then mine will work fine, otherwise (as skyguy said) you can reference a cell and enter the amount of previous days there.
Title: Re: Excel Problem
Post by: jackofall on March 15, 2016, 05:30:48 PM
I have office 2016. I cant open any Excel sheet that is saved as the older version unless I open a blank Excel look for the file and open. This is really a pain in the neck. Anyway to change this so I can open these files just by clicking on them?
TIA
Title: Re: Excel Problem
Post by: lechatchileh ariber on April 15, 2016, 04:34:32 AM
What's wrong with this? It keeps giving me an N/A or error.
=sumif(A:A, "MR", (B:B-C:C))
Title: Re: Excel Problem
Post by: lubaby on April 15, 2016, 10:24:52 AM
What's wrong with this? It keeps giving me an N/A or error.
=sumif(A:A, "MR", (B:B-C:C))
Replace it with this to start. Will try to simplify it if I have more time.

=SUMIF(A:A,"MR",B:B)-SUMIF(A:A,"MR",C:C)
Title: Re: Excel Problem
Post by: lechatchileh ariber on April 15, 2016, 10:58:09 AM
Replace it with this to start. Will try to simplify it if I have more time.

=SUMIF(A:A,"MR",B:B)-SUMIF(A:A,"MR",C:C)
Thank you.
Title: Re: Excel Problem
Post by: churnbabychurn on June 10, 2016, 10:24:51 AM
How do I extract a bunch of PDFs that are embedded within a bunch of excel files?
Even drag and drop not working..
Title: Re: Excel Problem
Post by: aygart on June 10, 2016, 10:44:07 AM
How do I extract a bunch of PDFs that are embedded within a bunch of excel files?
Even drag and drop not working..
http://www.howtogeek.com/50628/easily-extract-images-text-and-embedded-files-from-an-office-2007-document/
Title: Re: Excel Problem
Post by: jackofall on August 08, 2016, 07:55:37 PM
I have data sheet as follows.
Colum a has lots of different items. Column b has the quantity ordered. I would like to summarize the order on second tab. What is the best way to pull this data into tab 2.
My first thought is a simple pivot table. My question is how do I pivot the data so only items that have a quantity show up in the pivot table?
PS also open to better ideas.
TIA
Title: Re: Excel Problem
Post by: lubaby on August 08, 2016, 09:12:10 PM
I have data sheet as follows.
Colum a has lots of different items. Column b has the quantity ordered. I would like to summarize the order on second tab. What is the best way to pull this data into tab 2.
My first thought is a simple pivot table. My question is how do I pivot the data so only items that have a quantity show up in the pivot table?
PS also open to better ideas.
TIA
Pivot tables can have a filter to only show lines with quantity higher then 0.
Title: Re: Excel Problem
Post by: jackofall on August 08, 2016, 09:15:47 PM
Pivot tables can have a filter to only show lines with quantity higher then 0.
I don't want to keep on toggling the filter. Any other options.
Title: Re: Excel Problem
Post by: lubaby on August 08, 2016, 09:48:45 PM
I don't want to keep on toggling the filter. Any other options.
Certainly.

With Excel, there's always more options. Just depends how creative you can get..

This should do it for you as a first draft.
A) Make a new sheet.
B) Copy the list of items from Sheet1 Column A to Sheet2 Column A.
C) Highlight the new Column A, then from the top bar, click Data, then Remove Duplicates.
You should now have a list of all the items from Sheet1 with only 1 rendition of each line item.

D) Now, in Sheet2 Column B1, enter the following formula. Adjust line number "A1" if there's headers. Change "Sheet1" to whatever your datasheet is called:
Code: [Select]
=SUMIF(Sheet1!A:A,A1,Sheet1!B:B)
If you'll be doing this a lot, we can formula-ize the first 3 steps (or even write a Macro to do the whole thing for you with just a keyboard shortcut).
Title: Re: Excel Problem
Post by: jackofall on August 08, 2016, 11:18:23 PM
Certainly.

With Excel, there's always more options. Just depends how creative you can get..

This should do it for you as a first draft.
A) Make a new sheet.
B) Copy the list of items from Sheet1 Column A to Sheet2 Column A.
C) Highlight the new Column A, then from the top bar, click Data, then Remove Duplicates.
You should now have a list of all the items from Sheet1 with only 1 rendition of each line item.

D) Now, in Sheet2 Column B1, enter the following formula. Adjust line number "A1" if there's headers. Change "Sheet1" to whatever your datasheet is called:
Code: [Select]
=SUMIF(Sheet1!A:A,A1,Sheet1!B:B)
If you'll be doing this a lot, we can formula-ize the first 3 steps (or even write a Macro to do the whole thing for you with just a keyboard shortcut).
Thanks. But I need something a little mores simple. As this will be used over and over again with non excel experts.
What I need, I would imagine, is pretty simple, yet I can figure out an easy solution.
What I have is an order sheet with lots of items. Each workbook is a unique order. I would like to summarize the order in a new sheet and only pull the items that are relevant to this order and not the whole list of all available items.
......
Title: Re: Excel Problem
Post by: lubaby on August 09, 2016, 12:03:09 AM
Thanks. But I need something a little mores simple. As this will be used over and over again with non excel experts.
What I need, I would imagine, is pretty simple, yet I can figure out an easy solution.
What I have is an order sheet with lots of items. Each workbook is a unique order. I would like to summarize the order in a new sheet and only pull the items that are relevant to this order and not the whole list of all available items.
......
So something like this?

All items:
(http://content.screencast.com/users/Ben6955/folders/Jing/media/6edf8fca-c624-4aa5-b4e9-24f79e188203/2016-08-08_2359.png)

Only items on order:
(http://content.screencast.com/users/Ben6955/folders/Jing/media/04221a6a-3523-4217-846f-fbb5193c6fca/2016-08-09_0000.png)
Title: Re: Excel Problem
Post by: jackofall on August 09, 2016, 12:24:51 AM
So something like this?

All items:
(http://content.screencast.com/users/Ben6955/folders/Jing/media/6edf8fca-c624-4aa5-b4e9-24f79e188203/2016-08-08_2359.png)

Only items on order:
(http://content.screencast.com/users/Ben6955/folders/Jing/media/04221a6a-3523-4217-846f-fbb5193c6fca/2016-08-09_0000.png)
Yes!!
Title: Re: Excel Problem
Post by: Mikeoracle on August 09, 2016, 09:16:17 AM
Yes!!
Will the order sheet ever have an item listed more than once?
Will the order sheet always list all items and its just the qty that changes based on the order?
Title: Re: Excel Problem
Post by: jackofall on August 09, 2016, 10:24:11 AM
Will the order sheet ever have an item listed more than once?
Will the order sheet always list all items and its just the qty that changes based on the order?
No
Correct. And most items will be 0.
Title: Re: Excel Problem
Post by: lubaby on August 09, 2016, 10:47:32 AM
Yes!!
So I have a working Sample Workbook for you.

Now we just need to figure out the simplest way for you to implement it.

Try this:
A) I'm assuming your worksheets have headers, so you need to adjust the formulas if there aren't any. If your worksheets have names other then the standard Sheet1, Sheet2, Sheet3 change it now to Sheet1, Sheet2, Sheet3 so you don't need to update the formulas. You can change the worksheet names after and it will auto update the formulas.

B) Create a Sheet2. In Sheet2 field A2 paste the following, then drag it down as to as many lines as Sheet1 has.
Code: [Select]
=IF(Sheet1!B2>0,Sheet1!A2,"")this is pulling the data lines from Sheet1 that have quantity on order greater then 0
You can ignore this sheet now. I'm just using it for the logic so your other worksheets look clean.

C) Create a Sheet3. Paste the following into Sheet3 field A2. Then click into the text and do CTRL+SHIFT+ENTER to make it an Array Formula.
Then, drag it down to as many lines as is in Sheet1. (The formula is counting up to 5001 lines, so change the number to higher if needed).
Code: [Select]
=(IFERROR(INDEX(Sheet2!A$2:A$5001,SMALL(IF(Sheet2!A$2:A$5001<>"",ROW(Sheet2!A$2:A$5001)-ROW(Sheet2!A$2)+1),ROWS(Sheet3!A$2:A2))),""))

E) In Sheet3 field B2, paste the following.
Code: [Select]
=IFERROR(INDEX(Sheet1!$B$2:$B$5001,MATCH($A2,Sheet1!$A$2:$A$5001)),"") Let me know if there are any problems or changes you want to see. Title: Re: Excel Problem Post by: jackofall on August 09, 2016, 11:23:35 AM So I have a working Sample Workbook for you. Now we just need to figure out the simplest way for you to implement it. Try this: A) I'm assuming your worksheets have headers, so you need to adjust the formulas if there aren't any. If your worksheets have names other then the standard Sheet1, Sheet2, Sheet3 change it now to Sheet1, Sheet2, Sheet3 so you don't need to update the formulas. You can change the worksheet names after and it will auto update the formulas. B) Create a Sheet2. In Sheet2 field A2 paste the following, then drag it down as to as many lines as Sheet1 has. Code: [Select] =IF(Sheet1!B2>0,Sheet1!A2,"")this is pulling the data lines from Sheet1 that have quantity on order greater then 0 You can ignore this sheet now. I'm just using it for the logic so your other worksheets look clean. C) Create a Sheet3. Paste the following into Sheet3 field A2. Then click into the text and do CTRL+SHIFT+ENTER to make it an Array Formula. Then, drag it down to as many lines as is in Sheet1. (The formula is counting up to 5001 lines, so change the number to higher if needed). Code: [Select] =(IFERROR(INDEX(Sheet2!A$2:A$5001,SMALL(IF(Sheet2!A$2:A$5001<>"",ROW(Sheet2!A$2:A$5001)-ROW(Sheet2!A$2)+1),ROWS(Sheet3!A$2:A2))),"")) E) In Sheet3 field B2, paste the following. Code: [Select] =IFERROR(INDEX(Sheet1!$B$2:$B$5001,MATCH($A2,Sheet1!$A$2:$A$5001)),"")
Let me know if there are any problems or changes you want to see.
I will try it and let you know!
Dude you are amazing! You took the time and effort to help a stranger......
Title: Re: Excel Problem
Post by: churnbabychurn on August 09, 2016, 11:46:00 AM
So something like this?

All items:
(http://content.screencast.com/users/Ben6955/folders/Jing/media/6edf8fca-c624-4aa5-b4e9-24f79e188203/2016-08-08_2359.png)

Only items on order:
(http://content.screencast.com/users/Ben6955/folders/Jing/media/04221a6a-3523-4217-846f-fbb5193c6fca/2016-08-09_0000.png)
Cant we just copy sheet 1 to sheet 2 and then just filter or sort column b by items above zero? What am I missing?
Title: Re: Excel Problem
Post by: lubaby on August 09, 2016, 11:55:35 AM
Cant we just copy sheet 1 to sheet 2 and then just filter or sort column b by items above zero? What am I missing?
He could theoretically also write the order information down by hand and keep giant ledger books for everything.

In all seriousness though..
By designing and implementing formulas or macros into any workbook, you take out all the repetitive or manual tasks out of it.

Your solution has him doing 4-5 steps each time. Would be simpler to just do a pivot table each time instead of your idea, but that doesn't work for @jackofall.
Title: Re: Excel Problem
Post by: skyguy918 on August 09, 2016, 11:56:11 AM
Cant we just copy sheet 1 to sheet 2 and then just filter or sort column b by items above zero? What am I missing?
I assume he wants to set this up once and have non-technical users input on sheet1 and print off sheet2.

@jackofall - What's wrong with the pivot chart option? If the list of items on you 'input' sheet is static, you shouldn't have to toggle anything each time. Your only instructions to the users should be to input the 'order' on the 'input' sheet, then go to the 'output' sheet, right click on the chart and hit refresh. If that last step is too much, you can pretty easily put a button on the sheet that refreshes the pivot table. If you want it to actually print, you can easily build that in as well (potentially no need for a second sheet even).
Title: Re: Excel Problem
Post by: jackofall on August 09, 2016, 12:46:31 PM
He could theoretically also write the order information down by hand and keep giant ledger books for everything.

In all seriousness though..
By designing and implementing formulas or macros into any workbook, you take out all the repetitive or manual tasks out of it.

Your solution has him doing 4-5 steps each time. Would be simpler to just do a pivot table each time instead of your idea, but that doesn't work for @jackofall.
+100
Title: Re: Excel Problem
Post by: jackofall on August 09, 2016, 12:49:33 PM
I assume he wants to set this up once and have non-technical users input on sheet1 and print off sheet2.

@jackofall - What's wrong with the pivot chart option? If the list of items on you 'input' sheet is static, you shouldn't have to toggle anything each time. Your only instructions to the users should be to input the 'order' on the 'input' sheet, then go to the 'output' sheet, right click on the chart and hit refresh. If that last step is too much, you can pretty easily put a button on the sheet that refreshes the pivot table. If you want it to actually print, you can easily build that in as well (potentially no need for a second sheet even).
2 questions.
1. If the quantity changes for each order wont they have to re-select the filter options?
2. How come I dont see a filter option on my "values" column? see pic
(http://)
Title: Re: Excel Problem
Post by: lubaby on August 09, 2016, 12:50:31 PM
2 questions.
1. If the quantity changes for each order wont they have to re-select the filter options?
2. How come I dont see a filter option on my "values" column? see pic
(http://)
You need to add the filter from the Pivot Table builder on the right side.
Then you'll filter everything except for blank and 0.

There might be a problem with this though (with the re-setting filter you mention). When you refresh manually, it won't pick up the new numbers entered, it will only activate new lines with numbers already used.

If you create a macro to run this, you can have the macro filter all numbers except for 0's and blanks, so then the pivot would work
Title: Re: Excel Problem
Post by: skyguy918 on August 09, 2016, 01:14:58 PM
2 questions.
1. If the quantity changes for each order wont they have to re-select the filter options?
2. How come I dont see a filter option on my "values" column? see pic
(http://)
1. No
2. What lubaby said.
There might be a problem with this though (with the re-setting filter you mention). When you refresh manually, it won't pick up the new numbers entered, it will only activate new lines with numbers already used.
Not what I'm seeing. Test it out. Works for me.

Truth is, if you're interested in doing this all with a button click, you don't need the pivot table at all. Much easier to just write the 'filtering' into the macro. That's easily the cleanest way to do it.

Also, is the idea to print? Or do you need a saved sheet that has the 'filtered' version of the table?
Title: Re: Excel Problem
Post by: lubaby on August 09, 2016, 01:21:53 PM
Test it out. Works for me.
Not working for me (as I wrote in my last post).

Title: Re: Excel Problem
Post by: Mikeoracle on August 09, 2016, 04:33:54 PM

Truth is, if you're interested in doing this all with a button click, you don't need the pivot table at all. Much easier to just write the 'filtering' into the macro. That's easily the cleanest way to do it.

I was thinking the same thing. A simple macro can easily be recorded to do the following steps;
1. Copy the full order form (A:B)
2. Create a new sheet and paste the data
3. Add filter and filter all the 0's or blanks
4. Delete all those rows and unfilter
-end recording
This leaves you with just the items and qty on the order.
After recording you can add a button and assign it to this macro and it should be simple enough for any user.
I didnt get a chance to test it yet, so it may need a minor tweak, but it seems to be the simplest option to me.
Title: Re: Excel Problem
Post by: skyguy918 on August 09, 2016, 04:41:35 PM
I was thinking the same thing. A simple macro can easily be recorded to do the following steps;
1. Copy the full order form (A:B)
2. Create a new sheet and paste the data
3. Add filter and filter all the 0's or blanks
4. Delete all those rows and unfilter
-end recording
This leaves you with just the items and qty on the order.
After recording you can add a button and assign it to this macro and it should be simple enough for any user.
I didnt get a chance to test it yet, so it may need a minor tweak, but it seems to be the simplest option to me.
I meant to actually have the macro loop through the rows, only copying rows with >0 to the second sheet - no filter necessary. But yeah, as always there are a million ways to skin the cat in Excel.
Title: Re: Excel Problem
Post by: Mikeoracle on August 09, 2016, 05:14:08 PM
I was thinking the same thing. A simple macro can easily be recorded to do the following steps;
1. Copy the full order form (A:B)
2. Create a new sheet and paste the data
3. Add filter and filter all the 0's or blanks
4. Delete all those rows and unfilter
-end recording
This leaves you with just the items and qty on the order.
After recording you can add a button and assign it to this macro and it should be simple enough for any user.
I didnt get a chance to test it yet, so it may need a minor tweak, but it seems to be the simplest option to me.
See attached macro-enabled workbook- its nothing fancy, I just quickly put it together.
Title: Re: Excel Problem
Post by: jackofall on August 09, 2016, 06:50:16 PM
Thanks all  for the help! Much appreciated!
Title: Re: Excel Problem
Post by: bubbles on August 09, 2016, 10:22:22 PM
Knew this sounded familiar. Similar problem here http://forums.dansdeals.com/index.php?topic=30173.0

Managed to dig up what I did then. Haven't looked it over and I did this right when I was learning excel so proceed at your own risk :)

See pictures below for what the 2 sheets look like. Formulas for page two (Borrowed) are:
In A3 put
Code: [Select]
=IF(COUNTIF(Input!$A:$A,SMALL(Input!$A:$A,ROW(1:1)))=0,"",VLOOKUP(SMALL(Input!$A:$A,ROW(1:1)),Input!$A:$G,COLUMN(B:B), 0))In B3
Code: [Select]
=IF(COUNTIF(Input!$A:$A,SMALL(Input!$A:$A,ROW(1:1)))=0,"",VLOOKUP(SMALL(Input!$A:$A,ROW(1:1)),Input!$A:$G,COLUMN(C:C), 0))C3 is
Code: [Select]
=IF(COUNTIF(Input!$A:$A,SMALL(Input!$A:$A,ROW(1:1)))=0,"",VLOOKUP(SMALL(Input!$A:$A,ROW(1:1)),Input!$A:$G,COLUMN(D:D), 0))and then drag them all down

Title: Re: Excel Problem
Post by: jackofall on August 22, 2016, 09:47:02 PM
I would like to learn how to set-up a macro that downloads data off a website on a specific schedule. Can someone point to a good resource so I can learn this part of Excel.

TIA.
Title: Re: Excel Problem
Post by: churnbabychurn on August 22, 2016, 10:02:01 PM
I would like to learn how to set-up a macro that downloads data off a website on a specific schedule. Can someone point to a good resource so I can learn this part of Excel.

TIA.
This is what I would do:
Then Google how to set up a Windows scheduler to run it.
Title: Re: Excel Problem
Post by: jackofall on August 22, 2016, 10:19:45 PM
This is what I would do:
Is that specific to the website that l want to download from or it doesn't matter?
Title: Re: Excel Problem
Post by: churnbabychurn on August 22, 2016, 10:39:06 PM
Is that specific to the website that l want to download from or it doesn't matter?
Doesn't matter

Title: Re: Excel Problem
Post by: jackofall on August 23, 2016, 01:03:34 AM
Doesn't matter

Thanks. Will try it in the morning.
Title: Re: Excel Problem
Post by: skyguy918 on August 24, 2016, 09:55:52 PM
Thanks. Will try it in the morning.
Depending on the data, there are much better ways. Excel has some pretty slick tools for pulling data from the web. I'll try to find more info tomorrow.
Title: Re: Excel Problem
Post by: MAJ on October 26, 2016, 01:30:04 PM
So I had the genius idea of making a excel document with important information password protected without wiring down the password.

Naturally I forgot the password, any ways to get around this and get in the file?
Title: Re: Excel Problem
Post by: MarkS on October 26, 2016, 01:34:49 PM
So I had the genius idea of making a excel document with important information password protected without wiring down the password.

Naturally I forgot the password, any ways to get around this and get in the file?
(Email it to yourself and) open in google sheets. Then save it as an excel.
Title: Re: Excel Problem
Post by: DanH on October 26, 2016, 01:38:07 PM
(Email it to yourself and) open in google sheets. Then save it as an excel.
Highly doubt that will work..
Title: Re: Excel Problem
Post by: MarkS on October 26, 2016, 01:44:39 PM
Highly doubt that will work..
I don't know if it still works but it definitely did for a long time.
Title: Re: Excel Problem
Post by: yesitsme on October 26, 2016, 01:50:32 PM
So I had the genius idea of making a excel document with important information password protected without wiring down the password.

Naturally I forgot the password, any ways to get around this and get in the file?
Send me the file I'll send it back unlocked
Title: Re: Excel Problem
Post by: churnbabychurn on October 26, 2016, 02:08:04 PM
Send me the file I'll send it back unlocked
How?
Title: Re: Excel Problem
Post by: MAJ on October 26, 2016, 02:08:41 PM
Highly doubt that will work..
did not work
Title: Re: Excel Problem
Post by: yesitsme on October 26, 2016, 03:18:33 PM
(Email it to yourself and) open in google sheets. Then save it as an excel.
What excel version did you use?
The workbook is protected or the worksheet?
Title: Re: Excel Problem
Post by: churnbabychurn on October 26, 2016, 04:25:33 PM
(Email it to yourself and) open in google sheets. Then save it as an excel.
Didn't work for me on office 16
Title: Re: Excel Problem
Post by: MAJ on October 26, 2016, 05:28:33 PM
What excel version did you use?
The workbook is protected or the worksheet?
2010
workbook
Title: Re: Excel Problem
Post by: DanH on October 26, 2016, 06:57:23 PM
you can try:
Code: [Select]
magnet:?xt=urn:btih:8DEE683FB90A261535EEC5185A890D8AA7A31998&tr=http%3A%2F%2Fbt4.t-ru.org%2Fann%3Fmagnet
Title: Re: Excel Problem
Post by: MAJ on October 27, 2016, 09:31:21 AM
you can try:
Code: [Select]
magnet:?xt=urn:btih:8DEE683FB90A261535EEC5185A890D8AA7A31998&tr=http%3A%2F%2Fbt4.t-ru.org%2Fann%3Fmagnet
where do i try this?
Title: Re: Excel Problem
Post by: churnbabychurn on November 15, 2016, 04:26:24 PM
Cell A1 has a date 11/1/2016

Cell A2 has value "Payments"

In Cell C1 I want to do = A1 & A2 To get : 11/1/2016 Payments. Instead I am getting:  42675Payments

Need to have date format. and also a space would be nice but not necessary.

Thanks
Title: Re: Excel Problem
Post by: mancunian on November 15, 2016, 04:31:54 PM
=TEXT(A1,"m/d/yyyy")&" "&A2
Title: Re: Excel Problem
Post by: churnbabychurn on November 15, 2016, 05:32:01 PM
=TEXT(A1,"m/d/yyyy")&" "&A2
Cool thanks
Title: Re: Excel Problem
Post by: Centurion on November 29, 2016, 12:29:20 PM
good day,
looking for a formula ( for commission) if reach quota = 0.25 if exceed - on the extra i will pay $1.25 so if his quota is 1000 and he sold 2000 i would pay$250 plus $1250= total$1500
thanx
Title: Re: Excel Problem
Post by: mancunian on November 29, 2016, 12:35:27 PM
You do realize that if the guy sells $5,000, you'll be paying him$5,250 commission right?

=A2*0.25+(A3-A2)*1.25

Where A2=Quota and A3=Sales
Title: Re: Excel Problem
Post by: CZ60 on November 29, 2016, 12:35:47 PM
good day,
looking for a formula ( for commission) if reach quota = 0.25 if exceed - on the extra i will pay $1.25 so if his quota is 1000 and he sold 2000 i would pay$250 plus $1250= total$1500
thanx
Assuming your quota is in A4 and his actual sales are in B4 ...

=IF(B4>=A4,A4*0.25+(B4-A4)*1.25,0)
Title: Re: Excel Problem
Post by: mancunian on November 29, 2016, 12:36:38 PM
Assuming your quota is in A4 and his actual sales are in B4 ...

=IF(B4>=A4,A4*0.25+(B4-A4)*1.25,0)
Ye my formula didn't account for sales < quota
Title: Re: Excel Problem
Post by: CZ60 on November 29, 2016, 12:36:41 PM
You do realize that if the guy sells $5,000, you'll be paying him$5,250 commission right?

It may not be dollars - it may be units/widgets etc...
Title: Re: Excel Problem
Post by: Centurion on December 06, 2016, 09:02:37 PM
Assuming your quota is in A4 and his actual sales are in B4 ...

=IF(B4>=A4,A4*0.25+(B4-A4)*1.25,0)

this is great thanx!
Title: Re: Excel Problem
Post by: churnbabychurn on December 09, 2016, 10:45:24 AM
how do I fix my date format within a pivot table to short date??
Title: Re: Excel Problem
Post by: CZ60 on December 09, 2016, 10:52:17 AM
how do I fix my date format within a pivot table to short date??
In the pivot table set up on the right, click on the field that you want to change, in this case date.

Choose the last option, field settings.

On the left of the "OK" sign, click "Number Format"

Then choose from the categories and the options to the format that you want.

Hope that helps.
Title: Re: Excel Problem
Post by: churnbabychurn on December 09, 2016, 02:08:37 PM

In the pivot table set up on the right, click on the field that you want to change, in this case date.

Choose the last option, field settings.

On the left of the "OK" sign, click "Number Format"

Then choose from the categories and the options to the format that you want.

Hope that helps.

It doesn't help..

It doesn't have number format for date
Title: Re: Excel Problem
Post by: Centurion on December 10, 2016, 09:27:05 PM
looking for a spreadsheet - or any for of figuring out commissions.
I'm willing to pay ( please pm me)
Would like to enter type of sale as commissions are different and each level has different threshold minimums.
I would like to enter the name and amount of sales in each bracket and on the right side should come all the totals
on the bottom a grand total yo be paid .
Title: Re: Excel Problem
Post by: Centurion on December 10, 2016, 09:28:31 PM
2nd post.
looking for someone to teach / explain the use of pivot tables and v-lookup. willing to pay
(pm only)
Thank you
Title: Re: Excel Problem
Post by: MarkS on December 10, 2016, 09:30:54 PM
2nd post.
looking for someone to teach / explain the use of pivot tables and v-lookup. willing to pay
(pm only)
Thank you
Google it. You can learn it easily yourself
Title: Re: Excel Problem
Post by: Centurion on December 10, 2016, 09:35:39 PM
Google it. You can learn it easily yourself
looking for next level
(lynda)
Title: Re: Excel Problem
Post by: aygart on December 10, 2016, 09:56:54 PM
looking for next level
(lynda)
there are many next level courses in places like udemy
Title: Re: Excel Problem
Post by: Yisroel Tech on December 10, 2016, 11:28:59 PM
looking for next level
(lynda)
If you mention Lynda, why not taking from there?
Title: Re: Excel Problem
Post by: churnbabychurn on December 11, 2016, 12:51:35 AM
looking for next level
(lynda)
Next level vlookup is index match... Giyf

What's next level pivot? Power pivot? Stay away from that imho... Scary stuff :)
Title: Re: Excel Problem
Post by: skyguy918 on December 11, 2016, 11:28:39 AM
Next level vlookup is index match... Giyf

What's next level pivot? Power pivot? Stay away from that imho... Scary stuff :)
I have a relative who got into power pivot... never heard from him again.

Which is to say that when he starts talking my ear off about power pivot I'm forced to tune him out. ;D
Title: Re: Excel Problem
Post by: churnbabychurn on December 12, 2016, 10:22:05 AM
Can someone explain how this formula is working? I believe it is being used to return the smallest value in column E.

=LOOKUP(2,1/(E:E<>""),E:E)
Title: Re: Excel Problem
Post by: skyguy918 on December 12, 2016, 10:36:06 AM
Can someone explain how this formula is working? I believe it is being used to return the smallest value in column E.

=LOOKUP(2,1/(E:E<>""),E:E)
Seems to me that it returns the contents of the last cell in the column that is not blank.

The 3 arguments of the function are the lookup value, the lookup vector, and the result vector. So basically we're transforming column E, looking for the value 2 in that transformed vector, and returning the actual value in column E that corresponds to the position we found 2 in the transformed vector. The transformation is basically replacing all non-blank cells with the value 1, and all blank cells with an error. Then, when it looks in that transformed vector for the value 2, it doesn't find it, and instead returns the last position that has a 1 (ie the last non-blank cell).

As far as how the transformation works, E:E<>"" creates a TRUE/FALSE vector for whether each cell is non-blank. 1/ that vector converts the TRUE's into 1's, and the FALSE's into errors. If you'd used * instead of /, you'd get 0's for the FALSE's, and the formula would always return 0.

ETA: After typing all that out, I just googled my description in the first sentence and found this - https://exceljet.net/formula/get-value-of-last-non-empty-cell.
Title: Re: Excel Problem
Post by: churnbabychurn on December 12, 2016, 10:42:30 AM
Seems to me that it returns the contents of the last cell in the column that is not blank.

The 3 arguments of the function are the lookup value, the lookup vector, and the result vector. So basically we're transforming column E, looking for the value 2 in that transformed vector, and returning the actual value in column E that corresponds to the position we found 2 in the transformed vector. The transformation is basically replacing all non-blank cells with the value 1, and all blank cells with an error. Then, when it looks in that transformed vector for the value 2, it doesn't find it, and instead returns the last position that has a 1 (ie the last non-blank cell).

As far as how the transformation works, E:E<>"" creates a TRUE/FALSE vector for whether each cell is non-blank. 1/ that vector converts the TRUE's into 1's, and the FALSE's into errors. If you'd used * instead of /, you'd get 0's for the FALSE's, and the formula would always return 0.

ETA: After typing all that out, I just googled my description in the first sentence and found this - https://exceljet.net/formula/get-value-of-last-non-empty-cell.
Ok thanks. Google is great too, I should try it more.  :)
Title: Re: Excel Problem
Post by: JTZ on December 26, 2016, 10:08:25 AM
I have two different files. One has worksheets A/B/C and the other has D/E/F. How do I make one file to look at all the worksheets?
Title: Re: Excel Problem
Post by: CZ60 on December 26, 2016, 10:19:28 AM
I have two different files. One has worksheets A/B/C and the other has D/E/F. How do I make one file to look at all the worksheets?

Are you saying file 3 to look at file 1 (ABC) and file 2 (DEF) or file 1 to look at file 2 and vice versa?
Title: Re: Excel Problem
Post by: JTZ on December 26, 2016, 10:59:22 AM
File first.xls has three tabs (worksheets?) a/b/c. File second.xls has three tabs d/e/f. I want one file where I can click on any of the six tabs. I need to move or combine them somehow. Hope this is clearer.
Title: Re: Excel Problem
Post by: CZ60 on December 26, 2016, 11:02:25 AM
File first.xls has three tabs (worksheets?) a/b/c. File second.xls has three tabs d/e/f. I want one file where I can click on any of the six tabs. I need to move or combine them somehow. Hope this is clearer.

Have both of them open.

Highlight the tab(s) that you want to move (by holding down shift and clicking the first and last one - assuming they are in order. If they aren't in order, then hold ctrl and click each one) then right click on one of them and select "move or copy"

A pop up box will appear asking where you would like to move them to and whether you'd like to move them, or just copy them.

Make your selections and hit OK.
Title: Re: Excel Problem
Post by: JTZ on December 26, 2016, 11:41:28 AM
Thank you!!!
Title: Re: Excel Problem
Post by: churnbabychurn on December 27, 2016, 11:12:03 PM
Have both of them open.

Highlight the tab(s) that you want to move (by holding down shift and clicking the first and last one - assuming they are in order. If they aren't in order, then hold ctrl and click each one) then right click on one of them and select "move or copy"

A pop up box will appear asking where you would like to move them to and whether you'd like to move them, or just copy them.

Make your selections and hit OK.
Also drag and drop...
Title: Re: Excel Problem
Post by: Zevi16 on December 27, 2016, 11:38:10 PM
i have a big list of names in one column. Is there a way to check if there is any exact name double?
Title: Re: Excel Problem
Post by: Yammer on December 28, 2016, 12:14:40 AM
i have a big list of names in one column. Is there a way to check if there is any exact name double?
Select the column,
Go to the data tab,
Remove duplicates
Title: Re: Excel Problem
Post by: Yammer on December 28, 2016, 12:20:19 AM
I edited a video and was trying to find a time format for it. Went to formula bar; time: 2nd option (13:30). ( And the 37:30:55)
Tried :04-:18  but it wouldn't work.

Any suggestions?
Title: Re: Excel Problem
Post by: shulem92 on December 28, 2016, 01:04:35 AM
Any ideas how come a fedex tracking number becomes an equation whenever I copy paste into excel?
Title: Re: Excel Problem
Post by: Zalc on December 28, 2016, 02:03:32 AM
Any ideas how come a fedex tracking number becomes an equation whenever I copy paste into excel?
Dunno, but it can try setting the cell that you paste it into as "text" first, in place of the default "general"

It's a drop down menu on the first page of the ribbon
Title: Re: Excel Problem
Post by: AsherO on December 28, 2016, 07:50:25 AM
I edited a video and was trying to find a time format for it. Went to formula bar; time: 2nd option (13:30). ( And the 37:30:55)
Tried :04-:18  but it wouldn't work.

Any suggestions?

I don't follow, your timestamp is >24 hours?
Title: Re: Excel Problem
Post by: JTZ on December 28, 2016, 07:53:17 AM
Any ideas how come a fedex tracking number becomes an equation whenever I copy paste into excel?
I have the same problem with CC #'s.
Title: Re: Excel Problem
Post by: Zalc on December 28, 2016, 08:32:23 AM
I have the same problem with CC #'s.
Even if you set the cell format to text before pasting?

Pasting anything with leading 0's is also affected by this
Title: Re: Excel Problem
Post by: CZ60 on December 28, 2016, 08:50:52 AM
You must set the cell format to text before pasting in. Otherwise, by default, excel will read it as a number. And by default, excel can only handle 15 digits (see: https://support.microsoft.com/en-us/kb/269370)

If you change it to text after the fact, the digits after the 15th will be 0's and you'll lose them for good. If you change it before the fact, it'll store them as text and keep them. Note that on text formatting, you cannot make equations from the contents of that cell (maybe adding to cc #'s together will get you the next Powerball #'s ??? )
Title: Re: Excel Problem
Post by: CZ60 on December 28, 2016, 08:52:30 AM
Any ideas how come a fedex tracking number becomes an equation whenever I copy paste into excel?
A formula? What do you mean by that? Scientific notation? Such as 1E+9, or something like that?
Title: Re: Excel Problem
Post by: CZ60 on December 28, 2016, 08:52:58 AM
I don't follow, your timestamp is >24 hours?

+1, dont' follow.
Title: Re: Excel Problem
Post by: aygart on December 28, 2016, 09:28:15 AM
You must set the cell format to text before pasting in. Otherwise, by default, excel will read it as a number. And by default, excel can only handle 15 digits (see: https://support.microsoft.com/en-us/kb/269370)

If you change it to text after the fact, the digits after the 15th will be 0's and you'll lose them for good. If you change it before the fact, it'll store them as text and keep them. Note that on text formatting, you cannot make equations from the contents of that cell (maybe adding to cc #'s together will get you the next Powerball #'s ??? )
Alternatively you can add a ' before the number
Title: Re: Excel Problem
Post by: Yammer on December 28, 2016, 09:31:24 AM
I don't follow, your timestamp is >24 hours?
The video is 45 min. I need to start from :00-45:00
Title: Re: Excel Problem
Post by: JTZ on December 28, 2016, 09:45:55 AM
You must set the cell format to text before pasting in. Otherwise, by default, excel will read it as a number. And by default, excel can only handle 15 digits (see: https://support.microsoft.com/en-us/kb/269370)

If you change it to text after the fact, the digits after the 15th will be 0's and you'll lose them for good. If you change it before the fact, it'll store them as text and keep them. Note that on text formatting, you cannot make equations from the contents of that cell (maybe adding to cc #'s together will get you the next Powerball #'s ??? )
I was doing it after the fact.  :-[
Title: Re: Excel Problem
Post by: shulem92 on December 28, 2016, 12:24:51 PM
Dunno, but it can try setting the cell that you paste it into as "text" first, in place of the default "general"

It's a drop down menu on the first page of the ribbon
Thanx it worked
A formula? What do you mean by that? Scientific notation? Such as 1E+9, or something like that?
I put in a 12 digit number. I.e. 712837582475 and would get 7.12837E+11 in return
Title: Re: Excel Problem
Post by: etech0 on December 28, 2016, 12:44:53 PM
Thanx it workedI put in a 12 digit number. I.e. 712837582475 and would get 7.12837E+11 in return
This works great:
Alternatively you can add a ' before the number
Title: Re: Excel Problem
Post by: CZ60 on December 28, 2016, 12:49:40 PM
Thanx it workedI put in a 12 digit number. I.e. 712837582475 and would get 7.12837E+11 in return

Widen the column. Should display fully. If not, check the formatting that it's in number format.
Title: Re: Excel Problem
Post by: shulem92 on December 28, 2016, 12:55:26 PM
Widen the column. Should display fully. If not, check the formatting that it's in number format.
It only works if in numbers, standard on this sheet is general, so once I'm changing it, I can just change it to text. Thanx
Title: Re: Excel Problem
Post by: shulem92 on December 28, 2016, 12:56:19 PM
This works great:
I did that, I wrote FedEx... But then when I wanted to copy and paste into FedEx tracking system, it obv wouldn't work...
Title: Re: Excel Problem
Post by: shulem92 on December 28, 2016, 12:57:56 PM
Random question, maybe this is the wrong thread. Does anyone know of a quick convenient way to get my last years worth of chase cc statements into excel?
Title: Re: Excel Problem
Post by: Yisroel Tech on December 28, 2016, 02:33:02 PM
Random question, maybe this is the wrong thread. Does anyone know of a quick convenient way to get my last years worth of chase cc statements into excel?
Have it in downloaded (not scanned) PDF files? And PDF-to-Excel software should do it just ok. If you don't have Adobe Acrobat Pro you can try a free online service like this https://smallpdf.com/pdf-to-excel or this https://www.pdftoexcelonline.com/en/
Title: Re: Excel Problem
Post by: Mikeoracle on December 28, 2016, 02:49:09 PM
Have it in downloaded (not scanned) PDF files? And PDF-to-Excel software should do it just ok. If you don't have Adobe Acrobat Pro you can try a free online service like this https://smallpdf.com/pdf-to-excel or this https://www.pdftoexcelonline.com/en/
If you are not in a rush it may pay to wait until they publish their "Year End reports" which is either in avail excel or if not you can use the above method to convert just the one PDF
Title: Re: Excel Problem
Post by: churnbabychurn on December 28, 2016, 03:02:23 PM
Random question, maybe this is the wrong thread. Does anyone know of a quick convenient way to get my last years worth of chase cc statements into excel?
Title: Re: Excel Problem
Post by: shulem92 on December 28, 2016, 03:04:12 PM
Where? I couldnt find that option. For credit cards too, or just bank statements?
Title: Re: Excel Problem
Post by: churnbabychurn on December 28, 2016, 03:05:06 PM
Have it in downloaded (not scanned) PDF files? And PDF-to-Excel software should do it just ok. If you don't have Adobe Acrobat Pro you can try a free online service like this https://smallpdf.com/pdf-to-excel or this https://www.pdftoexcelonline.com/en/
Will most probably not give you clean data...
Best simple way to get PDF data into Excel is to highlight a section and right click and export as Excel... It's only one section at a time...
Title: Re: Excel Problem
Post by: shulem92 on December 28, 2016, 03:07:20 PM
Have it in downloaded (not scanned) PDF files? And PDF-to-Excel software should do it just ok. If you don't have Adobe Acrobat Pro you can try a free online service like this https://smallpdf.com/pdf-to-excel or this https://www.pdftoexcelonline.com/en/
Small PDF messes it up. Its a chase credit card statement, so its not exactly in a table format. Tried downloading adobe, not working for some odd reason. Downloaded nitro, and it freezes when I try even 1 statement
Title: Re: Excel Problem
Post by: shulem92 on December 28, 2016, 03:08:08 PM
If you are not in a rush it may pay to wait until they publish their "Year End reports" which is either in avail excel or if not you can use the above method to convert just the one PDF
Title: Re: Excel Problem
Post by: shulem92 on December 28, 2016, 03:08:54 PM
Will most probably not give you clean data...
Best simple way to get PDF data into Excel is to highlight a section and right click and export as Excel... It's only one section at a time...
So i have to go into every one...that was my fear. Aahhh, I have a lot of credit cards... :(
Title: Re: Excel Problem
Post by: churnbabychurn on December 28, 2016, 03:09:10 PM
Small PDF messes it up. Its a chase credit card statement, so its not exactly in a table format. Tried downloading adobe, not working for some odd reason. Downloaded nitro, and it freezes when I try even 1 statement
waste of time. its not in table format and wont work...
Try export section as..
Title: Re: Excel Problem
Post by: shulem92 on December 28, 2016, 03:10:00 PM
waste of time. its not in table format and wont work...
Try export section as..
Export section in what program?
Title: Re: Excel Problem
Post by: churnbabychurn on December 28, 2016, 03:10:42 PM
Do you see this option?
Title: Re: Excel Problem
Post by: churnbabychurn on December 28, 2016, 03:11:17 PM
Export section in what program?
Title: Re: Excel Problem
Post by: shulem92 on December 28, 2016, 03:14:42 PM
Do you see this option?
That only helps for the last 3 months
Title: Re: Excel Problem
Post by: churnbabychurn on December 28, 2016, 03:15:15 PM
That only helps for the last 3 months
Nope. You can select any date range ime
Title: Re: Excel Problem
Post by: shulem92 on December 28, 2016, 03:19:15 PM
Nope. You can select any date range ime
Only let's me do the last 3 months
Even when I selected earlier dates
Title: Re: Excel Problem
Post by: AsherO on December 28, 2016, 03:36:42 PM
The video is 45 min. I need to start from :00-45:00
IDK what :00-45:00 means.

If you mean negative time, i.e. negative 45 minutes:
• Negative 45 seconds is -0.03
• Excel doesn't default to allowing negative date-time, you have to follow the instructions here (https://support.microsoft.com/en-us/kb/182247).
• Format to whatever time format you like.
Title: Re: Excel Problem
Post by: churnbabychurn on December 28, 2016, 04:24:46 PM
Only let's me do the last 3 months
Even when I selected earlier dates
Check if its only 3 months at a time...

Title: Re: Excel Problem
Post by: shulem92 on December 28, 2016, 04:30:29 PM
Check if its only 3 months at a time...

Tried that :(
Title: Re: Excel Problem
Post by: churnbabychurn on December 28, 2016, 04:44:43 PM
Tried that :(
Title: Re: Excel Problem
Post by: shulem92 on December 28, 2016, 04:49:01 PM
I sm'ed and they said that I can only get the last 3 months
Title: Re: Excel Problem
Post by: churnbabychurn on December 28, 2016, 04:50:43 PM
I sm'ed and they said that I can only get the last 3 months
Title: Re: Excel Problem
Post by: Yammer on December 28, 2016, 05:11:36 PM
IDK what :00-45:00 means.

If you mean negative time, i.e. negative 45 minutes:
• Negative 45 seconds is -0.03
• Excel doesn't default to allowing negative date-time, you have to follow the instructions here (https://support.microsoft.com/en-us/kb/182247).
• Format to whatever time format you like.
Sorry i wasn't being clear.

I want to edit a video from :04-:18 ( 4 seconds until 18 seconds.) The entire video length is currently 45 min.
Title: Re: Excel Problem
Post by: lubaby on December 28, 2016, 05:20:19 PM
Sorry i wasn't being clear.

I want to edit a video from :04-:18 ( 4 seconds until 18 seconds.) The entire video length is currently 45 min.
Editing the video in Excel?
Title: Re: Excel Problem
Post by: etech0 on December 28, 2016, 05:25:59 PM
Sorry i wasn't being clear.

I want to edit a video from :04-:18 ( 4 seconds until 18 seconds.) The entire video length is currently 45 min.
What are you looking to type in the cell?
Title: Re: Excel Problem
Post by: CZ60 on December 28, 2016, 06:11:59 PM
Editing the video in Excel?

What are you looking to type in the cell?

At least I'm not the only one confused :o
Title: Re: Excel Problem
Post by: Yammer on December 28, 2016, 09:26:59 PM
Editing the video in Excel?

What are you looking to type in the cell?

At least I'm not the only one confused :o
OK OK.....Let's start over...

I have a video that requires editing. I'm writing down the places that need to be cut. So I took an excel sheet to jot down the places that I will keep. For example:
:04-:18 ( from 4 seconds to 18 seconds )

I tried to write each edit into a cell and send it to the editor. But when I changed the column format to time it changed the timing based on the hour or date. All I need are minutes and seconds ( that don't change into times. )
Title: Re: Excel Problem
Post by: aygart on December 28, 2016, 09:29:31 PM
OK OK.....Let's start over...

I have a video that requires editing. I'm writing down the places that need to be cut. So I took an excel sheet to jot down the places that I will keep. For example:
:04-:18 ( from 4 seconds to 18 seconds )

I tried to write each edit into a cell and send it to the editor. But when I changed the column format to time it changed the timing based on the hour or date. All I need are minutes and seconds ( that don't change into times. )

Formatting as text before you enter anything will keep it as entered.
Title: Re: Excel Problem
Post by: etech0 on December 28, 2016, 11:03:26 PM
OK OK.....Let's start over...

I have a video that requires editing. I'm writing down the places that need to be cut. So I took an excel sheet to jot down the places that I will keep. For example:
:04-:18 ( from 4 seconds to 18 seconds )

I tried to write each edit into a cell and send it to the editor. But when I changed the column format to time it changed the timing based on the hour or date. All I need are minutes and seconds ( that don't change into times. )
I just tried a few different things and all of them stayed exactly how I typed them:
(http://take.ms/ol5tN)
Title: Re: Excel Problem
Post by: shulem92 on January 02, 2017, 02:01:04 PM
I'm looking too make a chart/graph of all expenses from last year, split into categories. When I try to insert graph, it says maximum 255 entries. Any other way to achieve the same results?
Title: Re: Excel Problem
Post by: lubaby on January 02, 2017, 02:02:45 PM
I'm looking too make a chart/graph of all expenses from last year, split into categories. When I try to insert graph, it says maximum 255 entries. Any other way to achieve the same results?
Pivot table will give you all the totals (by category), that can be turned into a graph.
Title: Re: Excel Problem
Post by: yesitsme on January 03, 2017, 09:45:58 PM
.
Title: Re: Excel Problem
Post by: shulem92 on January 03, 2017, 10:33:20 PM
Pivot table will give you all the totals (by category), that can be turned into a graph.
Thanx. It worked
Title: Re: Excel Problem
Post by: talmid chuchem on January 05, 2017, 10:42:56 AM

.
AccelerateyourVBscript

What's this for
Title: Re: Excel Problem
Post by: lubaby on January 05, 2017, 12:44:12 PM

What's this for
Seems like it can teach you (or do for you) some basic* Excel functions.

*Using this term very liberally.
Title: Re: Excel Problem
Post by: lechatchileh ariber on January 12, 2017, 12:50:58 AM
Anyone have experience with the following; I'm on a mobile device and want to use a data entry form. I can't find an app that will let me insert a form in their sheets (I tried Google forms syncing to a sheet but didn't work too well).
If I make the document on a computer will it work on a mobile?
Title: Re: Excel Problem
Post by: Work-for-ur-muny on January 23, 2017, 04:37:33 PM
I want to color format a cell based on a letter that I have in a different cell. Is there any way to accomplish that?

Example: Column A has customer names and and in column B I enter y if they payed, and n if they didn't. I want the cell right near it on column C to turn red if they the adjacent cell in column B has an n. (No need for anything if there's a y.)
Title: Re: Excel Problem
Post by: stooges44 on January 23, 2017, 04:59:33 PM
I want to color format a cell based on a letter that I have in a different cell. Is there any way to accomplish that?

Example: Column A has customer names and and in column B I enter y if they payed, and n if they didn't. I want the cell right near it on column C to turn red if they the adjacent cell in column B has an n. (No need for anything if there's a y.)

Would it help if you colored the cells in column B instead? Meaning, color all the n cells red?
Title: Re: Excel Problem
Post by: Work-for-ur-muny on January 23, 2017, 05:00:36 PM
Would it help if you colored the cells in column B instead? Meaning, color all the n cells red?
I need it to be in an adjacent cell.
Title: Re: Excel Problem
Post by: etech0 on January 23, 2017, 05:10:05 PM
I want to color format a cell based on a letter that I have in a different cell. Is there any way to accomplish that?

Example: Column A has customer names and and in column B I enter y if they payed, and n if they didn't. I want the cell right near it on column C to turn red if they the adjacent cell in column B has an n. (No need for anything if there's a y.)
Sure! Set up Conditional Formatting and "use a formula  to determine which cells to format".
Title: Re: Excel Problem
Post by: etech0 on January 23, 2017, 05:12:22 PM
This example colors the cell in column C blue, if column A is "1".

Select Column C and create this rule:
(http://take.ms/pS2641)

Results:
(http://take.ms/UMRs5)
Title: Re: Excel Problem
Post by: skyguy918 on January 23, 2017, 05:12:40 PM
I need it to be in an adjacent cell.
Conditional formatting:
• Highlight the cells in C that you want to change color. In the Home ribbon, select Conditional Formatting > New Rule > Use a formula to determine which cells to format.
• Click into the formula bar below and type =B2="Y" (assuming B2 is the first cell with y/n values, if not adjust it to whichever cell is).
• Click Format > Fill (along the top) > and select green as the background color.
You can then reselect the cells in column C and color them red. This will give them a default of red, only turning green when you mark "y". Alternatively, you could repeat the steps above, replacing Y with N and green with red. This will give a default of no color, green for Y and red for N.
Title: Re: Excel Problem
Post by: Work-for-ur-muny on January 23, 2017, 05:25:21 PM
Thanks guys!!!
Title: Re: Excel Problem
Post by: syp5 on January 24, 2017, 03:50:12 PM
Is there a way to upload a spreadsheet of (names and amounts) to quick-books to print several hundred checks of different amounts?
Ty
Title: Re: Excel Problem
Post by: Boruch999 on January 24, 2017, 04:01:40 PM
Is there a way to use variables in Excel, that is to set a certain value to x and then call x repeatedly throughout the sheet?
Title: Re: Excel Problem
Post by: lubaby on January 24, 2017, 04:10:37 PM
Is there a way to use variables in Excel, that is to set a certain value to x and then call x repeatedly throughout the sheet?
Certainly. Very straight forward process.

Input your x into any field (simplest would be on a a secondary sheet), then you put that cell reference into your formula.

(https://content.screencast.com/users/Ben6955/folders/Jing/media/23a3023a-3145-4c73-9394-4a020689ddab/2017-01-24_1613.png)
Title: Re: Excel Problem
Post by: aygart on January 24, 2017, 04:13:20 PM
Is there a way to use variables in Excel, that is to set a certain value to x and then call x repeatedly throughout the sheet?
Use a cell to enter the variable and keep referencing the cell. You can even give the cell a name and reverence it that way.
Title: Re: Excel Problem
Post by: Boruch999 on January 24, 2017, 04:23:06 PM
Use a cell to enter the variable and keep referencing the cell. You can even give the cell a name and reverence it that way.
Certainly. Very straight forward process.

Input your x into any field (simplest would be on a a secondary sheet), then you put that cell reference into your formula.

(https://content.screencast.com/users/Ben6955/folders/Jing/media/23a3023a-3145-4c73-9394-4a020689ddab/2017-01-24_1613.png)

I feel silly.  Thanks guys!
Title: Re: Excel Problem
Post by: lubaby on January 24, 2017, 04:26:40 PM
I feel silly.  Thanks guys!
No problem  :)
Title: Re: Excel Problem
Post by: Zalc on January 24, 2017, 04:39:06 PM
I don't know what to title this problem..

See the screenshot (Or excel file). My input is on the right, what I want to output is on the left.

The problem is that Column A's types, or number of types, are not consistent. sometimes it is "version A/B/D" or "first/second/5th" etc, and right now I need to manually enter the list of types, and sometimes I'll miss one that only appears once etc.

What I would like to know is if there is some way to have the column A in the results side automatically generate a row for every type in the dataset, and then the rest is simple...

Thanks!

ETA: Trying this (http://www.listendata.com/2013/05/excel-3-ways-to-extract-unique-values.html)
Title: Re: Excel Problem
Post by: lubaby on January 24, 2017, 04:53:25 PM
I don't know what to title this problem..

See the screenshot (Or excel file). My input is on the right, what I want to output is on the left.

The problem is that Column A's types, or number of types, are not consistent. sometimes it is "version A/B/D" or "first/second/5th" etc, and right now I need to manually enter the list of types, and sometimes I'll miss one that only appears once etc.

What I would like to know is if there is some way to have the column A in the results side automatically generate a row for every type in the dataset, and then the rest is simple...

Thanks!

ETA: Trying this (http://www.listendata.com/2013/05/excel-3-ways-to-extract-unique-values.html)
Array Formula this (Ctrl+Shift+Enter) after pasting the formula.
Code: [Select]
=IFERROR(INDEX($A$1:$A$100, MATCH(0,COUNTIF($A$1:A1, $A$1:$A$100), 0)),"")Just modify the 100 in the formula to however many rows your workbook is.

That article describes it pretty well.
Title: Re: Excel Problem
Post by: Zalc on January 24, 2017, 05:13:19 PM
Worked Great! thanks!

Now I need to sit down and understand it     :o
Title: Re: Excel Problem
Post by: Zalc on January 25, 2017, 07:44:39 PM
OK, I have another one:

Trying to calculating interest into the loan amount (Hard money), I can't figure how to do it correctly.

Say I take a $1,000 loan at 15% annually, for 2 years. 8% to be paid monthly, and (7*2)% to be paid as a balloon after 2 years. Here is the question: I want to add the monthly 8% to the$1,000 upfront and escrow it, so that I don't need to make any payments on the loan over the life of the loan, only the balloon at the end.
But I can't just add $1000*8%*2 to the 1000, as the loan will charge 15% on the additional 8% as well... Thanks! Title: Re: Excel Problem Post by: Zalc on January 26, 2017, 12:49:29 AM OK, I have another one: Trying to calculating interest into the loan amount (Hard money), I can't figure how to do it correctly. Say I take a$1,000 loan at 15% annually, for 2 years.
8% to be paid monthly, and (7*2)% to be paid as a balloon after 2 years.

Here is the question: I want to add the monthly 8% to the $1,000 upfront and escrow it, so that I don't need to make any payments on the loan over the life of the loan, only the balloon at the end. But I can't just add$1000*8%*2 to the 1000, as the loan will charge 15% on the additional 8% as well...

Thanks!
Used Goal Seeker to do it.

GIYF
Title: Re: Excel Problem
Post by: lechatchileh ariber on January 27, 2017, 11:14:24 AM
Can I have an array pulling data in a different row?
Right now I'm using
=arrayformula(if(A:A >0, A:A&" "&B:B&" "&C:C&" "&E:E, ))
And a) I have to put it in column N
B) it pulls it in the same row in which a is more than 0.
Is there a way that I can have this script in row 27 (the data starts in row 47) and it will only pull the first 19 results?
Title: Re: Excel Problem
Post by: Excalibur on January 29, 2017, 03:52:33 PM
So, does anyone know how to extrapolate from a line on one excel workbook to another across multiple sheets?
Title: Re: Excel Problem
Post by: Yisroel Tech on January 29, 2017, 03:55:30 PM
So, does anyone know how to extrapolate from a line on one excel workbook to another across multiple sheets?
Can you please explain what you are trying to do?
Title: Re: Excel Problem
Post by: Excalibur on January 29, 2017, 04:34:34 PM
I have a P&L with many line items, I'm creating a projection. The projection is broken into 1 sheet for each month

I need cells h50-af50 copied and pasted into another workbook h50 on sheet 1 in e 50; j50 on sheet 2 e 50, L50 on sheet 3 in e 50and so on.
Title: Re: Excel Problem
Post by: churnbabychurn on January 29, 2017, 04:39:21 PM
I have a P&L with many line items, I'm creating a projection. The projection is broken into 1 sheet for each month

I need cells h50-af50 copied and pasted into another workbook h50 on sheet 1 in e 50; j50 on sheet 2 e 50, L50 on sheet 3 in e 50and so on.
Select all the sheets and then write your formula in one of them. It will populate them all
Title: Re: Excel Problem
Post by: Excalibur on January 29, 2017, 05:17:13 PM
I'll give it a shot, thanks
Title: Re: Excel Problem
Post by: Excalibur on January 29, 2017, 05:26:00 PM
I'm taking the total number and creating a formula to divide by twelve, however ideally I would like to be able to pull the exact numbers, and I still haven't figured out how to do that...
Title: Re: Excel Problem
Post by: Yisroel Tech on January 29, 2017, 05:29:57 PM
Is there a way to do this but copy in only values?
You want that the empty cells should be filled with zeros in all the sheets? Just do an IF formula, something like
Code: [Select]
=IF(Sheet1!A1="","",Sheet1!A1)
Title: Re: Excel Problem
Post by: Excalibur on January 29, 2017, 05:36:59 PM
You want that the empty cells should be filled with zeros in all the sheets? Just do an IF formula, something like
Code: [Select]
=IF(Sheet1!A1="","",Sheet1!A1)

I get what you're saying, but I mean to copy the value from the formula directly as a value, instead after I insert it I copy and past the value and it populates throughout the sheets.
Title: Re: Excel Problem
Post by: Yisroel Tech on January 29, 2017, 05:42:50 PM
I get what you're saying, but I mean to copy the value from the formula directly as a value, instead after I insert it I copy and past the value and it populates throughout the sheets.
Not sure what you mean. I think you should explain exactly what you want to do and preferably with an example file.
Title: Re: Excel Problem
Post by: Zalc on January 29, 2017, 05:55:31 PM
OK, I have another one:

Trying to calculating interest into the loan amount (Hard money), I can't figure how to do it correctly.

Say I take a $1,000 loan at 15% annually, for 2 years. 8% to be paid monthly, and (7*2)% to be paid as a balloon after 2 years. Here is the question: I want to add the monthly 8% to the$1,000 upfront and escrow it, so that I don't need to make any payments on the loan over the life of the loan, only the balloon at the end.
But I can't just add $1000*8%*2 to the 1000, as the loan will charge 15% on the additional 8% as well... Thanks! I still need help with this... Can't figure it out how much the initial amount needs to be to cover it's own interest.. is that even possible? Title: Re: Excel Problem Post by: skyguy918 on January 29, 2017, 06:03:15 PM I still need help with this... Can't figure it out how much the initial amount needs to be to cover it's own interest.. is that even possible? Maybe explain in greater detail how the loan is structured, and what you're trying to change'accomplish. Title: Re: Excel Problem Post by: Zalc on January 29, 2017, 06:04:32 PM Maybe explain in greater detail how the loan is structured, and what you're trying to change'accomplish. I may have got it. I'll elaborate in a bit Title: Re: Excel Problem Post by: churnbabychurn on January 29, 2017, 06:04:45 PM I still need help with this... Can't figure it out how much the initial amount needs to be to cover it's own interest.. is that even possible? You need to google to find a good free template https://www.vertex42.com/ExcelTemplates/excel-amortization-spreadsheet.html These are good Title: Re: Excel Problem Post by: Yammer on February 10, 2017, 11:30:27 AM I have an excel sheet that in the same column there are names, addresses and phone numbers. I would like to have them in separate columns. I tried a text to columns but there seems to be no way of splitting it when it hits a numerical value. ( The beginning of the address ) Title: Re: Excel Problem Post by: etech0 on February 10, 2017, 11:46:11 AM I have an excel sheet that in the same column there are names, addresses and phone numbers. I would like to have them in separate columns. I tried a text to columns but there seems to be no way of splitting it when it hits a numerical value. ( The beginning of the address ) you can do this in google sheets with regexextract. If you post one or two sample cells I can give you the formula to use. Title: Re: Excel Problem Post by: stooges44 on February 10, 2017, 11:59:58 AM I have an excel sheet that in the same column there are names, addresses and phone numbers. I would like to have them in separate columns. I tried a text to columns but there seems to be no way of splitting it when it hits a numerical value. ( The beginning of the address ) Text to columns with the delimiter being a space doesn't help either? Title: Re: Excel Problem Post by: aygart on February 10, 2017, 12:03:36 PM I have mostly had success with similar things using this workaround I use replace all to replace " 1" with ";1" and repeat for other numbers and use the same idea for each item (" NY" to ";NY") Title: Re: Excel Problem Post by: etech0 on February 10, 2017, 12:05:00 PM I have mostly had success with similar things using this workaround I use replace all to replace " 1" with ";1" and repeat for other numbers and use the same idea time to learn regex then :) Title: Re: Excel Problem Post by: aygart on February 10, 2017, 12:05:36 PM time to learn regex then :) Probably, but it doesn't happen that often. Title: Re: Excel Problem Post by: Yammer on February 10, 2017, 12:17:15 PM Text to columns with the delimiter being a space doesn't help either? There are other spaces I have mostly had success with similar things using this workaround I use replace all to replace " 1" with ";1" and repeat for other numbers and use the same idea for each item (" NY" to ";NY") Not all addresses start with a 1 Title: Re: Excel Problem Post by: aygart on February 10, 2017, 12:19:58 PM There are other spacesNot all addresses start with a 1 It is tedious but you can repeat with other numbers Title: Re: Excel Problem Post by: CZ60 on February 10, 2017, 12:45:29 PM If you put a few examples, I can try to come up with a formula that will cover most of them.. Title: Re: Excel Problem Post by: skyguy918 on February 10, 2017, 01:15:01 PM First step is to separate the names from the addresses/phone numbers. Assuming your text is in column A , the first formula gives you the name in one column by itself, and the second gives you the address and phone number together. =LEFT(A1,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A1&"0123456789"))) =RIGHT(A1,LEN(A1)-MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A1&"0123456789"))+1) Separating out the pieces of the second formula will depend on how it's set up. You might be able to use text to columns there (like if the phone numbers start with a parenthesis). Title: Re: Excel Problem Post by: Yisroel Tech on February 10, 2017, 02:21:59 PM I have an excel sheet that in the same column there are names, addresses and phone numbers. I would like to have them in separate columns. I tried a text to columns but there seems to be no way of splitting it when it hits a numerical value. ( The beginning of the address ) If you have Excel 2016, not sure if 2013 too, you can do this with Flash Fill. Just do yourself a few examples and he'll usually be able to finish the rest. Title: Re: Excel Problem Post by: yitzf on February 12, 2017, 12:19:52 PM If you have Excel 2016, not sure if 2013 too, you can do this with Flash Fill. Just do yourself a few examples and he'll usually be able to finish the rest. 2013 has it too. Sometimes it's awesome, and sometimes it just can't figure it out. Title: Re: Excel Problem Post by: JTZ on February 14, 2017, 05:06:58 PM How to subtract a group of cells from a fixed number? My n00b attempt: =15000 - (B3:B10) Title: Re: Excel Problem Post by: etech0 on February 14, 2017, 05:18:17 PM How to subtract a group of cells from a fixed number? My n00b attempt: =15000 - (B3:B10) Do you want to first total B3:B10, and then subtract that from 15000? If so: =15000-SUM(B3:B10) Title: Re: Excel Problem Post by: JTZ on February 14, 2017, 05:34:53 PM Not working for some reason. Copy and paste from fx box: =15000-SUM(B3:B10) Title: Re: Excel Problem Post by: Yisroel Tech on February 14, 2017, 06:00:14 PM Not working for some reason. Copy and paste from fx box: =15000-SUM(B3:B10) Works fine for me. Can you upload a sample Excel file? Title: Re: Excel Problem Post by: JTZ on February 14, 2017, 06:11:09 PM Can I just attach a file? Title: Re: Excel Problem Post by: etech0 on February 14, 2017, 07:09:26 PM Works fine for me. +1 What results do you get? Title: Re: Excel Problem Post by: aygart on February 14, 2017, 07:11:07 PM Can I just attach a file? Do it in a new sheet. There is something hidden there. Title: Re: Excel Problem Post by: aygart on February 14, 2017, 07:15:57 PM You had the formula in that cell 3 times including with spaces in the middle (https://t.gyazo.com/teams/lowerwatt/935aa6c64df68c6366a9b529b146857d.png) Title: Re: Excel Problem Post by: JTZ on February 14, 2017, 07:24:42 PM :-[ Thank you! At least I tried before asking. :) Title: Re: Excel Problem Post by: Zalc on February 14, 2017, 08:41:11 PM I may have got it. I'll elaborate in a bit I was running into a error, trying to calculate a Sum Total that includes a percentage of itself as one of the items. The simplest solution was to go to Options > Formulas > Enable Iterative Calculations. You need to remember to disable it after though. Title: Re: Excel Problem Post by: churnbabychurn on April 02, 2017, 07:42:20 AM I have a couple of 100k rows of data that I am pivoting. My PC/Excel is just about handling it.. crashes etc. Does saving the data as CSV, and using a separate Excel WB to pivot and analyse​ make things better of worse? Title: Re: Excel Problem Post by: CZ60 on April 02, 2017, 10:21:59 AM I have a couple of 100k rows of data that I am pivoting. My PC/Excel is just about handling it.. crashes etc. Does saving the data as CSV, and using a separate Excel WB to pivot and analyse​ make things better of worse? No difference imho. You're better off in access and linking your excel to the access DB. Title: Re: Excel Problem Post by: churnbabychurn on April 02, 2017, 12:23:20 PM No difference imho. You're better off in access and linking your excel to the access DB. Access uses less memory? Title: Re: Excel Problem Post by: CZ60 on April 02, 2017, 12:27:02 PM Access uses less memory? Can handle a lot more rows of data, up to 2gb, and won't crash. You can connect to an external data source in Excel and have it look at the db file. Title: Re: Excel Problem Post by: Mikeoracle on April 02, 2017, 12:44:14 PM You can also try checking the box "add data to model" in the pivot wizard, that may help with processing large amounts of data. Title: Re: Excel Problem Post by: stooges44 on April 19, 2017, 11:39:34 AM If I have this in a cell: 6:55 - 7:00 PM , what formula can I use to give me: 7:00 - 7:05 PM in the adjacent cell? Thanks Title: Re: Excel Problem Post by: lubaby on April 19, 2017, 01:03:54 PM If I have this in a cell: 6:55 - 7:00 PM , what formula can I use to give me: 7:00 - 7:05 PM in the adjacent cell? Thanks This will add 5 minutes to a Time cell. Code: [Select] =A1+5/1440 (https://content.screencast.com/users/Ben6955/folders/Jing/media/1804e009-e20e-4929-8bf6-197c9d1d6aa6/2017-04-19_1258.png) But, being that you have 2 Times in 1 cell (probably formatted as General or Text) you'll need to re-build that part of your workbook to make it work. Title: Re: Excel Problem Post by: stooges44 on April 19, 2017, 01:07:55 PM This will add 5 minutes to a Time cell. Code: [Select] =A1+5/1440 (https://content.screencast.com/users/Ben6955/folders/Jing/media/1804e009-e20e-4929-8bf6-197c9d1d6aa6/2017-04-19_1258.png) But, being that you have 2 Times in 1 cell (probably formatted as General or Text) you'll need to re-build that part of your workbook to make it work. I know, I can do =A1+TIME(0,5,0) to also give me 5 minutes but like you said I have 2 times in a cell and I was hoping to get one large formula for everything. Title: Re: Excel Problem Post by: lubaby on April 19, 2017, 01:26:15 PM I know, I can do =A1+TIME(0,5,0) to also give me 5 minutes but like you said I have 2 times in a cell and I was hoping to get one large formula for everything. Don't think that's possible. Good luck! Title: Re: Excel Problem Post by: etech0 on April 19, 2017, 01:36:32 PM it would be much easier if you could split the times into 2 cells Title: Re: Excel Problem Post by: stooges44 on April 19, 2017, 01:48:58 PM it would be much easier if you could split the times into 2 cells Of course, but that would be the as much work as not using a formula ;) I've gotten it theory but it gives the result in decimal format, not as H:MM PM In cell L13 I have 6:55 - 7:00 PM, and I managed to make this formula Code: [Select] =CONCAT(LEFT(L13, SEARCH(" ",L13,1))+TIME(0,5,0)," - ", RIGHT(L13, SEARCH(" ",L13,1)+2)+TIME(0,5,0)) which essentially finds the 2 times, adds 5 to each and then joins them with the "-" but the result is in decimal format like this: 0.291666666666667 - 0.795138888888889 even after I change the cell type to time it has no affect Title: Re: Excel Problem Post by: CreamofSoup on April 19, 2017, 02:12:10 PM Try: Code: [Select] =CONCAT(text(LEFT(L13, SEARCH(" ",L13,1))+TIME(0,5,0),"H:MM AM/PM")," - ", text(RIGHT(L13, SEARCH(" ",L13,1)+2)+TIME(0,5,0),"H:MM AM/PM")) The Text function before the left and right (and the H:MM AM/PM) formatting after the decimal number will force the decimal to the time that it represents, I think Of course, but that would be the as much work as not using a formula ;) I've gotten it theory but it gives the result in decimal format, not as H:MM PM In cell L13 I have 6:55 - 7:00 PM, and I managed to make this formula Code: [Select] =CONCAT(LEFT(L13, SEARCH(" ",L13,1))+TIME(0,5,0)," - ", RIGHT(L13, SEARCH(" ",L13,1)+2)+TIME(0,5,0)) which essentially finds the 2 times, adds 5 to each and then joins them with the "-" but the result is in decimal format like this: 0.291666666666667 - 0.795138888888889 even after I change the cell type to time it has no affect Wasn't sure I had everything in the right place but this will work. Code: [Select] =CONCATENATE(TEXT(LEFT(L13, SEARCH(" ",L13,1))+TIME(0,5,0),"H:MM")," - ", TEXT(RIGHT(L13, SEARCH(" ",L13,1)+2)+TIME(0,5,0),"H:MM AM/PM")) Title: Re: Excel Problem Post by: stooges44 on April 19, 2017, 02:19:37 PM Try: Code: [Select] =CONCAT(text(LEFT(L13, SEARCH(" ",L13,1))+TIME(0,5,0),"H:MM AM/PM")," - ", text(RIGHT(L13, SEARCH(" ",L13,1)+2)+TIME(0,5,0),"H:MM AM/PM")) The Text function before the left and right (and the H:MM AM/PM) formatting after the decimal number will force the decimal to the time that it represents, I think Creamofsoup you are a cream of genius! that worked perfectly! thanks so much! Title: Re: Excel Problem Post by: lechatchileh ariber on April 23, 2017, 02:25:29 AM Using GAS I'm copying values to range, using get last row+1. The values which I am copying sometimes have one row of Data, sometimes 2 rows of Data and sometimes 3. I put getRange (row, 1, 3) My issue is that for the next submission it goes to the fourth next line even if the 2nd and 3rd line had no data. (because it's copying a blank cell into the target sheet) Any ideas? Title: Re: Excel Problem Post by: CZ60 on April 23, 2017, 11:14:15 AM Using GAS Whats GAS? Title: Re: Excel Problem Post by: lechatchileh ariber on April 23, 2017, 11:45:32 AM Whats GAS? Google apps script Google sheets version of VBA/macros (correct terminology?) Runs based on JavaScript Title: Re: Excel Problem Post by: lechatchileh ariber on April 23, 2017, 03:41:33 PM Using GAS I'm copying values to range, using get last row+1. The values which I am copying sometimes have one row of Data, sometimes 2 rows of Data and sometimes 3. I put getRange (row, 1, 3) My issue is that for the next submission it goes to the fourth next line even if the 2nd and 3rd line had no data. (because it's copying a blank cell into the target sheet) Any ideas? Eta: fixed using If (small > number) {getRange... Title: Re: Excel Problem Post by: aygart on April 25, 2017, 05:55:09 PM I have a spreadsheet with multiple tabs. One is a "working tab" to enter relevant information and the other tabs cross reference from there. One of the other tabs is used to create an authorization form from the information entered by exporting it to a pdf. Currently I have all of the cells cross referencing using the formula =IF(CustInfo!B21=0,"",CustInfo!B21) so that cells with no entered information do not show on the form as zeros. The issue with cross referencing in this way is that the pdf always exports with 5 sheets even if only the first has any information on it since the cells all have content even if that content is blank. Is there any way to have the sheet automatically reference the correct amount of rows so that it will have all of the entered info but no blank references? Title: Re: Excel Problem Post by: etech0 on April 25, 2017, 06:15:54 PM I have a spreadsheet with multiple tabs. One is a "working tab" to enter relevant information and the other tabs cross reference from there. One of the other tabs is used to create an authorization form from the information entered by exporting it to a pdf. Currently I have all of the cells cross referencing using the formula =IF(CustInfo!B21=0,"",CustInfo!B21) so that cells with no entered information do not show on the form as zeros. The issue with cross referencing in this way is that the pdf always exports with 5 sheets even if only the first has any information on it since the cells all have content even if that content is blank. Is there any way to have the sheet automatically reference the correct amount of rows so that it will have all of the entered info but no blank references? What do you mean by "correct amount of rows"? Is there any way for you to post a sample file? Title: Re: Excel Problem Post by: aygart on April 25, 2017, 06:19:24 PM What do you mean by "correct amount of rows"? Is there any way for you to post a sample file? it is basically a list of the prospect's locations. Some have 1 location and some have a few hundred. each row is one location. If I use the formula above it has all of the rows on the authorization form containing blank content even if only one row is really needed. I will try to fix up a sheet to post. Title: Re: Excel Problem Post by: lechatchileh ariber on April 25, 2017, 06:19:51 PM I have a spreadsheet with multiple tabs. One is a "working tab" to enter relevant information and the other tabs cross reference from there. One of the other tabs is used to create an authorization form from the information entered by exporting it to a pdf. Currently I have all of the cells cross referencing using the formula =IF(CustInfo!B21=0,"",CustInfo!B21) so that cells with no entered information do not show on the form as zeros. The issue with cross referencing in this way is that the pdf always exports with 5 sheets even if only the first has any information on it since the cells all have content even if that content is blank. Is there any way to have the sheet automatically reference the correct amount of rows so that it will have all of the entered info but no blank references? Google or Excel? Maybe try a script, copyValuesToRange, if small>var Title: Re: Excel Problem Post by: aygart on April 25, 2017, 06:21:52 PM Google or Excel? Maybe try a script, copyValuesToRange, if small>var excel. I assume that would be VBA. I would really rather not need to run that to get the form filled. Title: Re: Excel Problem Post by: lechatchileh ariber on April 25, 2017, 06:22:57 PM excel. I assume that would be VBA. I would really rather not need to run that to get the form filled. You can have it trigger on edit Title: Re: Excel Problem Post by: aygart on April 25, 2017, 06:35:37 PM You can have it trigger on edit how would I do that? Title: Re: Excel Problem Post by: lechatchileh ariber on April 25, 2017, 06:48:15 PM how would I do that? I'm not familiar with VBA Title: Re: Excel Problem Post by: Yisroel Tech on April 25, 2017, 07:10:11 PM how would I do that? Also not familiar with VBA, but google is... Something like this for the triggering part: https://www.thespreadsheetguru.com/blog/trigger-your-vba-macros-to-run-based-on-specific-cell-value-change The VBA for the rest you know how to do? Title: Re: Excel Problem Post by: AsherO on April 25, 2017, 07:12:50 PM how would I do that? https://support.microsoft.com/en-us/help/213612/how-to-run-a-macro-when-certain-cells-change-in-excel I'm not familiar with VBA lol. Then how did you know it was possible. Title: Re: Excel Problem Post by: aygart on April 25, 2017, 07:14:24 PM I hate making macros. I especially since they bog down the worksheet and this is one i can easily have many of them open at the same time. Title: Re: Excel Problem Post by: etech0 on April 25, 2017, 07:45:06 PM I hate making macros. I especially since they bog down the worksheet and this is one i can easily have many of them open at the same time. If you run the macro on demand it won't bog down your worksheet; you might find it faster than having tons of formulas recalculating all the time. You could probably even have the macro do the "export to pdf" thing for you. That's what I'd do if it were me. If you wanted to use Google Sheets you could have it import a range and then it wouldn't copy over the empty cells. Another option to try (depending on you workflow) is before exporting, copy the whole sheet and paste values. This way the blank cells should be truly blank. Title: Re: Excel Problem Post by: etech0 on April 25, 2017, 07:46:44 PM PS: on the topic of I hate making macros. There's a big difference between a well written, optimized macro written in VBA and a macro that was recorded and includes extra clicks, scrolls, and more. Title: Re: Excel Problem Post by: lechatchileh ariber on April 25, 2017, 07:55:21 PM https://support.microsoft.com/en-us/help/213612/how-to-run-a-macro-when-certain-cells-change-in-excel lol. Then how did you know it was possible. I'm a bit familiar with Google sheets, And also happens to be that I just wrote a trigger script. Title: Re: Excel Problem Post by: aygart on April 25, 2017, 08:01:16 PM PS: on the topic ofThere's a big difference between a well written, optimized macro written in VBA and a macro that was recorded and includes extra clicks, scrolls, and more. I am sure, but I am not familiar enough with VBA to wrote one that way. I have recorded and then edited it to make it more efficient such as removing selecting cells and scrolls. Title: Re: Excel Problem Post by: etech0 on April 25, 2017, 08:05:06 PM I am sure, but I am not familiar enough with VBA to wrote one that way. I have recorded and then edited it to make it more efficient such as removing selecting cells and scrolls. That's a great way to learn VBA! Title: Re: Excel Problem Post by: Yisroel Tech on April 25, 2017, 09:02:55 PM Maybe it would be a good idea to have a macro that does what you want and the macro should call the print too (see here http://stackoverflow.com/a/20751096/5518385). And put this with a shortcut or a button. So it will just be a simple task to do instead of the normal way to print you'll run the macro. Title: Re: Excel Problem Post by: aygart on April 25, 2017, 09:08:45 PM Maybe it would be a good idea to have a macro that does what you want and the macro should call the print too (see here http://stackoverflow.com/a/20751096/5518385). And put this with a shortcut or a button. So it will just be a simple task to do instead of the normal way to print you'll run the macro. I don't use the print function to make the PDF. Excel has the option to save to PDF which I added to the ribbon. My experience with such macros on sheets sent to me has been that they don't work well. Title: Re: Excel Problem Post by: Yisroel Tech on April 25, 2017, 09:13:45 PM I don't use the print function to make the PDF. Excel has the option to save to PDF which I added to the ribbon. My experience with such macros on sheets sent to me has been that they don't work well. I'm not sure about your experiences, but the macro from here http://www.contextures.com/excelvbapdf.html works smooth and flawlessly for me to Save As PDF. Just add before it the other parts. Title: Re: Excel Problem Post by: skyguy918 on April 25, 2017, 10:03:35 PM I don't use the print function to make the PDF. Excel has the option to save to PDF which I added to the ribbon. My experience with such macros on sheets sent to me has been that they don't work well. Assuming save to PDF uses print_area, you can make that named range conditional (ie formula based). Title: Re: Excel Problem Post by: aygart on April 25, 2017, 10:07:15 PM Assuming save to PDF uses print_area, you can make that named range conditional (ie formula based). How? Title: Re: Excel Problem Post by: etech0 on April 25, 2017, 11:02:47 PM Maybe it would be a good idea to have a macro that does what you want and the macro should call the print too (see here http://stackoverflow.com/a/20751096/5518385). And put this with a shortcut or a button. So it will just be a simple task to do instead of the normal way to print you'll run the macro. +1 Title: Re: Excel Problem Post by: dpk4588 on April 25, 2017, 11:29:45 PM How do I make an auto completing dropdown list? In the attached file, I'd like the "Team" column in tab "Lookup" be set that when I start typing "Ma" it starts to auto complete based on the list in tab "List" Title: Re: Excel Problem Post by: etech0 on April 25, 2017, 11:57:01 PM How do I make an auto completing dropdown list? In the attached file, I'd like the "Team" column in tab "Lookup" be set that when I start typing "Ma" it starts to auto complete based on the list in tab "List" Select the Team column. Click Data > Data Validation. Under Allow, choose list. Click into the Source box and select your source, and click OK. Then you can use the dropdown list. ETA: Just saw your point about autocomplete. I don't know of a way offhand, am curious to see if anyone else does. Although once you use each choice in the column, it will offer it to autocomplete later in the column. Title: Re: Excel Problem Post by: skyguy918 on April 26, 2017, 01:22:11 AM How? Go to each sheet that prints, highlight some cells, and hit Alt>P>R>C. That will create a named range for each sheet you do that on called print_range (not _area as I wrote earlier). Then you can go into the Name Manager (Alt>M>N), double click each print_range variable, and replace the direct reference with a formula. Assuming the first column is indicative of which rows need to be included, I would suggest =OFFSET($A$1,0,0,COUNTA($A:$A),x), where x is the number of columns you want included. If that needs to be variable as well, you can tweak it too. Title: Re: Excel Problem Post by: aygart on April 26, 2017, 09:43:49 AM How do I make an auto completing dropdown list? In the attached file, I'd like the "Team" column in tab "Lookup" be set that when I start typing "Ma" it starts to auto complete based on the list in tab "List" http://www.ozgrid.com/Excel/autocomplete-validation.htm http://stackoverflow.com/questions/7989763/excel-2010-how-to-use-autocomplete-in-validation-list Title: Re: Excel Problem Post by: aygart on April 26, 2017, 09:59:31 AM Go to each sheet that prints, highlight some cells, and hit Alt>P>R>C. That will create a named range for each sheet you do that on called print_range (not _area as I wrote earlier). Then you can go into the Name Manager (Alt>M>N), double click each print_range variable, and replace the direct reference with a formula. Assuming the first column is indicative of which rows need to be included, I would suggest =OFFSET($A$1,0,0,COUNTA($A:$A),x), where x is the number of columns you want included. If that needs to be variable as well, you can tweak it too. It is still including all cells with blank references. Title: Re: Excel Problem Post by: aygart on April 26, 2017, 10:18:07 AM An additional issue with using a macro is that some of my reps use the sheet on mobile devices. I striped down the sheet and attached it. They fill the info on the CustInfo tab and it fills on the LOE tab which i also export to a PDF. Title: Re: Excel Problem Post by: lechatchileh ariber on April 26, 2017, 10:40:45 AM An additional issue with using a macro is that some of my reps use the sheet on mobile devices. I striped down the sheet and attached it. They fill the info on the CustInfo tab and it fills on the LOE tab which i also export to a PDF. That's the reason I had to make a trigger script on my sheet Title: Re: Excel Problem Post by: aygart on April 26, 2017, 10:42:18 AM That's the reason I had to make a trigger script on my sheet Meaning using google sheets instead of excel? Title: Re: Excel Problem Post by: lechatchileh ariber on April 26, 2017, 10:50:57 AM Meaning using google sheets instead of excel? I'm using Google sheets anyways, but I want to be able to submit data input also from the Google sheets app Title: Re: Excel Problem Post by: etech0 on April 26, 2017, 03:03:17 PM An additional issue with using a macro is that some of my reps use the sheet on mobile devices. I striped down the sheet and attached it. They fill the info on the CustInfo tab and it fills on the LOE tab which i also export to a PDF. How do they get the file to you? Do they email it? Title: Re: Excel Problem Post by: aygart on April 26, 2017, 03:04:18 PM How do they get the file to you? Do they email it? yup Title: Re: Excel Problem Post by: etech0 on April 26, 2017, 03:06:15 PM yup So you can store the macro in Personal.xlsb and then the files they use won't have to include macros. Assuming that you're the only one who will want to run it. Title: Re: Excel Problem Post by: aygart on April 26, 2017, 03:58:53 PM So you can store the macro in Personal.xlsb and then the files they use won't have to include macros. Assuming that you're the only one who will want to run it. I am not the only one who would run it but if there is no other option then I would just leave the reps with it as is. Title: Re: Excel Problem Post by: skyguy918 on April 26, 2017, 04:08:16 PM It is still including all cells with blank references. Got it to work. I forgot that COUNTA looks for non-empty, as opposed to non-blank. You can use this instead: =OFFSET(LOE!$A$1,0,0,140-COUNTBLANK(LOE!$A$21:$A$140),10) [I also adjusted it to account for the blank cells in the first 20 rows.] The second thing, and this might be a dealbreaker, is that it requires that you keep the LOE tab in Normal view, not Page Layout or Page Break view [ETA: Scratch that, Page Break seems to work too. Apparently it's just Page Layout view that's a problem]. Switch this before entering your new formula for Print_Area, otherwise the formula will get converted to a non-dynamic reference. Title: Re: Excel Problem Post by: aygart on April 26, 2017, 05:05:28 PM Got it to work. I forgot that COUNTA looks for non-empty, as opposed to non-blank. You can use this instead: =OFFSET(LOE!$A$1,0,0,140-COUNTBLANK(LOE!$A$21:$A$140),10) [I also adjusted it to account for the blank cells in the first 20 rows.] The second thing, and this might be a dealbreaker, is that it requires that you keep the LOE tab in Normal view, not Page Layout or Page Break view [ETA: Scratch that, Page Break seems to work too. Apparently it's just Page Layout view that's a problem]. Switch this before entering your new formula for Print_Area, otherwise the formula will get converted to a non-dynamic reference. This works great! BTW, it seems that if it is switched to page layout view after creating the print area it will show everything in excel but when printing or saving to a PDF it will still only include the print area. Title: Re: Excel Problem Post by: etech0 on April 26, 2017, 05:10:27 PM This works great! Awesome! Title: Re: Excel Problem Post by: aygart on April 26, 2017, 05:14:13 PM Awesome! Now I need to see if I can put together a godd macro for the more extensive spreadsheet which we use within the office. Title: Re: Excel Problem Post by: dpk4588 on April 26, 2017, 05:52:04 PM http://www.ozgrid.com/Excel/autocomplete-validation.htm http://stackoverflow.com/questions/7989763/excel-2010-how-to-use-autocomplete-in-validation-list I had gotten that, although I was screwing something up that I've since fixed. Is it possible to have it not auto complete, but instead show me list of names matching what I've already typed. Meaning, if I have 5 names that all start with Mar, can I have it show me those and as I keep typing, it narrows it down to the ones that still fit, then once there's only one, have it auto complete? Title: Re: Excel Problem Post by: aygart on April 26, 2017, 06:09:13 PM I had gotten that, although I was screwing something up that I've since fixed. Is it possible to have it not auto complete, but instead show me list of names matching what I've already typed. Meaning, if I have 5 names that all start with Mar, can I have it show me those and as I keep typing, it narrows it down to the ones that still fit, then once there's only one, have it auto complete? With VBA I think you can Title: Re: Excel Problem Post by: aygart on April 26, 2017, 07:31:46 PM Got it to work. I forgot that COUNTA looks for non-empty, as opposed to non-blank. You can use this instead: =OFFSET(LOE!$A$1,0,0,140-COUNTBLANK(LOE!$A$21:$A$140),10) [I also adjusted it to account for the blank cells in the first 20 rows.] The second thing, and this might be a dealbreaker, is that it requires that you keep the LOE tab in Normal view, not Page Layout or Page Break view [ETA: Scratch that, Page Break seems to work too. Apparently it's just Page Layout view that's a problem]. Switch this before entering your new formula for Print_Area, otherwise the formula will get converted to a non-dynamic reference. This works great! BTW, it seems that if it is switched to page layout view after creating the print area it will show everything in excel but when printing or saving to a PDF it will still only include the print area. Upon further review it did not work on page view because when adding it did not add to the printable area as Skyguy918 wrote that it is not dynamic. THat leads me to the question if there is a way to have a letterhead show. I now have it in the header but if it is better some other way that is also fine. Title: Re: Excel Problem Post by: dpk4588 on April 26, 2017, 07:35:59 PM With VBA I think you can I was hoping to avoid VBA because then all the workbooks I'll be adding this formula to will need to be macro enabled. Title: Re: Excel Problem Post by: aygart on April 26, 2017, 07:37:13 PM I was hoping to avoid VBA because then all the workbooks I'll be adding this formula to will need to be macro enabled. or So you can store the macro in Personal.xlsb and then the files they use won't have to include macros. Assuming that you're the only one who will want to run it. Title: Re: Excel Problem Post by: dpk4588 on April 26, 2017, 07:38:57 PM or It's something everyone in the office uses everyday. It's how we do billing and the list I want is the billing code list. Title: Re: Excel Problem Post by: etech0 on April 26, 2017, 07:41:31 PM It's something everyone in the office uses everyday. It's how we do billing and the list I want is the billing code list. I may be wrong, but I think there's a way to add macros to a workbook on a server (I'm assuming you have one), and then set it up so everyone in the office can access those macros when they open Excel. Maybe as an add-in or something? Title: Re: Excel Problem Post by: yitzf on April 26, 2017, 10:22:14 PM I may be wrong, but I think there's a way to add macros to a workbook on a server (I'm assuming you have one), and then set it up so everyone in the office can access those macros when they open Excel. Maybe as an add-in or something? There is but you still need to enable macros in the workbook you are using. Title: Re: Excel Problem Post by: aygart on April 26, 2017, 10:24:28 PM There is but you still need to enable macros in the workbook you are using. But does it need to be saved as macro enabled? Title: Re: Excel Problem Post by: yitzf on April 26, 2017, 10:35:28 PM But does it need to be saved as macro enabled? It can be .xlsx. You don't get the typical yellow bar to enable macros rather you get a warning so I wonder if you can trust the location an not get the warning. Title: Re: Excel Problem Post by: etech0 on April 26, 2017, 11:32:33 PM You don't get the typical yellow bar to enable macros rather you get a warning so I wonder if you can trust the location an not get the warning. I'm pretty sure there's a way Title: Re: Excel Problem Post by: churnbabychurn on April 27, 2017, 08:13:30 AM @aygart, haven't seen your spreadsheet or been following, but I would think this is something for a billing/quote software instead of excel... Especially with multiple reps etc Title: Re: Excel Problem Post by: aygart on April 27, 2017, 10:21:50 AM It can be .xlsx. You don't get the typical yellow bar to enable macros rather you get a warning so I wonder if you can trust the location an not get the warning. Is this the entire issue? Title: Re: Excel Problem Post by: skyguy918 on April 27, 2017, 10:29:38 AM Upon further review it did not work on page view because when adding it did not add to the printable area as Skyguy918 wrote that it is not dynamic. THat leads me to the question if there is a way to have a letterhead show. I now have it in the header but if it is better some other way that is also fine. It shows when it prints, right? You're just asking how to get it to show on the screen as well? Title: Re: Excel Problem Post by: dpk4588 on April 27, 2017, 10:34:11 AM With VBA I think you can I'm not well versed in VBA, any idea how? I found a video on youtube (https://www.youtube.com/watch?v=vOOuSe_s6pQ), but that has what seem like unnecessary steps, like having to double click a cell to prompt a combo box to appear. Is there a simpler way to do it? @aygart, haven't seen your spreadsheet or been following, but I would think this is something for a billing/quote software instead of excel... Especially with multiple reps etc We don't actually use it for billing, its more for keeping each employee's time, and it works pretty well for us, this would just make it easier for those of us who are lazy and or can't spell well (data validation would solve the spelling issues because it wont let you leave a misspelled name in the cell). Title: Re: Excel Problem Post by: yitzf on April 27, 2017, 10:36:24 AM Is this the entire issue? Well you also have to set up the server and a button on the user file that links to the server. The add-in is on the server and when you assign a macro to the button you put in a link to the add-in (location/filename.xla!macroname) Title: Re: Excel Problem Post by: jose34 on April 30, 2017, 07:52:12 AM I'm trying to Paste a bunch of lines from an Excel Document into a Microsoft Word table. However whenever I paste into Word it doubles the data a bunch of times over. Any suggestions? Please see attachments for clarification. Title: Re: Excel Problem Post by: etech0 on April 30, 2017, 08:33:57 AM I'm trying to Paste a bunch of lines from an Excel Document into a Microsoft Word table. However whenever I paste into Word it doubles the data a bunch of times over. Any suggestions? Please see attachments for clarification. Looks like something funny is going on. Can you attach your excel file? You could also try copying and doing Paste Values into another excel sheet and then try copying that into Word. Title: Re: Excel Problem Post by: aygart on April 30, 2017, 09:56:26 AM I'm trying to Paste a bunch of lines from an Excel Document into a Microsoft Word table. However whenever I paste into Word it doubles the data a bunch of times over. Any suggestions? Please see attachments for clarification. My guess is that you have some merged cells Title: Re: Excel Problem Post by: Yammer on May 08, 2017, 05:08:04 PM I have an Google sheet that I'm putting in name/address information. I currently have a data validation list of all the state abbreviations. Is there a way for the person entering the data to see the full state name but once selected, the abbreviation comes up? Title: Re: Excel Problem Post by: gozalim on May 14, 2017, 07:03:35 PM I have excel data which I need sorted alphabetically. Data is in hebrew is there a way to get it to sort יג, יד, טו, טז, יז... (I'd try to create a unique order list, kind of 'sort array' then sort by that column, but I think that'll only work if the entire cell is the specific item match. here I need it to treat it that way 'alphabetically'-where it's the beginning of a larger string of data (e.g. טז,כ comes after יד, ח) Title: Re: Excel Problem Post by: etech0 on May 14, 2017, 07:28:41 PM I have excel data which I need sorted alphabetically. Data is in hebrew is there a way to get it to sort יג, יד, טו, טז, יז... (I'd try to create a unique order list, kind of 'sort array' then sort by that column, but I think that'll only work if the entire cell is the specific item match. here I need it to treat it that way 'alphabetically'-where it's the beginning of a larger string of data (e.g. טז,כ comes after יד, ח) Maybe a hidden sheet with a list of hebrew #s and regular #s? Then you could vlookup to get the # and sort by the vlookup column. Title: Re: Excel Problem Post by: gozalim on May 14, 2017, 07:30:11 PM Maybe a hidden sheet with a list of hebrew #s and regular #s? Then you could vlookup to get the # and sort by the vlookup column. that's what I was referring to in the second half of my post. I've gotten stuff like that to work on full cells, not where "cell starts with..." Title: Re: Excel Problem Post by: etech0 on May 14, 2017, 07:31:14 PM that's what I was referring to in the second half of my post. I've gotten stuff like that to work on full cells, not where "cell starts with..." What kind of data is in your cells? Can you give a sampling? You may still be able to use vlookup, with the last argument set to "true" Title: Re: Excel Problem Post by: gozalim on May 14, 2017, 07:35:58 PM What kind of data is in your cells? Can you give a sampling? You may still be able to use vlookup, with the last argument set to "true" see here בראשית ב, י שמות יט, ג תהלים קיג, ט בראשית ב, כא-כב משלי כד, ג-ד שמות יד, א שמות לה, כב בראשית ג, ו בראשית ג, טז-יט בראשית ג, כב-כג שמות לה, כב שמות לה, כה-כו תהלים קכו, ה משלי ג, ו ישעיהו נז, טז שמות טו, כ-כא בראשית ב, א-ג שיר השירים ג, יא I have the 'sefer' in its own cell, sorted by custom lookup. 2nd column sorts great alphabetically except for where שמות טו, כ-כא will be listed before שמות יד, א Title: Re: Excel Problem Post by: gozalim on May 14, 2017, 07:37:59 PM What kind of data is in your cells? Can you give a sampling? You may still be able to use vlookup, with the last argument set to "true" I hadn't had that work for me (in the sefer cell either) though I may try again. If yes-that would work for the פרק (though not for the פסוק). what do seforim people do? Title: Re: Excel Problem Post by: etech0 on May 14, 2017, 07:52:57 PM see here בראשית ב, י שמות יט, ג תהלים קיג, ט בראשית ב, כא-כב משלי כד, ג-ד שמות יד, א שמות לה, כב בראשית ג, ו בראשית ג, טז-יט בראשית ג, כב-כג שמות לה, כב שמות לה, כה-כו תהלים קכו, ה משלי ג, ו ישעיהו נז, טז שמות טו, כ-כא בראשית ב, א-ג שיר השירים ג, יא I have the 'sefer' in its own cell, sorted by custom lookup. 2nd column sorts great alphabetically except for where שמות טו, כ-כא will be listed before שמות יד, א hmm, that does complicate things. you might need to use formulas to separate out the perek and pasuk. Title: Re: Excel Problem Post by: gozalim on May 14, 2017, 08:12:54 PM wondering about an alternate possibility: run a "replace all" before and after sorting. (e.g. all טו=יה, sort, then in reverse) considering that i don't expect examples of the alternate word. problem: where alternate word exists within larger word (e.g. ישעיהו). in theory searching for "whole word only" should solve 90% of the issue, but I don't see such a choice in excel (only "whole cell). and searching with space preceding won't work for where the cell begins that way. Is there a way to search "whole world only" or a wildcard that means "no character" (kinda reverse of *) ? Title: Re: Excel Problem Post by: etech0 on May 14, 2017, 08:27:46 PM wondering about an alternate possibility: run a "replace all" before and after sorting. (e.g. all טו=יה, sort, then in reverse) considering that i don't expect examples of the alternate word. problem: where alternate word exists within larger word (e.g. ישעיהו). in theory searching for "whole word only" should solve 90% of the issue, but I don't see such a choice in excel (only "whole cell). and searching with space preceding won't work for where the cell begins that way. Is there a way to search "whole world only" or a wildcard that means "no character" (kinda reverse of *) ? could you transfer this to google sheets? If so, regex would open up a lot of possibilities Title: Re: Excel Problem Post by: gozalim on May 14, 2017, 10:29:12 PM could you transfer this to google sheets? If so, regex would open up a lot of possibilities tell me more Title: Re: Excel Problem Post by: etech0 on May 14, 2017, 11:01:39 PM tell me more You could use regexextract to split "בראשית ב, י" into 3 cells, then you'd be able to do the vlookup on the ב cell and the י cell and sort. Another option would be to use regexreplace to convert טו and טז into their equivalents, for sorting purposes. Title: Re: Excel Problem Post by: gozalim on May 15, 2017, 11:55:52 AM I find it interesting that gdocs has regex where excel does not (especially considering word does IINM) here I was thinking that excel is the more robust program with gdocs being more lightweight... Title: Re: Excel Problem Post by: etech0 on May 15, 2017, 11:57:17 AM I find it interesting that gdocs has regex where excel does not (especially considering word does IINM) here I was thinking that excel is the more robust program with gdocs being more lightweight... +1 it was very surprising to me as well Title: Re: Excel Problem Post by: gozalim on May 15, 2017, 11:57:54 AM +1 it was very surprising to me as well am I wrong about gdocs in general? Title: Re: Excel Problem Post by: etech0 on May 15, 2017, 12:00:22 PM am I wrong about gdocs in general? IMO Excel is more robust, and also more accepted in the business world. Though it's possible that over time gdocs has been adding features and catching up somewhat. Personally, I turn to google sheets in 3 situations: 1) I want to collaborate with other people 2) I want to access the file from any computer (eg: at home / at work) 3) I want to use regex Title: Re: Excel Problem Post by: gozalim on May 15, 2017, 12:09:24 PM You could use regexextract to split "בראשית ב, י" into 3 cells, then you'd be able to do the vlookup on the ב cell and the י cell and sort. Another option would be to use regexreplace to convert טו and טז into their equivalents, for sorting purposes. How does regex work with hebrew? shouldn't Code: [Select] \bטו\bfind th טו in Code: [Select] טו, ? Title: Re: Excel Problem Post by: etech0 on May 15, 2017, 12:18:11 PM How does regex work with hebrew? shouldn't Code: [Select] \bטו\bfind th טו in Code: [Select] טו, ? =regexreplace(A1," טו"," יה") should do it. If you include a space before each number (like in my example) then you shouldn't mess up other words that include those letters, hopefully. Title: Re: Excel Problem Post by: gozalim on May 15, 2017, 12:21:03 PM =regexreplace(A1," טו"," יה") should do it. If you include a space before each number (like in my example) then you shouldn't mess up other words that include those letters, hopefully. problem with space before is line beginnings. or do i just do a separate search with "^טו"? if so, do i even need gdocs/regex? Title: Re: Excel Problem Post by: etech0 on May 15, 2017, 12:22:10 PM problem with space before is line beginnings. or do i just do a separate search with "^טו"? if so, do i even need gdocs/regex? Do lines ever start with the number, or do they always have a parsha before? If you're going to do a regular find and replace, you shouldn't need gdocs. Title: Re: Excel Problem Post by: gozalim on May 15, 2017, 12:22:52 PM Do lines ever start with the number, or do they always have a parsha before? If you're going to do a regular find and replace, you shouldn't need gdocs. parsha is in it's own cell Title: Re: Excel Problem Post by: gozalim on May 15, 2017, 12:24:26 PM part of my issue is i needed \W not \w (I need non-word characters) Title: Re: Excel Problem Post by: etech0 on May 15, 2017, 12:25:54 PM parsha is in it's own cell Aha. Then you could easily use regexextract to split the perek and pasuk into separate cells, then you could go the vlookup route and then sort by the vlookup columns. You may find it simpler to store the perek and pasuk as numbers, and then use a column with formulas to display it with the hebrew letters. Title: Re: Excel Problem Post by: etech0 on May 15, 2017, 12:26:09 PM part of my issue is i needed \W not \w (i need non-word characters. where? Title: Re: Excel Problem Post by: gozalim on May 15, 2017, 12:29:20 PM You may find it simpler to store the perek and pasuk as numbers, and then use a column with formulas to display it with the hebrew letters. that would probably have been a great way to operate to begin with, question would be if can convert now... Aha. Then you could easily use regexextract to split the perek and pasuk into separate cells, then you could go the vlookup route and then sort by the vlookup columns. column includes other format data (general list of מקורות) so splitting lines would get messy Title: Re: Excel Problem Post by: gozalim on May 15, 2017, 12:30:41 PM where? find every טו which isn't part of a word i.e. preceded by a non letter (either a line begining, a space, or a -) Title: Re: Excel Problem Post by: gozalim on May 15, 2017, 12:32:09 PM part of my issue is i needed \W not \w (I need non-word characters) not that great. Code: [Select] \Wטוstill pulls up "מטות" Title: Re: Excel Problem Post by: etech0 on May 15, 2017, 12:33:03 PM find every טו which isn't part of a word i.e. preceded by a non letter (either a line begining, a space, or a -) Does \Wטו work? Title: Re: Excel Problem Post by: gozalim on May 15, 2017, 12:33:49 PM Does \Wטו work? not that great. Code: [Select] \Wטוstill pulls up "מטות" Title: Re: Excel Problem Post by: etech0 on May 15, 2017, 12:33:59 PM not that great. Code: [Select] \Wטוstill pulls up "מטות" Hmmm, I wonder if it thinks hebrew letters are non-word characters. Title: Re: Excel Problem Post by: etech0 on May 15, 2017, 12:34:31 PM How about (\A| |-)טו ? Title: Re: Excel Problem Post by: gozalim on May 15, 2017, 12:36:00 PM How about (\A| |-)טו ? looks good! וואס איז פשט? Title: Re: Excel Problem Post by: etech0 on May 15, 2017, 12:36:16 PM Also, if you have the parsha in separate cells, can you just not run the find/replace on that column? Title: Re: Excel Problem Post by: etech0 on May 15, 2017, 12:36:55 PM looks good! וואס איז פשט? Pipeline is "or". So you're looking for \A (start of string) OR space OR hyphen. You can add in more options if you need. Title: Re: Excel Problem Post by: gozalim on May 15, 2017, 12:37:20 PM Also, if you have the parsha in separate cells, can you just not run the find/replace on that column? yes. it's finding matos where that's the מ"מ of a zohar quote... Title: Re: Excel Problem Post by: etech0 on May 15, 2017, 12:37:58 PM yes. it's finding matos where that's the מ"מ of a zohar quote... aha Title: Re: Excel Problem Post by: gozalim on May 15, 2017, 12:43:12 PM Pipeline is "or". So you're looking for \A (start of string) OR space OR hyphen. You can add in more options if you need. thanks. how do I not loose the space/hyphen/comma? Title: Re: Excel Problem Post by: etech0 on May 15, 2017, 12:44:37 PM still limited to regex though. נו נו thanks. how do I not loose the space/hyphen/comma? You're welcome. Do you mean when replacing? Title: Re: Excel Problem Post by: gozalim on May 15, 2017, 12:45:51 PM You're welcome. Do you mean when replacing? yes Title: Re: Excel Problem Post by: etech0 on May 15, 2017, 12:49:50 PM yes Hmmm... try this: Add an extra set of parenthesis around the (\A| |-), like this: ((\A| |-)) Then at the beginning of the "replacement" section, add$1.

Basically, the extra set of parenthesis "captures" the result of that portion of the string, and then you can use it later via $1. (If you captured more than one portion, you'd access the subsequent portions with$2, $3, etc.) Title: Re: Excel Problem Post by: gozalim on May 15, 2017, 12:54:13 PM Hmmm... try this: Add an extra set of parenthesis around the (\A| |-), like this: ((\A| |-)) Then at the beginning of the "replacement" section, add$1.
find isn't finding...

(i'm seeing that the wildcard method is Find:(a)(b) Replace:\2.
wildcard and regex are mutually exclusive, though...)
Title: Re: Excel Problem
Post by: gozalim on May 15, 2017, 12:54:53 PM
find isn't finding...

(i'm seeing that the wildcard method is Find:(a)(b) Replace:\2.
wildcard and regex are mutually exclusive, though...)
Looks like it worked! thanks!
Title: Re: Excel Problem
Post by: etech0 on May 15, 2017, 01:32:14 PM
Looks like it worked! thanks!
Great! You're welcome!
Title: Re: Excel Problem
Post by: gozalim on May 15, 2017, 01:42:57 PM
Great! You're welcome!
in the end I used
Code: [Select]
((\A| |-|^|ק|ר|ש|ת))
Title: Re: Excel Problem
Post by: etech0 on May 15, 2017, 01:45:11 PM
in the end I used
Code: [Select]
((\A| |-|^|ק|ר|ש|ת))
Cool! Why only those letters?
Title: Re: Excel Problem
Post by: gozalim on May 15, 2017, 01:46:14 PM
Cool! Why only those letters?
only ones that would be used in a number
Title: Re: Excel Problem
Post by: gozalim on May 15, 2017, 01:52:33 PM
in the end I used
Code: [Select]
((\A| |-|^|ק|ר|ש|ת))
and yet if the range includes anything matching
Code: [Select]
((\A| |-|^|ק|ר|ש|ת))טו[א-ת](in 1 line)
(e.g. יהושע) would still mess up/need a manual fix
Title: Re: Excel Problem
Post by: etech0 on May 15, 2017, 01:56:03 PM
and yet if the range includes anything matching
Code: [Select]
((\A| |-|^|ק|ר|ש|ת))טו[א-ת](in 1 line)
(e.g. יהושע) would still mess up/need a manual fix
Because I think you want first \A or - or space or ^, and THEN another OR group for the letters.
Title: Re: Excel Problem
Post by: gozalim on May 15, 2017, 02:02:12 PM
Because I think you want first \A or - or space or ^, and THEN another OR group for the letters.
the letters isn't what messes up יהושע. (note the ו in there). what throws it off is that we aren't filtering by those followed by letters
(in a sense we want to say:
preceded by "\A or - or space or ^ etc."
EXCEPT WHERE
followed by:[א-ת]
Title: Re: Excel Problem
Post by: etech0 on May 15, 2017, 02:38:46 PM
the letters isn't what messes up יהושע. (note the ו in there). what throws it off is that we aren't filtering by those followed by letters
(in a sense we want to say:
preceded by "\A or - or space or ^ etc."
EXCEPT WHERE
followed by:[א-ת]
So then maybe we need another OR group for "end of string / space / hyphen / etc", after the טו.
Title: Re: Excel Problem
Post by: gozalim on May 15, 2017, 02:40:00 PM
So then maybe we need another OR group for "end of string / space / hyphen / etc", after the טו.
then you run into those words that end with יה\יו
Title: Re: Excel Problem
Post by: etech0 on May 15, 2017, 02:43:19 PM
then you run into those words that end with יה\יו
Why? We aren't replacing those strings, we're replacing טו and טז
Title: Re: Excel Problem
Post by: gozalim on May 15, 2017, 02:46:02 PM
Why? We aren't replacing those strings, we're replacing טו and טז
misunderstood your goal. addding the same list at the end narrows those out. good.
just replace A with Z and ^ with $. lemme test that Title: Re: Excel Problem Post by: gozalim on May 15, 2017, 02:55:51 PM So then maybe we need another OR group for "end of string / space / hyphen / etc", after the טו. will that play nice with$1

?

ETA: seemed initially like not
(was somehow excluding any "טו," and when i added "|," to the script, it got the comma somehow removed.
was an easy enough fix in my case, as specifically commas (as opposed to other breaks) were always supposed to be accompanied by a space... so was able to replace all "טו "with "טו, "

worse problem was : קטו with $1 became טו... Title: Re: Excel Problem Post by: etech0 on May 15, 2017, 03:08:56 PM will that play nice with$1

?

You'll want to include parentheses around that OR group as well, and you can plug it into the result with $2 Title: Re: Excel Problem Post by: etech0 on May 15, 2017, 03:09:19 PM (was somehow excluding any "טו," and when i added "|," to the script, it got the comma somehow removed. was an easy enough fix in my case, as specifically commas (as opposed to other breaks) were always supposed to be accompanied by a space... so was able to replace all "טו "with "טו, " not following Title: Re: Excel Problem Post by: etech0 on May 15, 2017, 03:10:30 PM worse problem was : קטו with$1 became טו...
That's because you included a ק in your first OR group
Title: Re: Excel Problem
Post by: gozalim on May 15, 2017, 03:19:52 PM
not following
if we're having comparisons both before and after the text, how do we ensure that it always chooses the right 'section' of the search to replace?
Title: Re: Excel Problem
Post by: etech0 on May 15, 2017, 03:40:27 PM
if we're having comparisons both before and after the text, how do we ensure that it always chooses the right 'section' of the search to replace?
You'll add in the first OR group with $1, and the second one with$2. Assuming that I'm understanding your question correctly.
Title: Re: Excel Problem
Post by: gozalim on May 15, 2017, 03:41:42 PM
You'll add in the first OR group with $1, and the second one with$2. Assuming that I'm understanding your question correctly.
If you're doing them both separately, you run into my original question
Title: Re: Excel Problem
Post by: etech0 on May 15, 2017, 03:42:35 PM
If you're doing them both separately, you run into my original question
Each OR group is surrounded by parenthesis, you do them both at once. You'll reference them in your replacement string with $1 and$2.

Can you post the formula you're working with now so that we're on the same page?
Title: Re: Excel Problem
Post by: gozalim on May 15, 2017, 04:10:30 PM
If I run
Code: [Select]
((\A| |-|^|ק|ר|ש|ת))טו((\A| |-|^|,))in a single search than I run into problems with
Code: [Select]
$1יה and If I do them separately, 1st Code: [Select] ((\A| |-|^|ק|ר|ש|ת))טוthen Code: [Select] טו((\A| |-|^|,))what stops the 1st search from catching יהושע? or the last on from catching ירמיה? Title: Re: Excel Problem Post by: etech0 on May 15, 2017, 04:53:55 PM If I run Code: [Select] ((\A| |-|^|ק|ר|ש|ת))טו((\A| |-|^|,))in a single search than I run into problems with Code: [Select] $1יה

and If I do them separately, 1st
Code: [Select]
((\A| |-|^|ק|ר|ש|ת))טוthen
Code: [Select]
טו((\A| |-|^|,))what stops the 1st search from catching יהושע? or the last on from catching ירמיה?
I think you want to close the first set of parens before the טו.
Title: Re: Excel Problem
Post by: gozalim on May 15, 2017, 04:55:54 PM
I think you want to close the first set of parens before the טו.
I did. it's not showing up correctly here due to language switch.
copy and paste it and you'll see
Title: Re: Excel Problem
Post by: etech0 on May 15, 2017, 04:57:47 PM
I did. it's not showing up correctly here due to language switch.
copy and paste it and you'll see
Are you using regexreplace? Can you post your full formula so I can copy it?
Title: Re: Excel Problem
Post by: gozalim on May 15, 2017, 05:02:22 PM
Are you using regexreplace? Can you post your full formula so I can copy it?
i'm using gdocs with regex selected.
tried with each of those examples
Title: Re: Excel Problem
Post by: etech0 on May 15, 2017, 05:06:34 PM
i'm using gdocs with regex selected.
tried with each of those examples
What do you mean by "regex selected"?
Title: Re: Excel Problem
Post by: gozalim on May 15, 2017, 05:07:06 PM
What do you mean by "regex selected"?
it's a checkbox on the expanded search box
Title: Re: Excel Problem
Post by: etech0 on May 15, 2017, 05:09:46 PM
it's a checkbox on the expanded search box
Oh, I didn't even know that :) I was referring to the REGEXREPLACE formula where you tell it a cell, the regex to look for in there, and the string to replace it with.
Title: Re: Excel Problem
Post by: gozalim on May 21, 2017, 08:12:19 PM
Oh, I didn't even know that :) I was referring to the REGEXREPLACE formula where you tell it a cell, the regex to look for in there, and the string to replace it with.
would this serve the same purpose as Gdocs?
Title: Re: Excel Problem
Post by: etech0 on May 21, 2017, 08:19:07 PM
would this serve the same purpose as Gdocs?
I haven't tried it, but it looks like it might. Let me know if it works!
Title: Re: Excel Problem
Post by: gozalim on May 21, 2017, 08:59:55 PM
I haven't tried it, but it looks like it might. Let me know if it works!
looks like it's doing what it was intended.
should I be able to nest both replacements (טו\יה and טז\יו) into a single xREPLACE?
Title: Re: Excel Problem
Post by: etech0 on May 21, 2017, 09:05:25 PM
looks like it's doing what it was intended.
should I be able to nest both replacements (טו\יה and טז\יו) into a single xREPLACE?
I don't think so, but you can nest one formula inside the other
Title: Re: Excel Problem
Post by: gozalim on May 21, 2017, 09:19:39 PM
I don't think so, but you can nest one formula inside the other
but that would give me the whole cell doubled
Title: Re: Excel Problem
Post by: etech0 on May 21, 2017, 09:38:17 PM
but that would give me the whole cell doubled
Not if you put one inside the other. IE: build one xReplace formula, and use it's entirety inside as the "text" inside the other.
Title: Re: Excel Problem
Post by: gozalim on May 21, 2017, 10:48:01 PM
Not if you put one inside the other. IE: build one xReplace formula, and use it's entirety inside as the "text" inside the other.
Code: [Select]
=xREPLACE(xREPLACE("((\A| |-|^))טו",A1,"יה")"((\A| |-|^))טז",A1,"יו")giving me an error msg
Title: Re: Excel Problem
Post by: etech0 on May 21, 2017, 10:51:42 PM
Code: [Select]
=xREPLACE(xREPLACE("((\A| |-|^))טו",A1,"יה")"((\A| |-|^))טז",A1,"יו")giving me an error msg
It's hard to debug because I don't have the plugin installed, but at first glance it looks like you're missing the quotation marks around the [@[כרך (א)]] parts
Title: Re: Excel Problem
Post by: gozalim on May 21, 2017, 10:53:18 PM
It's hard to debug because I don't have the plugin installed, but at first glance it looks like you're missing the quotation marks around the [@[כרך (א)]] parts
it works fine without the nesting
Title: Re: Excel Problem
Post by: etech0 on May 22, 2017, 12:10:03 AM
it works fine without the nesting
Can you post your formula that works fine, so I can compare them?
Title: Re: Excel Problem
Post by: gozalim on May 22, 2017, 12:22:37 PM
Current setup is as follows:
2 new (hidden) columns. 1st has
Code: [Select]
=xREPLACE("((\A| |-|^|ק|ר|ש|ת))טז",[@[כרך (א)]],"$1יו")2nd references 1st with Code: [Select] =xREPLACE("((\A| |-|^|ק|ר|ש|ת))טז",[@HebNum1],"$1יו")
It feels like he's not using excel's built-in REPLACE function, rather 're-wrote' his own in a macro or script or something, so the nesting that excel built into REPLACE doesn't necessarily apply here. though i'm not actually sure
Title: Re: Excel Problem
Post by: etech0 on May 22, 2017, 12:32:27 PM
Can you tell me what the parameters are for the function? It should tell you when you type =xReplace(
Title: Re: Excel Problem
Post by: gozalim on May 22, 2017, 12:39:19 PM
Can you tell me what the parameters are for the function? It should tell you when you type =xReplace(

doesn't offer. also not 'highlighted' in cell.
the popup offers:
xREPLACE(pattern,searchText,replacementText,ignoreCase)
Replace all portions of the search text matching the pattern with the
replacement text.
Title: Re: Excel Problem
Post by: etech0 on May 22, 2017, 12:52:19 PM
doesn't offer. also not 'highlighted' in cell.
the popup offers:
xREPLACE(pattern,searchText,replacementText,ignoreCase)
Replace all portions of the search text matching the pattern with the
replacement text.
okay, so you need to put one formula in as the "search text" - 2nd parameter - in the other. It looks like you were using the 1st parameter
Title: Re: Excel Problem
Post by: gozalim on May 22, 2017, 01:04:08 PM
okay, so you need to put one formula in as the "search text" - 2nd parameter - in the other. It looks like you were using the 1st parameter
so 2nd parameter should have entire 2nd code
Code: [Select]
=xREPLACE("((\A| |-|^|ק|ר|ש|ת))טז",[@[כרך (א)]],"$1יו")(with updated location) -I assume enclosed in a parentheses? plus the 'address' for the 1st exchange? Title: Re: Excel Problem Post by: etech0 on May 22, 2017, 01:12:08 PM so 2nd parameter should have entire 2nd code yes, excluding the = sign (with updated location) -I assume enclosed in a parentheses? no need (with updated location) -I plus the 'address' for the 1st exchange? you shouldn't need that either, since you're putting it all into one cell. Here is my attempt (bear in mind that i didn't test it) Code: [Select] =xREPLACE("((\A| |-|^|ק|ר|ש|ת))טז",xREPLACE("((\A| |-|^|ק|ר|ש|ת))טז",[@[כרך (א)]],"$1יו"),"$1יו") Title: Re: Excel Problem Post by: gozalim on May 22, 2017, 01:18:18 PM yes, excluding the = signno needyou shouldn't need that either, since you're putting it all into one cell. Here is my attempt (bear in mind that i didn't test it) Code: [Select] =xREPLACE("((\A| |-|^|ק|ר|ש|ת))טז",xREPLACE("((\A| |-|^|ק|ר|ש|ת))טז",[@[כרך (א)]],"$1יו"),"$1יו") looks like it's working! thanks! (minor correction to code) Code: [Select] =xREPLACE("((\A| |-|^|ק|ר|ש|ת))טו",xREPLACE("((\A| |-|^|ק|ר|ש|ת))טז",[@[כרך (א)]],"$1יו"),"$1יה") Title: Re: Excel Problem Post by: etech0 on May 22, 2017, 01:36:11 PM looks like it's working! thanks! (minor correction to code) Code: [Select] =xREPLACE("((\A| |-|^|ק|ר|ש|ת))טו",xREPLACE("((\A| |-|^|ק|ר|ש|ת))טז",[@[כרך (א)]],"$1יו"),"$1יה") Great!! Title: Re: Excel Problem Post by: gozalim on May 22, 2017, 01:41:21 PM btw, once I've put it in- I'm looking for a formula that will return the 1st 4-digit number from a text body. the stuff google's turning up is getting complicated. it seems like regex simplifies somewhat, but i'm not getting it to work Title: Re: Excel Problem Post by: etech0 on May 22, 2017, 01:47:33 PM btw, once I've put it in- I'm looking for a formula that will return the 1st 4-digit number from a text body. the stuff google's turning up is getting complicated. it seems like regex simplifies somewhat, but i'm not getting it to work Sure! Here it is for google sheets, you should be able to translate it to the excel version =regexextract(A1,"\d\d\d\d") Title: Re: Excel Problem Post by: etech0 on May 22, 2017, 01:48:32 PM BTW if you're looking for help / to learn regex, these are 2 of my favorite resources: https://regexone.com/ - a mini-course that walks you through learning regex http://rubular.com/ - a great reference, and great for testing your regular expressions Title: Re: Excel Problem Post by: gozalim on May 22, 2017, 02:02:57 PM Sure! Here it is for google sheets, you should be able to translate it to the excel version =regexextract(A1,"\d\d\d\d") thanks Code: [Select] =xMATCH("\d\d\d\d",[@[כרך (א)]]) Title: Re: Excel Problem Post by: etech0 on May 22, 2017, 02:37:39 PM thanks Code: [Select] =xMATCH("\d\d\d\d",[@[כרך (א)]]) Cool! BTW, for your second argument/parameter, you can just refer to the cell containing the source text. Then you could copy the formula for an entire column. Title: Re: Excel Problem Post by: gozalim on May 22, 2017, 02:38:42 PM Cool! BTW, for your second argument/parameter, you can just refer to the cell containing the source text. Then you could copy the formula for an entire column. it's a table so it does go to the whole column. I click the cell it 'takes' that [column title] Title: Re: Excel Problem Post by: etech0 on May 22, 2017, 02:43:43 PM it's a table so it does go to the whole column. I click the cell it 'takes' that [column title] Oh cool! I haven't dealt with tables much. So is @[כרך (א)] the name of your column? Title: Re: Excel Problem Post by: gozalim on May 22, 2017, 02:44:34 PM Oh cool! I haven't dealt with tables much. So is @[כרך (א)] the name of your column? yes Title: Re: Excel Problem Post by: etech0 on May 22, 2017, 03:14:09 PM yes Nice! Title: Re: Excel Problem Post by: etech0 on May 22, 2017, 11:32:10 PM 10 Easy Excel Timesavers You Might Have Forgotten (http://www.makeuseof.com/tag/excel-timesavers/) Title: Re: Excel Problem Post by: gozalim on May 23, 2017, 04:43:55 PM I'm trying to transpose last name first. like Code: [Select] Mr. Donald J. Trump to Code: [Select] Trump, Mr. Donald J.seems excel doesn't have a good way to identify "last" though regex should be able to Code: [Select] \s\w+\z but not managing to get that fit into the rest of the code worked something out. replaced \z with$ and used multiple columns to concatenate as needed
Title: Re: Excel Problem
Post by: etech0 on May 23, 2017, 06:18:17 PM
I'm trying to transpose last name first. like
Code: [Select]
Mr. Donald J. Trump to
Code: [Select]
Trump, Mr. Donald J.seems excel doesn't have a good way to identify "last" though regex should be able to
Code: [Select]
\s\w+\z but not managing to get that fit into the rest of the code
worked something out. replaced \z with $and used multiple columns to concatenate as needed With regex there's pretty much always a way :) Code: [Select] =regexreplace(A2,"(.*) (\w*)","$2, $1") Title: Re: Excel Problem Post by: yitzf on May 24, 2017, 10:56:14 AM I'm trying to transpose last name first. like Code: [Select] Mr. Donald J. Trump to Code: [Select] Trump, Mr. Donald J.seems excel doesn't have a good way to identify "last" though regex should be able to Code: [Select] \s\w+\z but not managing to get that fit into the rest of the code worked something out. replaced \z with$ and used multiple columns to concatenate as needed

The trick is to concatenate 2 strings together
Code: [Select]
Mr. Donald J. Trump Mr. Donald J. Trump then work from there removing until the second period and the last word etc.
Title: Re: Excel Problem
Post by: talmid chuchem on June 04, 2017, 03:36:46 AM
With regex there's pretty much always a way :)
Code: [Select]
=regexreplace(A2,"(.*) (\w*)","$2,$1")

The trick is to concatenate 2 strings together
Code: [Select]
Mr. Donald J. Trump Mr. Donald J. Trump then work from there removing until the second period and the last word etc.
Why not just use the right () function, & the select left() - count(right())?

Could be I mentioned the wrong function to count the letters, haven't done it for some time.
Title: Re: Excel Problem
Post by: etech0 on June 04, 2017, 07:59:02 AM
Why not just use the right () function, & the select left() - count(right())?

Could be I mentioned the wrong function to count the letters, haven't done it for some time.
I've done it that way, but regex is simpler (once you know how to use it) since you don't need to fuss with nested functions.
Title: Re: Excel Problem
Post by: talmid chuchem on June 04, 2017, 04:23:12 PM
I've done it that way, but regex is simpler (once you know how to use it) since you don't need to fuss with nested functions.
What's regex?
Title: Re: Excel Problem
Post by: lubaby on June 04, 2017, 05:04:05 PM
What's regex?
The past 6+ pages of this thread.
Title: Re: Excel Problem
Post by: User6669 on June 05, 2017, 06:57:09 AM
What's regex?

https://en.wikipedia.org/wiki/Regular_expression
(https://en.wikipedia.org/wiki/Regular_expression)
Title: Re: Excel Problem
Post by: stooges44 on June 19, 2017, 12:08:05 PM
Does anyone know a formula to reverse the order of text within a cell?

EG: the text TCRVO is אברהם in hebrew but I have it written in excel as OVRCT so is there any way to reverse the order?

TIA
Title: Re: Excel Problem
Post by: etech0 on June 19, 2017, 12:13:40 PM
Does anyone know a formula to reverse the order of text within a cell?

EG: the text TCRVO is אברהם in hebrew but I have it written in excel as OVRCT so is there any way to reverse the order?

TIA
You can try this: https://superuser.com/questions/121618/any-excel-function-that-will-reverse-a-string

The second answer looks better than the first.
Title: Re: Excel Problem
Post by: stooges44 on June 19, 2017, 12:16:45 PM
You can try this: https://superuser.com/questions/121618/any-excel-function-that-will-reverse-a-string

The second answer looks better than the first.

Thanks, I found that as well just now but over here: https://www.extendoffice.com/documents/excel/1146-excel-reverse-string-word-order.html#a1

So far so good.
Title: Re: Excel Problem
Post by: lubaby on June 19, 2017, 12:18:49 PM
Does anyone know a formula to reverse the order of text within a cell?

EG: the text TCRVO is אברהם in hebrew but I have it written in excel as OVRCT so is there any way to reverse the order?

TIA

If you wanna do it on the Formula level, I found this online:

Code: [Select]
=IF(LEN(A1)<1,"",MID(A1,LEN(A1),1))&IF(LEN(A1)<2,"",MID(A1,LEN(A1)-1,1))&IF(LEN(A1)<3,"",MID(A1,LEN(A1)-2,1))&IF(LEN(A1)<4,"",MID(A1,LEN(A1)-3,1))&IF(LEN(A1)<5,"",MID(A1,LEN(A1)-4,1))&IF(LEN(A1)<6,"",MID(A1,LEN(A1)-5,1))&IF(LEN(A1)<7,"",MID(A1,LEN(A1)-6,1))&IF(LEN(A1)<8,"",MID(A1,LEN(A1)-7,1))&IF(LEN(A1)<9,"",MID(A1,LEN(A1)-8,1))&IF(LEN(A1)<10,"",MID(A1,LEN(A1)-9,1))&IF(LEN(A1)<11,"",MID(A1,LEN(A1)-10,1))&IF(LEN(A1)<12,"",MID(A1,LEN(A1)-11,1))&IF(LEN(A1)<13,"",MID(A1,LEN(A1)-12,1))&IF(LEN(A1)<14,"",MID(A1,LEN(A1)-13,1))&IF(LEN(A1)<15,"",MID(A1,LEN(A1)-14,1))&IF(LEN(A1)<16,"",MID(A1,LEN(A1)-15,1))&IF(LEN(A1)<17,"",MID(A1,LEN(A1)-16,1))&IF(LEN(A1)<18,"",MID(A1,LEN(A1)-17,1))&IF(LEN(A1)<19,"",MID(A1,LEN(A1)-18,1))&IF(LEN(A1)<20,"",MID(A1,LEN(A1)-19,1))&IF(LEN(A1)<21,"",MID(A1,LEN(A1)-20,1))&IF(LEN(A1)<22,"",MID(A1,LEN(A1)-21,1))&IF(LEN(A1)<23,"",MID(A1,LEN(A1)-22,1))&IF(LEN(A1)<24,"",MID(A1,LEN(A1)-23,1))&IF(LEN(A1)<25,"",MID(A1,LEN(A1)-24,1))&IF(LEN(A1)<26,"",MID(A1,LEN(A1)-25,1))
This is only for 26 characters, if you need more you can extend the nested formula.
Title: Re: Excel Problem
Post by: etech0 on June 19, 2017, 12:19:20 PM
Thanks, I found that as well just now but over here: https://www.extendoffice.com/documents/excel/1146-excel-reverse-string-word-order.html#a1

So far so good.
Title: Re: Excel Problem
Post by: SPLP on June 20, 2017, 12:46:11 PM
Have excel on laptop and I save my doc's to laptop and Dropbox

some excel doc's on Dropbox do not open -and yet  other excel docs open as xlsk

this what i see when can not open a spread sheet

original xlsk

how can I open?
Title: Re: Excel Problem
Post by: SPLP on June 21, 2017, 02:28:07 AM
sorry to bump so soon--but-- need the info on my I-pad and this is the only device I have with me
Title: Re: Excel Problem
Post by: Yammer on June 30, 2017, 11:10:52 AM
I would like to move every second row to column B and every 3rd row to column C.

Anyway to do do it ?
Title: Re: Excel Problem
Post by: skyguy918 on June 30, 2017, 11:16:41 AM
I would like to move every second row to column B and every 3rd row to column C.

Anyway to do do it ?
This is what I usually do. Set B1 =A2, C1 = A3 and D1 =1, and E1 =MOD(D1-1,3)=0. Copy that all the way down to the bottom of the list. Then select the whole group of value and copy/paste values. Now sort by column E and delete all the FALSE rows.
Title: Re: Excel Problem
Post by: churnbabychurn on June 30, 2017, 03:11:58 PM
So I added fancy clickable (non macro) buttons to a a couple of thousand rows... Now it's all too slow. how do I get rid of em all?
Title: Re: Excel Problem
Post by: churnbabychurn on June 30, 2017, 03:14:06 PM
I would like to move every second row to column B and every 3rd row to column C.

Anyway to do do it ?
Just do it manually in two rows as = then drag down the pattern
Title: Re: Excel Problem
Post by: bermo on July 19, 2017, 06:20:44 PM
i am trying to add up hours using =TEXT(G27-F27, "h")
is it possible to add a few times slot like 8-10 AM 2-4PM it gives me a error when i try
=TEXT(G27-F27,I27-H27, "h")or things similar
TIA
Title: Re: Excel Problem
Post by: etech0 on July 19, 2017, 06:24:09 PM
i am trying to add up hours using =TEXT(G27-F27, "h")
is it possible to add a few times slot like 8-10 AM 2-4PM it gives me a error when i try
=TEXT(G27-F27,I27-H27, "h")or things similar
TIA
Code: [Select]
=TEXT(G27-F27, "h")+TEXT(I27-H27, "h")
Title: Re: Excel Problem
Post by: bermo on July 19, 2017, 06:39:28 PM
Code: [Select]
=TEXT(G27-F27, "h")+TEXT(I27-H27, "h")
Thanks that was simple.
Title: Re: Excel Problem
Post by: etech0 on July 19, 2017, 06:46:01 PM
Thanks that was simple.
my pleasure
Title: Re: Excel Problem
Post by: skyguy918 on July 19, 2017, 07:54:34 PM
Code: [Select]
=TEXT(G27-F27, "h")+TEXT(I27-H27, "h")

No need to double up the formula (I assume, haven't tested yet):

Code: [Select]
=TEXT(G27-F27+I27-H27, "h")
Title: Re: Excel Problem
Post by: etech0 on July 19, 2017, 08:07:02 PM
No need to double up the formula (I assume, haven't tested yet):

Code: [Select]
=TEXT(G27-F27+I27-H27, "h")
good point
Title: Re: Excel Problem
Post by: Jkhein on July 20, 2017, 12:36:58 AM
Is there a way to have a link to a product (eg. on home depot website) and the other column should retrieve the product picture from that page?
Title: Re: Excel Problem
Post by: churnbabychurn on July 20, 2017, 04:09:57 AM
Is there a way to have a link to a product (eg. on home depot website) and the other column should retrieve the product picture from that page?

Yeah
Title: Re: Excel Help and Problems
Post by: churnbabychurn on August 15, 2017, 11:09:37 AM
Going crazy here.. I use filters alot... when I click the dropdown on a filter, it only stays open for two seconds and then closes, and cursor jumps to random cell?! what is going on? tried restarting PC etc
Title: Re: Excel Help and Problems
Post by: etech0 on August 15, 2017, 11:51:13 AM
Going crazy here.. I use filters alot... when I click the dropdown on a filter, it only stays open for two seconds and then closes, and cursor jumps to random cell?! what is going on? tried restarting PC etc
Is this only one spreadsheet, or all?
If you turn filters off and back on does that fix it?
Title: Re: Excel Help and Problems
Post by: churnbabychurn on August 15, 2017, 12:08:34 PM
Is this only one spreadsheet, or all?
If you turn filters off and back on does that fix it?
All and no doesn't help...
Title: Re: Excel Help and Problems
Post by: aygart on August 15, 2017, 12:21:16 PM
All and no doesn't help...
maybe try turning off/disconnecting mouse and keyboard separately and testing then.
Title: Re: Excel Help and Problems
Post by: etech0 on August 15, 2017, 12:36:54 PM
All and no doesn't help...
Do you have any macros in personal.xlsb? Maybe one of them is misbehaving.

You can also try uninstalling/reinstalling microsoft, but maybe that should be a last resort since it's a project.
maybe try turning off/disconnecting mouse and keyboard separately and testing then.
Good idea!
Title: Re: Excel Help and Problems
Post by: churnbabychurn on August 15, 2017, 04:16:41 PM
Do you have any macros in personal.xlsb? Maybe one of them is misbehaving.

You can also try uninstalling/reinstalling microsoft, but maybe that should be a last resort since it's a project.Good idea!
Had some macros.. deleted em all.deleted personal.
Changed mouse and keyboard.
Repaired office.
Aghh. Still acting up
Title: Re: Excel Help and Problems
Post by: etech0 on August 15, 2017, 06:03:24 PM
Had some macros.. deleted em all.deleted personal.
Changed mouse and keyboard.
Repaired office.
Aghh. Still acting up
Oy! I think I'm out of ideas then.
Title: Re: Excel Help and Problems
Post by: churnbabychurn on August 18, 2017, 12:12:52 PM
excel 2016 - how to switch sheet from right to left to left to right??

Used to be under page layout, simple button. - Now even google doesnt know!?
Title: Re: Excel Help and Problems
Post by: aygart on August 18, 2017, 06:35:10 PM
excel 2016 - how to switch sheet from right to left to left to right??

Used to be under page layout, simple button. - Now even google doesnt know!?
Do you have hebrew installed as an input language?
Title: Re: Excel Help and Problems
Post by: churnbabychurn on August 19, 2017, 09:23:35 PM
Do you have hebrew installed as an input language?
Probably not...

It's a standard feature in Excel. Switch whole sheet direction. Cell a1 on right. Just can't find it in 2016..
Title: Re: Excel Help and Problems
Post by: aygart on August 19, 2017, 09:38:50 PM
Probably not...

It's a standard feature in Excel. Switch whole sheet direction. Cell a1 on right. Just can't find it in 2016..
It only shows up with a right to left language installed. If you go to the customize ribbon options you will see it greyed out under page layout tab.
Title: Re: Excel Help and Problems
Post by: churnbabychurn on August 19, 2017, 09:40:17 PM
It only shows up with a right to left language installed. If you go to the customize ribbon options you will see it greyed out under page layout tab.
Oh.. I'm actually using a laptop instead of my regular pc.. I guess I have to install Hebrew thx
Title: Re: Excel Help and Problems
Post by: Thingywingy on August 25, 2017, 05:26:44 PM
I applied shading to alternating cells as described in this Office support page. (https://support.office.com/en-us/article/Apply-shading-to-alternate-rows-in-a-worksheet-a443b0f5-2025-42f6-9099-5de09c05e880) but for some reason the shading does not appear when I print? Any solutions?

I opened the page setup window from the page layout tab, went to the sheet tab and the black and white in the print section is not checked. I saw that online as a possible reason...
Title: Re: Excel Help and Problems
Post by: Yisroel Tech on August 27, 2017, 12:07:12 AM
I applied shading to alternating cells as described in this Office support page. (https://support.office.com/en-us/article/Apply-shading-to-alternate-rows-in-a-worksheet-a443b0f5-2025-42f6-9099-5de09c05e880) but for some reason the shading does not appear when I print? Any solutions?

I opened the page setup window from the page layout tab, went to the sheet tab and the black and white in the print section is not checked. I saw that online as a possible reason...
For me, when I had this problem once, checking all four boxes there and OKing, and then going back unchecking all of them made it start to appear in print.
Title: Re: Excel Help and Problems
Post by: aygart on August 27, 2017, 05:59:10 PM
oKing? What's that?
Clicking okay
Title: Re: Excel Help and Problems
Post by: Thingywingy on August 27, 2017, 06:03:01 PM
For me, when I had this problem once, checking all four boxes there and OKing, and then going back unchecking all of them made it start to appear in print.
Just tried that. Didn't help...?
Title: Re: Excel Help and Problems
Post by: churnbabychurn on August 27, 2017, 06:12:27 PM
Just tried that. Didn't help...?
U using table format?
Title: Re: Excel Help and Problems
Post by: Thingywingy on August 29, 2017, 01:02:42 AM
U using table format?
Nope
Title: Re: Excel Help and Problems
Post by: churnbabychurn on August 29, 2017, 07:25:36 AM
Nope
Try it
Title: Re: Excel Help and Problems
Post by: Thingywingy on August 29, 2017, 03:14:02 PM
When I added table format, it resized the cells. I need them to be the precious size to fit a single paper. Strangely even after adjusting to previous cell widths, it still shows in print as to big...?
Title: Re: Excel Help and Problems
Post by: Work-for-ur-muny on August 29, 2017, 03:15:31 PM
When I added table format, it resized the cells. I need them to be the precious size to fit a single paper. Strangely even after adjusting to previous cell widths, it still shows in print as to big...?
You can always choose what should fit into the page in the print-view mode.
Title: Re: Excel Help and Problems
Post by: Thingywingy on August 29, 2017, 04:52:53 PM
You can always choose what should fit into the page in the print-view mode.
I resized it in the scale to fit in the page layout tab and it worked great. Thanks.

Not sure if it's related but I tried printing something else with color and the color didn't show up. Adjusting printer settings to grayscale from black and white fixed it. Even after adjustment, excel only printed grey after adding adding format table.  I'm just curious why it wasn't printing the grey...?
Title: Re: Excel Help and Problems
Post by: churnbabychurn on August 29, 2017, 04:56:57 PM
Any good free and safe xml to CSV tools?
Title: Re: Excel Help and Problems
Post by: yitzf on August 29, 2017, 07:12:56 PM
Any good free and safe xml to CSV tools?
Excel data tab -> from other sources, doesn't work?
Title: Re: Excel Help and Problems
Post by: aygart on August 29, 2017, 07:32:20 PM
When I added table format, it resized the cells. I need them to be the precious size to fit a single paper. Strangely even after adjusting to previous cell widths, it still shows in print as to big...?
When printing from the file tab you can choose for it to scale to a page
Title: Re: Excel Help and Problems
Post by: churnbabychurn on August 29, 2017, 09:02:58 PM
Excel data tab -> from other sources, doesn't work?
Nah.. all messed up
Title: Re: Excel Help and Problems
Post by: yitzf on August 30, 2017, 04:26:35 PM
Nah.. all messed up
I got sample XML files from here (https://msdn.microsoft.com/en-us/library/ms762271(v=vs.85).aspx) and here (https://alistapart.com/d/usingxml/xml_uses_a.html), and they imported beautifully to Excel.
Title: Re: Excel Help and Problems
Post by: churnbabychurn on August 30, 2017, 05:04:59 PM
I got sample XML files from here (https://msdn.microsoft.com/en-us/library/ms762271(v=vs.85).aspx) and here (https://alistapart.com/d/usingxml/xml_uses_a.html), and they imported beautifully to Excel.
Sure can.. file is pretty big though just the text is 26 mb
Title: Re: Excel Help and Problems
Post by: yitzf on August 30, 2017, 06:22:08 PM
Sure can.. file is pretty big though just the text is 26 mb

I'm not an expert, but that's probably your issue.
Title: Re: Excel Help and Problems
Post by: DanH on August 30, 2017, 06:54:00 PM
Sure can.. file is pretty big though just the text is 26 mb
you setting proper delineate'rs on import? what version of excel are you using?
Title: Re: Excel Help and Problems
Post by: churnbabychurn on August 30, 2017, 07:14:51 PM
you setting proper delineate'rs on import? what version of excel are you using?
It actually is importing, but it's putting each column of data on a separate row! So there is data in a1,b2,c3 etc.
Something w the mapping probably.
Using 2016
Title: Re: Excel Help and Problems
Post by: Something Fishy on September 25, 2017, 01:31:42 PM
I have a list of 10,000 entries. I only want to keep each 100th. Is there a way to do this easily?
Title: Re: Excel Help and Problems
Post by: churnbabychurn on September 25, 2017, 01:36:02 PM
I have a list of 10,000 entries. I only want to keep each 100th. Is there a way to do this easily?
Are they unique in anyway? If yes,simply sort by them and delete rest.

If not, make them unique by adding a column of numbers, count 1-100, then repeat this again. Then auto complete down should give you a sets of 1-100.
Title: Re: Excel Help and Problems
Post by: Something Fishy on September 25, 2017, 01:43:16 PM
Are they unique in anyway? If yes,simply sort by them and delete rest.

If not, make them unique by adding a column of numbers, count 1-100, then repeat this again. Then auto complete down should give you a sets of 1-100.

It's a list of coordinates, but I don't need such a high level of precision. Your second suggestion worked great, thanks.
Title: Re: Excel Help and Problems
Post by: aygart on September 25, 2017, 03:31:50 PM
It's a list of coordinates, but I don't need such a high level of precision. Your second suggestion worked great, thanks.
Alternatively you can enter references into some other cells.

=a1
=a100
=a200
=a300
etc.
Title: Re: Excel Help and Problems
Post by: etech0 on September 25, 2017, 03:43:37 PM
Alternatively you can enter references into some other cells.

=a1
=a100
=a200
=a300
etc.
You could even use INDIRECT to get the reference and then copy the formula down

Example: (assuming the data you want to copy is in Col B and you are working in Col A)
=INDIRECT("B"&ROW(A1)*100)
Title: Re: Excel Help and Problems
Post by: yitzf on September 25, 2017, 06:47:10 PM
Another way:

=MOD(ROW(A1),100)=0

You'll get true or false, just filter for true (or filter for false and delete those rows).
Title: Re: Excel Help and Problems
Post by: etech0 on September 25, 2017, 08:04:19 PM
Another way:

=MOD(ROW(A1),100)=0

You'll get true or false, just filter for true (or filter for false and delete those rows).
Another great solution!

While we're at it, you can do this with VBA too! :)
Title: Re: Excel Help and Problems
Post by: skyguy918 on September 25, 2017, 11:50:53 PM
While we're at it, you can do this with VBA too! :)
Reminds me of my internship, when my boss had me convert a new mortality table into life expectancies using native excel functions, VBA, and APL separately. Had to base my end of summer presentation on a short 1 week side project, because saying you did the same thing 3 different ways kind of makes it sound like you didn't accomplish anything all summer. ;D
Title: Re: Excel Help and Problems
Post by: aygart on September 26, 2017, 06:59:53 PM
Sometimes I get spreadsheets with entire columns or dollar amounts formatted as text. Even after selecting the column and changing the format to currency it only actually changes it if the cell is edited by placing the cursor in the edit field. Is there better way to do this or a way to do it automatically in one shot?
Title: Re: Excel Help and Problems
Post by: churnbabychurn on September 26, 2017, 07:16:56 PM
Sometimes I get spreadsheets with entire columns or dollar amounts formatted as text. Even after selecting the column and changing the format to currency it only actually changes it if the cell is edited by placing the cursor in the edit field. Is there better way to do this or a way to do it automatically in one shot?
Yes, u need to do text to column​ trick.

It refreshes whole column.

(I do this all the time so I recorded it as a macro.. looking for a relative reference macro though... Didn't have time to do it.)
Title: Re: Excel Help and Problems
Post by: aygart on September 26, 2017, 07:19:53 PM
Yes, u need to do text to column​ trick.

It refreshes whole column.

(I do this all the time so I recorded it as a macro.. looking for a relative reference macro though... Didn't have time to do it.)

What is the trick?
Title: Re: Excel Help and Problems
Post by: churnbabychurn on September 26, 2017, 07:22:16 PM
What is the trick?
Text to columns, (option in data ribbon ) but don't select anything ( tab, space etc) as the deliminator, so it all stays in same column.
Title: Re: Excel Help and Problems
Post by: yitzf on September 27, 2017, 02:02:30 PM
Sometimes I get spreadsheets with entire columns or dollar amounts formatted as text. Even after selecting the column and changing the format to currency it only actually changes it if the cell is edited by placing the cursor in the edit field. Is there better way to do this or a way to do it automatically in one shot?

I'm pretty sure you can use a macro too.
Here's what I use for hardcoding formulas, it should work for this also. (select cells first - macro will run on all selected cells)

Code: [Select]
Sub Hardcode()Application.Calculation = xlCalculationManual    Dim rngCell As Range    On Error GoTo e            For Each rngCell In ActiveWindow.Selection                rngCell.Value = rngCell.Value            Next rngCell    Application.Calculation = xlCalculationAutomatic    Exit Sube:Application.Calculation = xlCalculationAutomaticEnd Sub
Title: Re: Excel Help and Problems
Post by: churnbabychurn on September 27, 2017, 02:56:48 PM
I'm pretty sure you can use a macro too.
Here's what I use for hardcoding formulas, it should work for this also. (select cells first - macro will run on all selected cells)

Code: [Select]
Sub Hardcode()Application.Calculation = xlCalculationManual    Dim rngCell As Range    On Error GoTo e            For Each rngCell In ActiveWindow.Selection                rngCell.Value = rngCell.Value            Next rngCell    Application.Calculation = xlCalculationAutomatic    Exit Sube:Application.Calculation = xlCalculationAutomaticEnd Sub
Lol, I just copy and paste as values.

(Select,left click border, drag and drop etc)
Title: Re: Excel Help and Problems
Post by: yitzf on September 27, 2017, 02:58:45 PM
Lol, I just copy and paste as values.

(Select,left click border, drag and drop etc)

Mine's faster. I have the macro in an addin and added to my QAT, so I just select, hit F9 and done.
Title: Re: Excel Help and Problems
Post by: churnbabychurn on September 27, 2017, 03:14:28 PM
Mine's faster. I have the macro in an addin and added to my QAT, so I just select, hit F9 and done.
Making the macro, adding it, making sure it doesn't screw up your life (many macros do ime) etc
Title: Re: Excel Help and Problems
Post by: Zalc on October 30, 2017, 09:40:21 AM
Making the macro, adding it, making sure it doesn't screw up your life (many macros do ime) etc
I didn't want to use a macro on the QAT either, so what I did was add the "Paste as Value" button to the Quick access toolbar in the 1st position (needs to be added from settings).

Now I have an easy shortcut: Alt + 1 (or whatever position it is on the QAT).

Bonus is that it works great if I want to copy the value only to a new sheet.

Same goes for pretty much any function that I use often, they end up as a shortcut in the QAT, and I don't need to remember my keyboard shortcuts as excel shows you a hint every time you press just ALT.
Title: Re: Excel Help and Problems
Post by: aygart on October 30, 2017, 09:56:05 AM
Lol, I just copy and paste as values.

(Select,left click border, drag and drop etc)
THat would require a place to paste to and is numerous manual steps each time. When you are dealing with a large number of sheets which have a column in the middle of many which needs to be switched it becomes a big pain.
Title: Re: Excel Help and Problems
Post by: churnbabychurn on October 30, 2017, 10:03:47 AM
THat would require a place to paste to and is numerous manual steps each time. When you are dealing with a large number of sheets which have a column in the middle of many which needs to be switched it becomes a big pain.
U paste in place
Title: Re: Excel Help and Problems
Post by: aygart on October 30, 2017, 10:53:19 AM
U paste in place
By dragging and dropping?
Title: Re: Excel Help and Problems
Post by: churnbabychurn on October 30, 2017, 10:55:57 AM
By dragging and dropping?
Yeah drag n drop in place. Can also CTR and paste in place... takes me less than 1.5 seconds to do :)
Title: Re: Excel Help and Problems
Post by: aygart on October 30, 2017, 11:36:10 AM
Yeah drag n drop in place. Can also CTR and paste in place... takes me less than 1.5 seconds to do :)
dunno, pasting in place ids not working by me.
Title: Re: Excel Help and Problems
Post by: aygart on October 30, 2017, 05:30:45 PM
I am trying to format a column listing due dates to highlight upcoming dates using conditional formatting 3 color scale but only want it to highlight dates which are within 6 months from now. I am having a difficult time limiting it to within 6 months. I am guessing that I would enter it into the maximum field under conditional formatting but can't get it right.
Title: Re: Excel Help and Problems
Post by: etech0 on October 30, 2017, 05:48:26 PM
I am trying to format a column listing due dates to highlight upcoming dates using conditional formatting 3 color scale but only want it to highlight dates which are within 6 months from now. I am having a difficult time limiting it to within 6 months. I am guessing that I would enter it into the maximum field under conditional formatting but can't get it right.
You'll need to use a formula rule.

EX: =A1<DATE(YEAR(TODAY()),MONTH(TODAY())+6,DAY(TODAY()))

(https://i.imgur.com/35odQTK.png)
Title: Re: Excel Help and Problems
Post by: aygart on October 30, 2017, 05:56:24 PM
You'll need to use a formula rule.

EX: =A1<DATE(YEAR(TODAY()),MONTH(TODAY())+6,DAY(TODAY()))

I am trying to use scaled colors like this
(https://t.gyazo.com/teams/lowerwatt/20252e37e7b1239c7057fcf482b8507d.png)

But it does not allow relative references in the formulas which I was trying to put into maximum.
Title: Re: Excel Help and Problems
Post by: etech0 on October 30, 2017, 05:59:31 PM
I am trying to use scaled colors like this
(https://t.gyazo.com/teams/lowerwatt/20252e37e7b1239c7057fcf482b8507d.png)

But it does not allow relative references in the formulas which I was trying to put into maximum.
Hmm... it looks like with color scales you can only input a starting number/formula and a percentile to switch to the middle color.

What do you want dates after six months from now to look like? No formatting?
Title: Re: Excel Help and Problems
Post by: aygart on October 30, 2017, 06:01:21 PM
Hmm... it looks like with color scales you can only input a starting number/formula and a percentile to switch to the middle color.

What do you want dates after six months from now to look like? No formatting?
Correct no formatting. I am not sure why a maximum of =today()+183 doesn't work.
Title: Re: Excel Help and Problems
Post by: etech0 on October 30, 2017, 06:08:25 PM
Correct no formatting. I am not sure why a maximum of =today()+183 doesn't work.
Hmmm... you can add a second rule of "no formatting" if the value is more than six months away, but then you lose that max color

(https://i.imgur.com/rOTocaO.png)
Title: Re: Excel Help and Problems
Post by: etech0 on October 30, 2017, 06:12:33 PM
What about adding a hidden column that shows the date, but only if it is within six months? Then you can reference that hidden column in your conditional formatting
Title: Re: Excel Help and Problems
Post by: etech0 on October 30, 2017, 06:15:34 PM
Formula for hidden column:

=IF(A1<DATE(YEAR(TODAY()),MONTH(TODAY())+6,DAY(TODAY())),A1,"")

Let's say that column is column G, then replace A1 with G1 in your conditional formatting formula.

Then just hide column G.

Let me know if you need more details
Title: Re: Excel Help and Problems
Post by: etech0 on October 30, 2017, 06:17:30 PM
Hmmmm it looks like you can't use a color scale rule on data from another column :(
Title: Re: Excel Help and Problems
Post by: etech0 on October 30, 2017, 06:20:07 PM
Give me a minute, I have an idea....
Title: Re: Excel Help and Problems
Post by: skyguy918 on October 30, 2017, 07:16:39 PM
Just want to point out that color scale is not really a great solution here. Color scale is always relative to the other values formatted under the rule. If you want it to be colored based on how close the due date is, I would think you'd want relative to today, not relative to the other dates in the data set.
Title: Re: Excel Help and Problems
Post by: etech0 on October 30, 2017, 07:17:54 PM
Got it! No hidden columns needed. You'll need 2 rules:

(https://i.imgur.com/0YlVCMJ.png)

The first has this formula:
Code: [Select]
=A1>DATE(YEAR(TODAY()),MONTH(TODAY())+6,DAY(TODAY()))
For formatting, go to the Fill tab and click "no color".

Make sure Stop If True is checked.

The second rule should be the color scale rule:

(https://i.imgur.com/rZKkJCD.png)

Minimum: Lowest value

Midpoint: formula
Code: [Select]
=DATE(YEAR(TODAY()),MONTH(TODAY())+3,DAY(TODAY()))aka 3 months from today

Maximum: formula
Code: [Select]
=DATE(YEAR(TODAY()),MONTH(TODAY())+6,DAY(TODAY()))aka 6 months from today

Result:

(https://i.imgur.com/57YFShN.png)

Enjoy!
Title: Re: Excel Help and Problems
Post by: etech0 on October 30, 2017, 07:19:30 PM
Just want to point out that color scale is not really a great solution here. Color scale is always relative to the other values formatted under the rule. If you want it to be colored based on how close the due date is, I would think you'd want relative to today, not relative to the other dates in the data set.
To achieve this, for your minimum use this formula:

Code: [Select]
=today()
Title: Re: Excel Help and Problems
Post by: aygart on October 30, 2017, 07:26:44 PM
I figured part out. The formulafor the minimum and maximum dates need to be entered with "number" selected. That makes it that anything below the minimum is formatted as the minimum and anything above the max is formatted as the max. Now I should be able to use a second rule of no formatting but I can't seem to get that to work. What formula did you use?

ETA: I wrote this before I saw this reply. The place I was going wrong was that I wasn't checking stop if true.
Got it! No hidden columns needed. You'll need 2 rules:

(https://i.imgur.com/0YlVCMJ.png)

The first has this formula:
Code: [Select]
=A1>DATE(YEAR(TODAY()),MONTH(TODAY())+6,DAY(TODAY()))
For formatting, go to the Fill tab and click "no color".

Make sure Stop If True is checked.

The second rule should be the color scale rule:

(https://i.imgur.com/rZKkJCD.png)

Minimum: Lowest value

Midpoint: formula
Code: [Select]
=DATE(YEAR(TODAY()),MONTH(TODAY())+3,DAY(TODAY()))aka 3 months from today

Maximum: formula
Code: [Select]
=DATE(YEAR(TODAY()),MONTH(TODAY())+6,DAY(TODAY()))aka 6 months from today

Result:

(https://i.imgur.com/57YFShN.png)

Enjoy!
Title: Re: Excel Help and Problems
Post by: etech0 on October 30, 2017, 07:29:20 PM
I figured part out. The formulafor the minimum and maximum dates need to be entered with "number" selected. That makes it that anything below the minimum is formatted as the minimum and anything above the max is formatted as the max. Now I should be able to use a second rule of no formatting but I can't seem to get that to work. What formula did you use?
=A1>DATE(YEAR(TODAY()),MONTH(TODAY())+6,DAY(TODAY()))

If you're using a different column, change "A1" accordingly. Also note as per above, you need to manually choose "no color" in the Fill tab of the formatting box.
Title: Re: Excel Help and Problems
Post by: aygart on October 30, 2017, 07:36:44 PM

One thing I realized was that the minimum value is important as well because without it if there are a few overdue items than some will have scaled down color even though they are overdue. With a minimum of today they will all be max color (I did today+35)

(https://t.gyazo.com/teams/lowerwatt/a6fbc41636b1ba6eb48143dbbea40040.png)

Title: Re: Excel Help and Problems
Post by: etech0 on October 30, 2017, 07:37:41 PM

One thing I realized was that the minimum value is important as well because without it if there are a few overdue items than some will have scaled down color even though they are overdue. With a minimum of today they will all be max color (I did today+35)

(https://t.gyazo.com/teams/lowerwatt/a6fbc41636b1ba6eb48143dbbea40040.png)
Right! You're welcome!
Title: Re: Excel Help and Problems
Post by: skyguy918 on October 30, 2017, 08:33:02 PM
=A1>DATE(YEAR(TODAY()),MONTH(TODAY())+6,DAY(TODAY()))

If you're using a different column, change "A1" accordingly. Also note as per above, you need to manually choose "no color" in the Fill tab of the formatting box.
I do a lot of work with dates and have gotten the ins and outs of all the different date related functions. You can collapse the above to:
=A1>EDATE(TODAY(),6)
Title: Re: Excel Help and Problems
Post by: etech0 on October 30, 2017, 08:34:11 PM
I do a lot of work with dates and have gotten the ins and outs of all the different date related functions. You can collapse the above to:
=A1>EDATE(TODAY(),6)
oooh, nice! thanks!

is there a corresponding function for days/years?
Title: Re: Excel Help and Problems
Post by: skyguy918 on October 30, 2017, 08:43:05 PM
oooh, nice! thanks!

is there a corresponding function for days/years?
Days works without a function, and years you'd get by just multiplying the number by 12 and entering it as that number of months.
Title: Re: Excel Help and Problems
Post by: aygart on October 30, 2017, 08:50:24 PM
Days works without a function, and years you'd get by just multiplying the number by 12 and entering it as that number of months.
How would you do days without a function?
Title: Re: Excel Help and Problems
Post by: etech0 on October 30, 2017, 08:53:02 PM
Days works without a function, and years you'd get by just multiplying the number by 12 and entering it as that number of months.
Cool!
Title: Re: Excel Help and Problems
Post by: skyguy918 on October 30, 2017, 10:57:26 PM
How would you do days without a function?
EDATE takes a date, and moves forward or backward x number of months from a specific date (keeping the day of the month static). If you want to take a date and move forward or backward x number of days, just add or subtract that number.

If A1 contains 11/1/17, putting =A1+10 into another cell would give you 11/11/17.
Title: Re: Excel Help and Problems
Post by: aygart on October 30, 2017, 11:04:17 PM
EDATE takes a date, and moves forward or backward x number of months from a specific date (keeping the day of the month static). If you want to take a date and move forward or backward x number of days, just add or subtract that number.

If A1 contains 11/1/17, putting =A1+10 into another cell would give you 11/11/17.
Oh so you meant that you still need the TODAY. That is what I did.
Title: Re: Excel Help and Problems
Post by: aygart on November 07, 2017, 07:55:25 PM
I recorded a macro to do all of these. Now I need to get rid of the extraneous parts, but it works if my personal.xlsb is open, but it seems to not always open with excel.

Sometimes I get spreadsheets with entire columns or dollar amounts formatted as text. Even after selecting the column and changing the format to currency it only actually changes it if the cell is edited by placing the cursor in the edit field. Is there better way to do this or a way to do it automatically in one shot?
Text to columns, (option in data ribbon ) but don't select anything ( tab, space etc) as the deliminator, so it all stays in same column.
I am trying to format a column listing due dates to highlight upcoming dates using conditional formatting 3 color scale but only want it to highlight dates which are within 6 months from now. I am having a difficult time limiting it to within 6 months. I am guessing that I would enter it into the maximum field under conditional formatting but can't get it right.

One thing I realized was that the minimum value is important as well because without it if there are a few overdue items than some will have scaled down color even though they are overdue. With a minimum of today they will all be max color (I did today+35)

(https://t.gyazo.com/teams/lowerwatt/a6fbc41636b1ba6eb48143dbbea40040.png)

Here is the macro as it is now.

Code: [Select]
    Columns("G:G").Select       Selection.TextToColumns Destination:=Range("G1"), DataType:=xlDelimited, _        TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=True, _        Semicolon:=False, Comma:=False, Space:=False, Other:=False, FieldInfo _        :=Array(1, 1), TrailingMinusNumbers:=True        Selection.FormatConditions.AddColorScale ColorScaleType:=3        Selection.NumberFormat = "m/d/yyyy"                        Selection.FormatConditions.AddColorScale ColorScaleType:=3    Selection.FormatConditions(Selection.FormatConditions.Count).SetFirstPriority    Selection.FormatConditions(1).ColorScaleCriteria(1).Type = _        xlConditionValueNumber    Selection.FormatConditions(1).ColorScaleCriteria(1).Value = "=TODAY()+30"    With Selection.FormatConditions(1).ColorScaleCriteria(1).FormatColor        .Color = 255        .TintAndShade = 0    End With    Selection.FormatConditions(1).ColorScaleCriteria(2).Type = _        xlConditionValueNumber    Selection.FormatConditions(1).ColorScaleCriteria(2).Value = "=TODAY()+95"    With Selection.FormatConditions(1).ColorScaleCriteria(2).FormatColor        .Color = 65535        .TintAndShade = 0    End With    Selection.FormatConditions(1).ColorScaleCriteria(3).Type = _        xlConditionValueNumber    Selection.FormatConditions(1).ColorScaleCriteria(3).Value = "=TODAY()+190"    With Selection.FormatConditions(1).ColorScaleCriteria(3).FormatColor        .Color = 5296274        .TintAndShade = 0    End With    Columns("G:G").Select    Selection.FormatConditions.Add Type:=xlExpression, Formula1:= _        "=G1>DATE(YEAR(TODAY()),MONTH(TODAY())+10,DAY(TODAY()))"    Selection.FormatConditions(Selection.FormatConditions.Count).SetFirstPriority    With Selection.FormatConditions(1).Interior        .Pattern = xlNone        .TintAndShade = 0    End With    Selection.FormatConditions(1).StopIfTrue = TrueEnd Sub
Title: Re: Excel Help and Problems
Post by: churnbabychurn on November 07, 2017, 08:02:56 PM

I recorded a macro to do all of these. Now I need to get rid of the extraneous parts, but it works if my personal.xlsb is open, but it seems to not always open with excel.

Here is the macro as it is now.

Code: [Select]
    Columns("G:G").Select       Selection.TextToColumns Destination:=Range("G1"), DataType:=xlDelimited, _        TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=True, _        Semicolon:=False, Comma:=False, Space:=False, Other:=False, FieldInfo _        :=Array(1, 1), TrailingMinusNumbers:=True        Selection.FormatConditions.AddColorScale ColorScaleType:=3        Selection.NumberFormat = "m/d/yyyy"                        Selection.FormatConditions.AddColorScale ColorScaleType:=3    Selection.FormatConditions(Selection.FormatConditions.Count).SetFirstPriority    Selection.FormatConditions(1).ColorScaleCriteria(1).Type = _        xlConditionValueNumber    Selection.FormatConditions(1).ColorScaleCriteria(1).Value = "=TODAY()+30"    With Selection.FormatConditions(1).ColorScaleCriteria(1).FormatColor        .Color = 255        .TintAndShade = 0    End With    Selection.FormatConditions(1).ColorScaleCriteria(2).Type = _        xlConditionValueNumber    Selection.FormatConditions(1).ColorScaleCriteria(2).Value = "=TODAY()+95"    With Selection.FormatConditions(1).ColorScaleCriteria(2).FormatColor        .Color = 65535        .TintAndShade = 0    End With    Selection.FormatConditions(1).ColorScaleCriteria(3).Type = _        xlConditionValueNumber    Selection.FormatConditions(1).ColorScaleCriteria(3).Value = "=TODAY()+190"    With Selection.FormatConditions(1).ColorScaleCriteria(3).FormatColor        .Color = 5296274        .TintAndShade = 0    End With    Columns("G:G").Select    Selection.FormatConditions.Add Type:=xlExpression, Formula1:= _        "=G1>DATE(YEAR(TODAY()),MONTH(TODAY())+10,DAY(TODAY()))"    Selection.FormatConditions(Selection.FormatConditions.Count).SetFirstPriority    With Selection.FormatConditions(1).Interior        .Pattern = xlNone        .TintAndShade = 0    End With    Selection.FormatConditions(1).StopIfTrue = TrueEnd Sub

It always should open in the background in Excel. It's not there when you select unhide?
Title: Re: Excel Help and Problems
Post by: aygart on November 07, 2017, 08:06:26 PM

It always should open in the background in Excel. It's not there when you select unhide?
nope. Unhide is greyed out.
Title: Re: Excel Help and Problems
Post by: churnbabychurn on November 07, 2017, 08:11:15 PM
nope. Unhide is greyed out.
Title: Re: Excel Help and Problems
Post by: aygart on November 07, 2017, 08:12:21 PM
been there done that
Title: Re: Excel Help and Problems
Post by: aygart on November 07, 2017, 08:34:43 PM
In the end this is what worked

To (1):

- Remove anything from the XLSTART folder
- Open Excel
- Start recording a macro and set "Personal Macro Workbook" as destination.
- Select some cells (we must record something!)
- Stop recording (the file PERSONAL.XLSB is created)
- Open the VBA editor
- Move the modules with Drag&Drop to the PERSONAL.XLSB file
- Save the PERSONAL.XLSB file.
Title: Re: Excel Help and Problems
Post by: churnbabychurn on November 07, 2017, 10:26:00 PM
In the end this is what worked

To (1):

- Remove anything from the XLSTART folder
- Open Excel
- Start recording a macro and set "Personal Macro Workbook" as destination.
- Select some cells (we must record something!)
- Stop recording (the file PERSONAL.XLSB is created)
- Open the VBA editor
- Move the modules with Drag&Drop to the PERSONAL.XLSB file
- Save the PERSONAL.XLSB file.
This is what I meant btw with macros messing everything up and not being worth the time and effort most times.

I almost never had a good long lasting experience with my self recorded/edited macros saved in personal...
Title: Re: Excel Help and Problems
Post by: aygart on November 07, 2017, 10:27:24 PM
This is what I meant btw with macros messing everything up and not being worth the time and effort most times.

I almost never had a good long lasting experience with my self recorded/edited macros saved in personal...
I just saved a backup of this one right here in this thread.
Title: Re: Excel Help and Problems
Post by: chayal101 on November 23, 2017, 01:57:30 PM
I'm trying to filter a long list of Linked in connection to only ROWS (contacts) that include certain words (professions), F.E. Attorneys, Real Estate.. Anyone know an easy way to do that?
Title: Re: Excel Help and Problems
Post by: Z56 on November 23, 2017, 01:59:30 PM
I'm trying to filter a long list of Linked in connection to only ROWS (contacts) that include certain words (professions), F.E. Attorneys, Real Estate.. Anyone know an easy way to do that?

is everything in one line ?
Title: Re: Excel Help and Problems
Post by: etech0 on November 23, 2017, 02:01:28 PM
I'm trying to filter a long list of Linked in connection to only ROWS (contacts) that include certain words (professions), F.E. Attorneys, Real Estate.. Anyone know an easy way to do that?
If all those values would be in the same column, you can accomiplish this very easily by enabling AutoFilter (on the home ribbon, click Sort & Filter and then click Filter). Then click the arrow at the top of that column and check off the values you want to keep.
Title: Re: Excel Help and Problems
Post by: chayal101 on November 23, 2017, 02:19:59 PM
I actually want to search all columns that contain specific words, such as Real Estate, Attorneys, Acquisitions, etc... Any "IF" formula I can use?
Title: Re: Excel Help and Problems
Post by: Z56 on November 23, 2017, 04:05:23 PM
I actually want to search all columns that contain specific words, such as Real Estate, Attorneys, Acquisitions, etc... Any "IF" formula I can use?

so use the filter ?

or are looking to create a formula ?
Title: Re: Excel Help and Problems
Post by: yitzf on November 23, 2017, 08:38:30 PM
I actually want to search all columns that contain specific words, such as Real Estate, Attorneys, Acquisitions, etc... Any "IF" formula I can use?

Create a new column that strings together all the columns that might have relevant keywords (=A1&" "&B1&" "&C1). Then create a list of keyword elsewhere. Then select the column with the merged strings and goto Data>Advanced and for the criteria range but in the section with your list of keywords.

Title: Re: Excel Help and Problems
Post by: aygart on November 26, 2017, 12:47:57 PM
I think theis was discussed here previously, but I couldn't find it. I have a list with one column of addresses and multiple utility accounts in the columns to the side of the addresses. I need to change this to have a separate row for each account. Is there any automated way to do this?
Title: Re: Excel Help and Problems
Post by: etech0 on November 26, 2017, 01:07:16 PM
I think theis was discussed here previously, but I couldn't find it. I have a list with one column of addresses and multiple utility accounts in the columns to the side of the addresses. I need to change this to have a separate row for each account. Is there any automated way to do this?
You can definitely do it with VBA. Question is if there's an easier way.

Two questions:

What's the max number of accounts per address?
Does the sort order matter?
Title: Re: Excel Help and Problems
Post by: aygart on November 26, 2017, 01:10:41 PM
You can definitely do it with VBA. Question is if there's an easier way.

Two questions:

What's the max number of accounts per address?
Does the sort order matter?
They have a max of 3 account columns. A handful of accounts have a forth account in col d of the next row. The list happens to be copied for a Word chart and if it makes it easier to do here that is fine as well. If it means writing VBA it will be easier to just do it manually. I can always sort them over after it is done as long as each account has the address next to it.
Title: Re: Excel Help and Problems
Post by: etech0 on November 26, 2017, 01:12:02 PM
They have a max of 3 account columns. A handful of accounts have a forth account in col d of the next row. The list happens to be copied for a Word chart and if it makes it easier to do here that is fine as well. If it means writing VBA it will be easier to just do it manually. I can always sort them over after it is done as long as each account has the address next to it.
Great!

Let's say Address is in column A, and the Accounts are in columns B-D.

Go to a blank column (for arguments sake let's use F).
In cell F1, type
Code: [Select]
=A1In G1, type
Code: [Select]
=B1Copy the formulas all the way down.

Then copy columns F-G to a new blank worksheet, being sure to "Paste Values".

Now change G1 to say
Code: [Select]
=C1Copy it all the way down
Select the cells with data, copy them, and Paste Values to your new worksheet, under the existing data.

Now change G1 to say
Code: [Select]
=D1Copy it all the way down
Select the cells with data, copy them, and Paste Values to your new worksheet, under the existing data.

If there are more columns with accounts, repeat as needed.

When you are done, sort by column A.

This may seem like a lot of steps, but it's not really that much once you get the hang of it, and is probably the easiest way to accomplish your goal if it's a one-time thing.
Title: Re: Excel Help and Problems
Post by: etech0 on November 26, 2017, 01:13:43 PM
A handful of accounts have a forth account in col d of the next row.
Just noticed this part, we'll have to tweak to handle the fact that there's accounts in the next row.

In the next row, is address filled in, or is it blank?
Title: Re: Excel Help and Problems
Post by: aygart on November 26, 2017, 01:16:34 PM
Great!

Let's say Address is in column A, and the Accounts are in columns B-D.

Go to a blank column (for arguments sake let's use F).
In cell F1, type
Code: [Select]
=A1In G1, type
Code: [Select]
=B1Copy the formulas all the way down.

Then copy columns F-G to a new blank worksheet, being sure to "Paste Values".

Now change G1 to say
Code: [Select]
=C1Copy it all the way down
Select the cells with data, copy them, and Paste Values to your new worksheet, under the existing data.

Now change G1 to say
Code: [Select]
=D1Copy it all the way down
Select the cells with data, copy them, and Paste Values to your new worksheet, under the existing data.

If there are more columns with accounts, repeat as needed.

When you are done, sort by column A.

This may seem like a lot of steps, but it's not really that much once you get the hang of it, and is probably the easiest way to accomplish your goal if it's a one-time thing.
This is a perfect way and beautifully simple.
Just noticed this part, we'll have to tweak to handle the fact that there's accounts in the next row.

In the next row, is address filled in, or is it blank?
There are only 3 of those so I just copied their address down for them too.

Thanks!
Title: Re: Excel Help and Problems
Post by: etech0 on November 26, 2017, 01:17:31 PM
This is a perfect way and beautifully simple.There are only 3 of those so I just copied their address down for them too.

Thanks!
Title: Re: Excel Help and Problems
Post by: aygart on November 26, 2017, 01:23:30 PM
It worked great! Since some had fewer accounts i needed to also filter the zeros and delete those rows.
Title: Re: Excel Help and Problems
Post by: etech0 on November 26, 2017, 01:24:22 PM
It worked great! Since some had fewer accounts i needed to also filter the zeros and delete those rows.
Right that makes sense
Title: Re: Excel Help and Problems
Post by: ual902 on November 30, 2017, 02:47:34 AM
How do I insert into the next row or line, I need to add more expnses?
(https://i.imgur.com/ZGbtLtr.png)

So it should look like this:

(https://i.imgur.com/78qwLs2.png)

This was exported from Quickbooks into Excel

Thanks-
Title: Re: Excel Help and Problems
Post by: etech0 on November 30, 2017, 07:53:14 AM
How do I insert into the next row or line, I need to add more expnses?
(https://i.imgur.com/ZGbtLtr.png)

So it should look like this:

(https://i.imgur.com/78qwLs2.png)

This was exported from Quickbooks into Excel

Thanks-
Select row 7 (by clicking on the "7"), right click on it, click Insert Row. Or select row 7 and type "control shift +"
Title: Re: Excel Help and Problems
Post by: Toasted on December 01, 2017, 09:07:47 AM
Title: Re: Excel Help and Problems
Post by: ual902 on December 01, 2017, 12:51:46 PM
Select row 7 (by clicking on the "7"), right click on it, click Insert Row. Or select row 7 and type "control shift +"

Thanks that worked.
Title: Re: Excel Help and Problems
Post by: yoruel on January 01, 2018, 09:40:06 PM
Is there  way to use text to column and then have all the same data go to same column?
In b1 son, mom, last name
C1 mom, last name.

How do I get all the unique values into the same column?
Title: Re: Excel Help and Problems
Post by: etech0 on January 01, 2018, 10:36:33 PM
Is there  way to use text to column and then have all the same data go to same column?
In b1 son, mom, last name
C1 mom, last name.

How do I get all the unique values into the same column?
So in the output, you want the "mom" column to be empty if that row didn't have "mom" in it?
Title: Re: Excel Help and Problems
Post by: yoruel on January 02, 2018, 08:15:34 AM
So in the output, you want the "mom" column to be empty if that row didn't have "mom" in it?
Yes, but i want the children in their own row.
Would index match work, after text to column?
Title: Re: Excel Help and Problems
Post by: etech0 on January 02, 2018, 08:41:27 AM
Yes, but i want the children in their own row.
Would index match work, after text to column?
I'm thinking you could do this with formulas but I'll need to work it out. Will each column be for a specific child's name, or just any child in general?
Title: Re: Excel Help and Problems
Post by: yoruel on January 02, 2018, 12:23:55 PM
I'm thinking you could do this with formulas but I'll need to work it out. Will each column be for a specific child's name, or just any child in general?
Specific child's name.
Title: Re: Excel Help and Problems
Post by: lubaby on January 02, 2018, 12:32:32 PM
Specific child's name.
Can you post a sample workbook? Or even screenshots of how you have it before, and how you want it to look after (by doing some manually)?
Title: Re: Excel Help and Problems
Post by: etech0 on January 02, 2018, 12:56:25 PM
Specific child's name.
Perfect!
So keep column A as is, but insert a blank row at the top. In row 1, in columns B, C, etc, put the text that you want to show up in those columns

In B2 put this:
=IF(IFERROR(SEARCH(B$1,$A2),"")="","",B$1) And copy it to the rest of the workbook. Sample file attached Title: Re: Excel Help and Problems Post by: stooges44 on January 18, 2018, 12:36:02 PM Any "fast" ways to clean up a list of names and addresses? The goal is to get each item in its own column (First, last, street, city, st, zip etcc..) and right now it's a total mess. Currently the address is one big column which wouldn't be so terrible because I could use "text to columns" but there are also phone numbers (sometimes more then one) randomly thrown in, some before the address and some after and still some have notes like "corner of" so no matter how I cut it there would still be an enormous amount of manual editing. I have 1540 rows like this :( TIA Title: Re: Excel Help and Problems Post by: etech0 on January 18, 2018, 12:39:11 PM Any "fast" ways to clean up a list of names and addresses? The goal is to get each item in its own column (First, last, street, city, st, zip etcc..) and right now it's a total mess. Currently the address is one big column which wouldn't be so terrible because I could use "text to columns" but there are also phone numbers (sometimes more then one) randomly thrown in, some before the address and some after and still some have notes like "corner of" so now matter how I cut it there would still be an enormous amount of manual editing. I have 1540 rows like this :( TIA Are you at all familiar with regular expressions? That may be your best bet. Title: Re: Excel Help and Problems Post by: stooges44 on January 18, 2018, 12:39:55 PM Are you at all familiar with regular expressions? That may be your best bet. A few crumbs from college but that's about it Title: Re: Excel Help and Problems Post by: etech0 on January 18, 2018, 12:42:17 PM A few crumbs from college but that's about it If you paste a few sample rows into rubular.com you'll be able to play around and see if you can get something good going. Excel doesn't have regex built in but there are addons for it, or you can just use google sheets. Once you have a base regex you can paste it into a column to run on all rows, then if any don't work you can tweak as needed. If you want to post a few sample rows, I'll try and put something together for you Title: Re: Excel Help and Problems Post by: stooges44 on January 18, 2018, 12:53:41 PM If you paste a few sample rows into rubular.com you'll be able to play around and see if you can get something good going. Excel doesn't have regex built in but there are addons for it, or you can just use google sheets. Once you have a base regex you can paste it into a column to run on all rows, then if any don't work you can tweak as needed. If you want to post a few sample rows, I'll try and put something together for you Thanks! Here's a sample of some of the worst: (I've replace the real data with nonsense) Code: [Select] 77 old country rd new york ny 10001 H 9876542581 father dan 98765432109876 dans deals way ddf ny 115812 WC (111) 598-3254 - here the zip is intentionally too long bec that's how i have it 123 anywhere pl cleavland oh 11225 HC 1234567890 W 1234567891 As you can see there really is no pattern, some numbers have the (), some don't. Title: Re: Excel Help and Problems Post by: etech0 on January 18, 2018, 01:46:36 PM Thanks! Here's a sample of some of the worst: (I've replace the real data with nonsense) Code: [Select] 77 old country rd new york ny 10001 H 9876542581 father dan 98765432109876 dans deals way ddf ny 115812 WC (111) 598-3254 - here the zip is intentionally too long bec that's how i have it 123 anywhere pl cleavland oh 11225 HC 1234567890 W 1234567891 As you can see there really is no pattern, some numbers have the (), some don't. So this might be a start: Put your data into column A of a google spreadsheet Put this into column B and copy it down: Code: [Select] =regexextract(A1,"(?i)([\d\w ]* (rd|way|pl)) ([\w ]*) (AL|AK|AZ|AR|CA|CO|CT|DE|FL|GA|HI|ID|IL|IN|IA|KS|KY|LA|ME|MD|MA|MI|MN|MS|MO|MT|NE|NV|NH|NJ|NM|NY|NC|ND|OH|OK|OR|PA|RI|SC|SD|TN|TX|UT|VT|VA|WA|WV|WI|WY) (\d*) ([\w ]*) ([\d --()]*) (\D*) ([\d --()]*)") The problem is that you'll have to manually scan through all the rows to make sure nothing is missing, once you do that, it might just pay to do it manually. But maybe give it a try, see if any rows return errors or are missing data, and we can tweak it as needed. Also - this section: (rd|way|pl) will need to be modified to include all the options that your data includes for road/street/drive etc. It's not case sensitive at least :) Title: Re: Excel Help and Problems Post by: stooges44 on January 18, 2018, 01:53:13 PM So this might be a start: Put your data into column A of a google spreadsheet Put this into column B and copy it down: Code: [Select] =regexextract(A1,"(?i)([\d\w ]* (rd|way|pl)) ([\w ]*) (AL|AK|AZ|AR|CA|CO|CT|DE|FL|GA|HI|ID|IL|IN|IA|KS|KY|LA|ME|MD|MA|MI|MN|MS|MO|MT|NE|NV|NH|NJ|NM|NY|NC|ND|OH|OK|OR|PA|RI|SC|SD|TN|TX|UT|VT|VA|WA|WV|WI|WY) (\d*) ([\w ]*) ([\d --()]*) (\D*) ([\d --()]*)") The problem is that you'll have to manually scan through all the rows to make sure nothing is missing, once you do that, it might just pay to do it manually. But maybe give it a try, see if any rows return errors or are missing data, and we can tweak it as needed. Also - this section: (rd|way|pl) will need to be modified to include all the options that your data includes for road/street/drive etc. It's not case sensitive at least :) Incredible! Thanks so much! I'll let you know how it goes Title: Re: Excel Help and Problems Post by: User6669 on January 24, 2018, 11:10:06 PM Is it possible to have the "number format" of a cell depend on a =IF? Title: Re: Excel Help and Problems Post by: aygart on January 24, 2018, 11:56:50 PM Is it possible to have the "number format" of a cell depend on a =IF? Conditional formatting Title: Re: Excel Help and Problems Post by: User6669 on January 25, 2018, 12:14:25 AM Conditional formatting I tried... I'm looking to do, if A1="1" it's a Percentage, and if A1="2" then it's a Fraction. Title: Re: Excel Help and Problems Post by: skyguy918 on January 25, 2018, 01:40:36 AM I tried... I'm looking to do, if A1="1" it's a Percentage, and if A1="2" then it's a Fraction. Has to be 2 separate rules. One with =a1="1" as the formula and formatted as a percentage, and the other with =a1="2" as the formula and formatted as a fraction. The conditions can be tricky though. If you can't get it to work, can post what the conditions are and I can't try to create the exact formula. Title: Re: Excel Help and Problems Post by: User6669 on January 25, 2018, 10:28:43 PM Has to be 2 separate rules. One with =a1="1" as the formula and formatted as a percentage, and the other with =a1="2" as the formula and formatted as a fraction. The conditions can be tricky though. If you can't get it to work, can post what the conditions are and I can't try to create the exact formula. It needs to check the cell to the right, and format it based on what is says there. E.g. for B4 it should check B5, C4 = C5 etc. The condition is, =$B5="Fraction".

The cell value is correct, it just doesn't display the correct format.
Title: Re: Excel Help and Problems
Post by: skyguy918 on January 25, 2018, 11:56:53 PM
It needs to check the cell to the right, and format it based on what is says there. E.g. for B4 it should check B5, C4 = C5 etc.

The condition is, =\$B5="Fraction".

The cell value is correct, it just doesn't display the correct format.
Are you saying you got it to work? Or you're describing what you did and it's still not working?
Title: Re: Excel Help and Problems
Post by: etech0 on January 26, 2018, 12:14:26 AM
You can use another column with a function referring to the previous 2 columns.

Like this:
Code: [Select]
=IF(A1="fraction",TEXT(B1,"# ?/?"),TEXT(B1,"0%"))
Where A is the column that  says "fraction" or "percent", and B is the column with the number in it.

This link will give you more instructions in case you want to modify the number formats (ie more decimal places etc) https://support.office.com/en-us/article/TEXT-function-20d5ac4d-7b94-49fd-bb38-93d29371225c
Title: Re: Excel Help and Problems
Post by: jose34 on February 11, 2018, 05:22:05 PM
Someone asked me to find all the people that attend events over the course of the year and how many events, they just need numbers not the people names.
Is their anyway to put it the data in the Excel and have excel do the work for me?

Title: Re: Excel Help and Problems
Post by: lubaby on February 11, 2018, 05:26:28 PM
Someone asked me to find all the people that attend events over the course of the year and how many events, they just need numbers not the people names.
Is their anyway to put it the data in the Excel and have excel do the work for me?
Sure, wanna post some sample data so we can take a look? Should be a pretty simple formula..
Title: Re: Excel Help and Problems
Post by: jose34 on February 11, 2018, 05:33:52 PM

Something like in this in a Excel file, This sample is only four names per column put I am dealing with like 20 events of 20- 100 people each.

5-Apr         6-May         7-Jun

Jack    Mitchel      Yehuda    Haim      Avi   Yakubov
Kathrine    Katz      Lary    Yeuda      Chevy   Katz
Ron    Mathew      Mitch    Paul      Paul   Loe
Yehuda    Haim      Pat    King      Mitch   Paul
Title: Re: Excel Help and Problems
Post by: churnbabychurn on February 11, 2018, 06:30:17 PM

Something like in this in a Excel file, This sample is only four names per column put I am dealing with like 20 events of 20- 100 people each.

5-Apr6-May7-Jun

Jack MitchelYehuda HaimAviYakubov
Kathrine KatzLary YeudaChevyKatz
Ron MathewMitch PaulPaulLoe
Yehuda HaimPat KingMitchPaul
First make a unique list per event by copying and  removing dup's, then Countif(a2:a100,"jack") ?
Title: Re: Excel Help and Problems
Post by: Centurion on February 20, 2018, 05:35:26 PM
having a hard time copying hyperlinks from one book to another
it looks good ( blue and underlined) but the only way to create hyperlink is by hitting enter twice on each line ( hundreds of lines)
https://www.americanexpress.com/ ( it creates a link here but in excel it doesnt)
first its black then i can make it blue and underline.

thank you
Title: Re: Excel Help and Problems
Post by: churnbabychurn on February 20, 2018, 06:04:32 PM
having a hard time copying hyperlinks from one book to another
it looks good ( blue and underlined) but the only way to create hyperlink is by hitting enter twice on each line ( hundreds of lines)
https://www.americanexpress.com/ ( it creates a link here but in excel it doesnt)
first its black then i can make it blue and underline.

thank you
You need to refresh all cells in the column. (same as double clicking each).

To do this select the column and do a text to column function. Set the the delimitor as nothing so it won't actually shift. Just refresh in place.
Title: Re: Excel Help and Problems
Post by: MasterAmex on February 21, 2018, 03:00:31 PM
is there a separate thread for Google sheets, or its a "all in one"?
Title: Re: Excel Help and Problems
Post by: etech0 on February 21, 2018, 03:10:03 PM
is there a separate thread for Google sheets, or its a "all in one"?
Title: Re: Excel Help and Problems
Post by: Alexsei on February 21, 2018, 06:41:05 PM
i have two sheets both have a unique identifier in column A containing the order number, what i want is to fill info in blank column D of sheet1 based on what's in column D in sheet2 for the same order number
Title: Re: Excel Help and Problems
Post by: etech0 on February 21, 2018, 06:45:28 PM
i have two sheets both have a unique identifier in column A containing the order number, what i want is to fill info in blank column D of sheet1 based on what's in column D in sheet2 for the same order number
VLOOKUP

Example:

=VLOOKUP(A2,Sheet2!A:D,4,0)

A2 is the order # in the current sheet, Sheet2!A:D is where to look in the other sheet, 4 means return the result from the 4th column (since the range starts at column A, the 4th column is D). 0 means only return results if the order number matches exactly.
Title: Re: Excel Help and Problems
Post by: Alexsei on February 22, 2018, 10:25:38 AM
VLOOKUP

Example:

=VLOOKUP(A2,Sheet2!A:D,4,0)

A2 is the order # in the current sheet, Sheet2!A:D is where to look in the other sheet, 4 means return the result from the 4th column (since the range starts at column A, the 4th column is D). 0 means only return results if the order number matches exactly.
Thanks!
Title: Re: Excel Help and Problems
Post by: MasterAmex on February 22, 2018, 02:32:56 PM
VLOOKUP

Example:

=VLOOKUP(A2,Sheet2!A:D,4,0)

A2 is the order # in the current sheet, Sheet2!A:D is where to look in the other sheet, 4 means return the result from the 4th column (since the range starts at column A, the 4th column is D). 0 means only return results if the order number matches exactly.
possible to use VLOOKUP to return all data matching the value? (i am not using a UI)
Title: Re: Excel Help and Problems
Post by: etech0 on February 22, 2018, 02:34:52 PM
possible to use VLOOKUP to return all data matching the value? (i am not using a UI)
Do you mean all the columns for that row, or multiple rows that have the same value?
Title: Re: Excel Help and Problems
Post by: MasterAmex on February 22, 2018, 02:45:50 PM
Do you mean all the columns for that row, or multiple rows that have the same value?
multiple rows
Title: Re: Excel Help and Problems
Post by: etech0 on February 22, 2018, 02:47:33 PM
multiple rows
I don't think that can be done with vlookup, there's probably a way using array formulas but I'm not so familiar with them. Hopefully someone else  can answer!
Title: Re: Excel Help and Problems
Post by: churnbabychurn on February 22, 2018, 04:24:03 PM
Hlookup?
Title: Re: Excel Help and Problems
Post by: MasterAmex on February 22, 2018, 04:54:28 PM
Hlookup?
what is that, and how should i use it?
Title: Re: Excel Help and Problems
Post by: skyguy918 on February 22, 2018, 05:04:54 PM
what is that, and how should i use it?
HLOOKUP and VLOOKUP are the same, except one works horizontally and one works vertically.

What are you trying to do? If you want say a sum of the values from a particular column in the source table that match the identifier you select, use SUMIF. If you want to start with the identifier and return separate cells for each instance of that identifier in the source table, you need an array formula. Start here: https://www.get-digital-help.com/2009/10/25/how-to-return-multiple-values-using-vlookup-in-excel/
Title: Re: Excel Help and Problems
Post by: Entrepreneur on March 08, 2018, 11:40:37 PM
How do I make a scatter plot graph where the X and Y axis have negative numbers (graph should look like a plus sign) and where I want my plots to be different sizes based on a 3rd column of data?

Attached is the data where the actual plots are the Code field numbers, X and Y axis data are the x and y axis fields,  and the size of the plots should be based on the Plot Size field.

Thanks!
Title: Re: Excel Help and Problems
Post by: aygart on March 12, 2018, 01:42:51 PM
I have the date (mm/dd/yyyy) and the hour number only (hh) in 2 separate columns with a third column of data for each hour. I need to make a chart showing the data but readable to see at least some of the days to be able to see on the chart which data is from when. How can I do that? I was thinking to make a new column of MM/DD/YYYY HH:MM:SS but cannot get the 2 columns to combine into that.
Title: Re: Excel Help and Problems
Post by: etech0 on March 12, 2018, 02:56:13 PM
I have the date (mm/dd/yyyy) and the hour number only (hh) in 2 separate columns with a third column of data for each hour. I need to make a chart showing the data but readable to see at least some of the days to be able to see on the chart which data is from when. How can I do that? I was thinking to make a new column of MM/DD/YYYY HH:MM:SS but cannot get the 2 columns to combine into that.
Does something like this work?

Assuming that column A is the date and column B is the hour.
Code: [Select]
=TEXT(A2,"m/dd/yy ")&TEXT(TIME(B2,0,0),"h:mm AM/PM")
Title: Re: Excel Help and Problems
Post by: aygart on March 12, 2018, 03:21:10 PM
Does something like this work?

Assuming that column A is the date and column B is the hour.
Code: [Select]
=TEXT(A2,"m/dd/yy ")&TEXT(TIME(B2,0,0),"h:mm AM/PM")
Worked great. Thanks!
Title: Re: Excel Help and Problems
Post by: etech0 on March 12, 2018, 03:35:05 PM
Worked great. Thanks!
Awesome, you're welcome!
Title: Re: Excel Help and Problems
Post by: Yammer on April 24, 2018, 11:35:22 AM
I have multiple sheets that have overlapping information, tons of duplicates, and incomplete information on them. They have names, addresses, email addresses, phone numbers, etc.

Is there a way to merge them ( easily ) into 1 sheet?
Title: Re: Excel Help and Problems
Post by: Toasted on April 24, 2018, 11:59:19 AM
I have multiple sheets that have overlapping information, tons of duplicates, and incomplete information on them. They have names, addresses, email addresses, phone numbers, etc.

Is there a way to merge them ( easily ) into 1 sheet?

https://www.accountingweb.com/technology/excel/combining-multiple-worksheets-in-any-version-of-excel
Title: Re: Excel Help and Problems
Post by: Yammer on April 24, 2018, 12:10:03 PM
https://www.accountingweb.com/technology/excel/combining-multiple-worksheets-in-any-version-of-excel
Thanks!

Will give it a shot
Title: Re: Excel Help and Problems
Post by: yoruel on April 24, 2018, 03:36:26 PM
Did it work? PM me if mot, i may have a macro for you
Title: Re: Excel Help and Problems
Post by: Yehuda57 on April 25, 2018, 03:59:52 PM
Hey there folks, would greatly appreciate if anyone can help an Excel NooB with this:

I have a formula:
=J2*D2
But, I want to exclude any row where J = 0.

So I want J*D UNLESS J=0, in which case I want the value of D.
Title: Re: Excel Help and Problems
Post by: lubaby on April 25, 2018, 04:21:58 PM
Hey there folks, would greatly appreciate if anyone can help an Excel NooB with this:

I have a formula:
=J2*D2
But, I want to exclude any row where J = 0.

So I want J*D UNLESS J=0, in which case I want the value of D.
This should do it:
Code: [Select]
=IF(J2=0,D2,J2*D2)
Title: Re: Excel Help and Problems
Post by: aygart on April 25, 2018, 04:22:11 PM
=if(J2=0,D2,(J2*D2))
Title: Re: Excel Help and Problems
Post by: Yehuda57 on April 25, 2018, 05:07:09 PM
=if(J2=0,D2,(J2*D2))
This should do it:
Code: [Select]
=IF(J2=0,D2,J2*D2)

Thanks!
Title: Re: Excel Help and Problems
Post by: Yehuda25 on April 25, 2018, 09:09:44 PM
In google sheets, im trying to have everything in column E multiply column F which will give me my total in column g, However the header names of the column are making the formula not go... because they are names and not values, any workaround?
Title: Re: Excel Help and Problems
Post by: etech0 on April 25, 2018, 09:10:58 PM
In google sheets, im trying to have everything in column E multiply column F which will give me my total in column g, However the header names of the column are making the formula not go... because they are names and not values, any workaround?
Do you need to put the formula in the header row also? Why not start in G2?
Title: Re: Excel Help and Problems
Post by: Yehuda25 on April 25, 2018, 09:13:32 PM
Do you need to put the formula in the header row also? Why not start in G2?
I can, but how do I have it go to the rest of the sheet automatically?
Title: Re: Excel Help and Problems
Post by: etech0 on April 25, 2018, 09:16:46 PM
I can, but how do I have it go to the rest of the sheet automatically?
You can copy it down to the end by selecting the cell with the formula, control-c, control-shift-downarrow, control-v. If you ever add more rows at the bottom you'll have to copy the formulas again.
Title: Re: Excel Help and Problems
Post by: Yehuda25 on April 25, 2018, 09:25:06 PM
You can copy it down to the end by selecting the cell with the formula, control-c, control-shift-downarrow, control-v. If you ever add more rows at the bottom you'll have to copy the formulas again.
thanks!
Title: Re: Excel Help and Problems
Post by: etech0 on April 25, 2018, 09:36:49 PM
thanks!
anytime!
Title: Re: Excel Help and Problems
Post by: lubaby on April 25, 2018, 11:36:08 PM
In google sheets, im trying to have everything in column E multiply column F which will give me my total in column g, However the header names of the column are making the formula not go... because they are names and not values, any workaround?
You can copy it down to the end by selecting the cell with the formula, control-c, control-shift-downarrow, control-v. If you ever add more rows at the bottom you'll have to copy the formulas again.
There's a cleaner way to do it with Array Formulas, so you don't need to keep extending it.

https://www.benlcollins.com/formula-examples/array-formulas-forms/
Title: Re: Excel Help and Problems
Post by: etech0 on April 25, 2018, 11:39:08 PM
There's a cleaner way to do it with Array Formulas, so you don't need to keep extending it.

https://www.benlcollins.com/formula-examples/array-formulas-forms/
Cool!

Title: Re: Excel Help and Problems
Post by: Yehuda25 on April 26, 2018, 01:56:10 AM
There's a cleaner way to do it with Array Formulas, so you don't need to keep extending it.

https://www.benlcollins.com/formula-examples/array-formulas-forms/
interesting thanks.
Title: Re: Excel Help and Problems
Post by: Something Fishy on May 15, 2018, 09:00:41 AM
Is there a way to sort numbers correctly if the field isn't just numbers? For instance, I want the following to be sorted largest to smallest:

100s
5000+
34

Bonus points if they can still be used in calculations - I'm mainly looking to total them. Of course it won't be exact, but 5164 would be acceptable.
Title: Re: Excel Help and Problems
Post by: etech0 on May 15, 2018, 09:07:25 AM
Is there a way to sort numbers correctly if the field isn't just numbers? For instance, I want the following to be sorted largest to smallest:

100s
5000+
34

Bonus points if they can still be used in calculations - I'm mainly looking to total them. Of course it won't be exact, but 5164 would be acceptable.
You can probably use regexextract to extract just the numerical digits, in a formula in a separate column. Then sort by and total the second column.

You can do regexextract in google sheets or with an excel addon
Title: Re: Excel Help and Problems
Post by: Something Fishy on May 15, 2018, 09:14:57 AM
You can probably use regexextract to extract just the numerical digits, in a formula in a separate column. Then sort by and total the second column.

You can do regexextract in google sheets or with an excel addon

Thanks, but an extra column with essentially the same data won't work in this sheet.

Any way to do it in just one column?
Title: Re: Excel Help and Problems
Post by: Something Fishy on May 15, 2018, 09:27:17 AM
Found the solution here:

https://www.extendoffice.com/documents/excel/4264-excel-display-different-text-than-value.html

Basically I'm inputting 5000 but the cell is displaying 5000+. Slightly convoluted, but it works.

Now let's see if I can get it to work in Google Docs as well :P.
Title: Re: Excel Help and Problems
Post by: etech0 on May 15, 2018, 10:03:44 AM
Found the solution here:

https://www.extendoffice.com/documents/excel/4264-excel-display-different-text-than-value.html

Basically I'm inputting 5000 but the cell is displaying 5000+. Slightly convoluted, but it works.

Now let's see if I can get it to work in Google Docs as well :P.
So you want them all to display a + after the number?
Title: Re: Excel Help and Problems
Post by: Something Fishy on May 15, 2018, 10:05:26 AM
So you want them all to display a + after the number?

Not all, only a few. Few enough that this process won't be that much of a pain.
Title: Re: Excel Help and Problems
Post by: etech0 on May 15, 2018, 10:07:37 AM
Not all, only a few. Few enough that this process won't be that much of a pain.
So how does Excel know which ones to add it to? Are you only applying the conditional formatting to those cells?
Title: Re: Excel Help and Problems
Post by: etech0 on May 15, 2018, 10:14:07 AM
You can do it in google sheets by applying a number format. Select the cell(s) you want, click Format > Number > More Formats > Custom Number Format. Enter this for the format:

Code: [Select]
#,#+
(won't work if you have decimals, we'll have to tweak it then)
Title: Re: Excel Help and Problems
Post by: Something Fishy on May 15, 2018, 10:44:47 AM
So how does Excel know which ones to add it to? Are you only applying the conditional formatting to those cells?

Correct.

You can do it in google sheets by applying a number format. Select the cell(s) you want, click Format > Number > More Formats > Custom Number Format. Enter this for the format:
Code: [Select]
#,#+(won't work if you have decimals, we'll have to tweak it then)

Awesome, thanks!

Worked great for 5000+ (I don't need decimals here), but isn't working for 100s. I suppose I could instead use 100+, 200+, etc. if needed.
Title: Re: Excel Help and Problems
Post by: etech0 on May 15, 2018, 10:45:57 AM
Correct.

Awesome, thanks!

Worked great for 5000+ (I don't need decimals here), but isn't working for 100s. I suppose I could instead use 100+, 200+, etc. if needed.
Funny that it's not working for the 100, 200... it works for me. What's it showing you?
Title: Re: Excel Help and Problems
Post by: Something Fishy on May 15, 2018, 10:58:29 AM
Funny that it's not working for the 100, 200... it works for me. What's it showing you?

It says invalid format as soon as I add the s.

Title: Re: Excel Help and Problems
Post by: etech0 on May 15, 2018, 10:59:53 AM
It says invalid format as soon as I add the s.
Ah, I see. Try putting the s in quotes
Title: Re: Excel Help and Problems
Post by: Something Fishy on May 15, 2018, 11:01:02 AM
Ah, I see. Try putting the s in quotes

Bingo!

Thanks a lot.
Title: Re: Excel Help and Problems
Post by: etech0 on May 15, 2018, 11:01:24 AM
Bingo!

Thanks a lot.
Pleasure!
Title: Re: Excel Help and Problems
Post by: ChaimMoskowitz on June 06, 2018, 05:51:10 PM
Cell 1 = Qty
Cell 2 = A or B
Cell 3 = Result

I want to multiply cell 1/cell 2.
If cell 2 is "A" I want to multiply cell 1 by 2.5%
If cell 2 is "B" I want to multiply cell 1 by 3%
What would be the formula for cell 3?
Hope this makes sense.
Title: Re: Excel Help and Problems
Post by: Zubda on June 06, 2018, 05:54:16 PM
=cell1 * if(cell2="A",0.25,0.03)
Cell 1 = Qty
Cell 2 = A or B
Cell 3 = Result

I want to multiply cell 1/cell 2.
If cell 2 is "A" I want to multiply cell 1 by 2.5%
If cell 2 is "B" I want to multiply cell 1 by 3%
What would be the formula for cell 3?
Hope this makes sense.
Title: Re: Excel Help and Problems
Post by: Yisroel Tech on June 06, 2018, 06:01:01 PM
Cell 1 = Qty
Cell 2 = A or B
Cell 3 = Result

I want to multiply cell 1/cell 2.
If cell 2 is "A" I want to multiply cell 1 by 2.5%
If cell 2 is "B" I want to multiply cell 1 by 3%
What would be the formula for cell 3?
Hope this makes sense.
If I understood correctly, it'll be:
Code: [Select]
IF(A2="A",A1*2.5%,IF(A2="B",A1*3%,""))
Title: Re: Excel Help and Problems
Post by: ChaimMoskowitz on June 06, 2018, 06:12:58 PM
Thanks to both of you!!! First formula had to change 0.25 to 0.025
I was able to figure that one out.  :)
Title: Re: Excel Help and Problems
Post by: Zubda on June 06, 2018, 08:25:11 PM
Thanks to both of you!!! First formula had to change 0.25 to 0.025
I was able to figure that one out.  :)
Sorry my mistake.. happy to help
Title: Re: Excel Help and Problems
Post by: pinigee on July 05, 2018, 09:01:56 PM
Hi there,
I want to calculate master carton sizes. For example I have a camera box that I need to ship 20 pcs to Amazon, I want a formula where I type in the size of the camera box and how many I need to ship it should tell me which size box I'll need..  even more if Excel can be smart enough to either give me a few options or perhaps can it be smart enough to give me normal size box that equals more or less proportion as opposed to giving me a narrow tall box.

Title: Re: Excel Help and Problems
Post by: Yisroel Tech on July 06, 2018, 12:10:13 AM
Hi there,
I want to calculate master carton sizes. For example I have a camera box that I need to ship 20 pcs to Amazon, I want a formula where I type in the size of the camera box and how many I need to ship it should tell me which size box I'll need..  even more if Excel can be smart enough to either give me a few options or perhaps can it be smart enough to give me normal size box that equals more or less proportion as opposed to giving me a narrow tall box.

Far too complicated than what I believe Excel can do. See here https://stackoverflow.com/questions/140406/how-can-i-programmatically-determine-how-to-fit-smaller-boxes-into-a-larger-pack
Title: Re: Excel Help and Problems
Post by: Definitions on July 06, 2018, 01:28:39 AM
Hi there,
I want to calculate master carton sizes. For example I have a camera box that I need to ship 20 pcs to Amazon, I want a formula where I type in the size of the camera box and how many I need to ship it should tell me which size box I'll need..  even more if Excel can be smart enough to either give me a few options or perhaps can it be smart enough to give me normal size box that equals more or less proportion as opposed to giving me a narrow tall box.

I can't help you, but you were michavein exactly to an app I wanted to develop. If only I knew how to code.
Title: Re: Excel Help and Problems
Post by: skyguy918 on July 06, 2018, 01:37:00 AM
Far too complicated than what I believe Excel can do. See here https://stackoverflow.com/questions/140406/how-can-i-programmatically-determine-how-to-fit-smaller-boxes-into-a-larger-pack
Excel can handle it just fine, though it would obviously not be the optimal tool for the job. The issue is having the mathematical know how and programming skill to pull it off, no matter the tool.

Anyway, to the OP, just search 3d bin packing calculator - you should be able to find something useful pretty quickly.
Title: Re: Excel Help and Problems
Post by: etech0 on July 06, 2018, 09:55:43 AM
Excel can handle it just fine, though it would obviously not be the optimal tool for the job. The issue is having the mathematical know how and programming skill to pull it off, no matter the tool.
+1, you can do almost anything with VBA, the question is if you should
Title: Re: Excel Help and Problems
Post by: churnbabychurn on July 07, 2018, 10:09:46 PM
Excel can handle it just fine, though it would obviously not be the optimal tool for the job. The issue is having the mathematical know how and programming skill to pull it off, no matter the tool.

Anyway, to the OP, just search 3d bin packing calculator - you should be able to find something useful pretty quickly.
+1 I would think it's just a math thing that Excel can definitely do
Title: Re: Excel Help and Problems
Post by: yesitsme on July 16, 2018, 05:15:03 PM
 Unique First Last 1 dan deals 1 dan deals 2 jj deals 3 chaim Moskowits 4 moshe aygayrt

How do You add a number if first and last arent the same?

Code: [Select]
=IF(B1&C1<>B2&C2,A1+1,A1)

Title: Re: Excel Help and Problems
Post by: etech0 on July 16, 2018, 06:43:05 PM
 Unique First Last 1 dan deals 1 dan deals 2 jj deals 3 chaim Moskowits 4 moshe aygayrt

How do You add a number if first and last arent the same?

Code: [Select]
=IF(B1&C1<>B2&C2,A1+1,A1)
Code: [Select]
=IF(OR(B3<>B2,C3<>C2),A2+1,A2)Note: it doesn't actually check for unique, just if it's the same as the row above, so your data needs to be sorted
Title: Re: Excel Help and Problems
Post by: ChaimMoskowitz on September 12, 2018, 11:52:09 AM
How do I copy a sheet (tab on the bottom) from one file to another?
Title: Re: Excel Help and Problems
Post by: aygart on September 12, 2018, 11:54:16 AM
How do I copy a sheet (tab on the bottom) from one file to another?
Open the file you want to copy it to, Right click on the tab you want to copy and click move or copy. To copy make sure to check that option otherwise it will move.
Title: Re: Excel Help and Problems
Post by: ChaimMoskowitz on September 12, 2018, 12:05:00 PM
OK, need both files open.  :-[
Title: Re: Excel Help and Problems
Post by: etech0 on September 12, 2018, 12:11:06 PM
OK, need both files open.  :-[
yup
Title: Re: Excel Help and Problems
Post by: myi on October 11, 2018, 02:16:01 AM
Is there any way to split one cell in two, meaning a line in the middle?
Aside for putting a shape or drawing with art.
Any standard button to split one cell?
Title: Re: Excel Help and Problems
Post by: Zubda on October 11, 2018, 07:49:30 AM
Merge the cells above and below it
Title: Re: Excel Help and Problems
Post by: skyguy918 on October 11, 2018, 10:43:42 AM

Is there any way to split one cell in two, meaning a line in the middle?
Aside for putting a shape or drawing with art.
Any standard button to split one cell?

You just want the line to show up, or you want to be able to split the cell for all purposes?
Title: Re: Excel Help and Problems
Post by: myi on October 12, 2018, 03:20:17 PM

You just want the line to show up, or you want to be able to split the cell for all purposes?
Just a line, nothing to do with the text, as a graph want another line in-between.
Title: Re: Excel Help and Problems
Post by: churnbabychurn on October 12, 2018, 05:26:31 PM
Just a line, nothing to do with the text, as a graph want another line in-between.
Do a left border
Title: Re: Excel Help and Problems
Post by: myi on October 12, 2018, 05:29:27 PM
Do a left border
Will try after and report back. Thanks.
Title: Re: Excel Help and Problems
Post by: etech0 on October 15, 2018, 04:57:33 PM
You should be able to do a middle "border" too, if that's what you need
Title: Re: Excel Help and Problems
Post by: skyguy918 on October 17, 2018, 04:15:15 PM
Came across something interesting that I had never used before, thought it might be interesting to some here.

My brother asked for help with a data set. There are 50 columns representing the last 50 years. For each row, there may be data in each row for some, all, or none of the 50 years. What's more, the data is not necessarily continuous (ie it can skip years). The ask was to do conditional formatting on the data set to color each row based on the number of years that have data - easy enough. But a secondary goal was to format based on the largest number of years with continuous data in each row. I ended up coming up with various relatively messy solutions, but my brother-in-law found this, which worked beautifully:

https://exceljet.net/formula/count-consecutive-monthly-orders
Code: [Select]
{=MAX(FREQUENCY(IF(rng>0,COLUMN(rng)),IF(rng=0,COLUMN(rng))))}
Gorgeous bit of code, using the FREQUENCY function, which I had never used before.
Title: Re: Excel Help and Problems
Post by: jose34 on November 10, 2018, 04:39:01 PM
Can anyone recommend a quality free course that teaches how to do basic accounting using Excel?
Title: Re: Excel Help and Problems
Post by: churnbabychurn on November 10, 2018, 09:11:42 PM
Can anyone recommend a quality free course that teaches how to do basic accounting using Excel?
Like running a gl ? Try you tube.. it's not conventional
Title: Re: Excel Help and Problems
Post by: yitzf on November 11, 2018, 10:08:26 AM
Can anyone recommend a quality free course that teaches how to do basic accounting using Excel?
The excelisfun YouTube channel should have an accounting playlist, but it's focused more on Excel than accounting.
Title: Re: Excel Help and Problems
Post by: Centurion on January 15, 2019, 12:30:36 PM
I can use help figuring out how much money in mortgage loans we need to cover our overhead.
how many months and how many dollars needed to cover ourselves

when will the payments be able to match the loans we give out to be self sustained

i.e. if we give out 1m in loans @7%  we would only make x per year /12 is y per month
if our overhead is 20k a month - how many loans need to be out etc.

willing to pay - feel free to dm

Title: Re: Excel Help and Problems
Post by: skyguy918 on January 15, 2019, 04:36:10 PM
I can use help figuring out how much money in mortgage loans we need to cover our overhead.
how many months and how many dollars needed to cover ourselves

when will the payments be able to match the loans we give out to be self sustained

i.e. if we give out 1m in loans @7%  we would only make x per year /12 is y per month
if our overhead is 20k a month - how many loans need to be out etc.

willing to pay - feel free to dm
What is the structure of these loans? Are you talking about a mortgage style loan? And if so, what is the term? Or maybe an indefinite loan term where they're paying monthly interest only payments?

ETA: Any type can be calculated pretty easily, in excel or otherwise. But it would be hard to give a specific answer without more info.
Title: Re: Excel Help and Problems
Post by: yitzf on January 15, 2019, 08:30:41 PM
I can use help figuring out how much money in mortgage loans we need to cover our overhead.
how many months and how many dollars needed to cover ourselves

when will the payments be able to match the loans we give out to be self sustained

i.e. if we give out 1m in loans @7%  we would only make x per year /12 is y per month
if our overhead is 20k a month - how many loans need to be out etc.

willing to pay - feel free to dm
If I'm understanding you correctly, the math is overhead times 12 divided by the interest rate.
So 20k x12 is 240k, divided by 7% is 3,428,571 in loans needed.
Title: Re: Excel Help and Problems
Post by: churnbabychurn on January 16, 2019, 09:29:17 PM
I can use help figuring out how much money in mortgage loans we need to cover our overhead.
how many months and how many dollars needed to cover ourselves

when will the payments be able to match the loans we give out to be self sustained

i.e. if we give out 1m in loans @7%  we would only make x per year /12 is y per month
if our overhead is 20k a month - how many loans need to be out etc.

willing to pay - feel free to dm
Are you a bank?

Title: Re: Excel Help and Problems
Post by: Centurion on January 20, 2019, 02:56:55 PM
Are you a bank?

Can you help if I want to create a personal "bank" type - owner funded
Title: Re: Excel Help and Problems
Post by: Centurion on January 20, 2019, 02:57:58 PM
What is the structure of these loans? Are you talking about a mortgage style loan? And if so, what is the term? Or maybe an indefinite loan term where they're paying monthly interest only payments?

ETA: Any type can be calculated pretty easily, in excel or otherwise. But it would be hard to give a specific answer without more info.

im looking at a 5 year loan, would love to discuss. pm?
Title: Re: Excel Help and Problems
Post by: Centurion on January 20, 2019, 02:59:15 PM
If I'm understanding you correctly, the math is overhead times 12 divided by the interest rate.
So 20k x12 is 240k, divided by 7% is 3,428,571 in loans needed.
Title: Re: Excel Help and Problems
Post by: churnbabychurn on January 20, 2019, 03:59:15 PM
I can use help figuring out how much money in mortgage loans we need to cover our overhead.
how many months and how many dollars needed to cover ourselves

when will the payments be able to match the loans we give out to be self sustained

i.e. if we give out 1m in loans @7%  we would only make x per year /12 is y per month
if our overhead is 20k a month - how many loans need to be out etc.

willing to pay - feel free to dm
https://www.calculator.net/loan-calculator.html

Just plug in you numbers and look at the amortization table.
To get 20k+ of interest income @7% you would need to have 4mm out all the time. Also need to make sure you are turning these over so all p returned is lent out again.

This assumes a zero default rate. - obviously wrong.
Title: Re: Excel Help and Problems
Post by: yitzf on January 20, 2019, 05:11:31 PM
https://www.calculator.net/loan-calculator.html

Just plug in you numbers and look at the amortization table.
To get 20k+ of interest income @7% you would need to have 4mm out all the time. Also need to make sure you are turning these over so all p returned is lent out again.

This assumes a zero default rate. - obviously wrong.
How do you get 4mm, the loans are probably interest only so the interest payment will be stable?
Title: Re: Excel Help and Problems
Post by: churnbabychurn on January 20, 2019, 05:14:17 PM
How do you get 4mm, the loans are probably interest only so the interest payment will be stable?
.
Title: Re: Excel Help and Problems
Post by: yitzf on January 20, 2019, 05:16:54 PM
You need to understand the math before you give people millions of dollars.
If the loan is "interest only" then 7% means that for every dollar you lend, the borrower will owe you 7 cents per year. So  if you lend out 3.5mm, the borrower will owe you a yearly amount of 3.5mm times 7% (3,500,000 x .07) which is 245k. If you split that between 12 months, you get 20,416 a month.

There are usually fees that borrowers charge with these types of loans that can generate additional income.
Title: Re: Excel Help and Problems
Post by: yitzf on January 20, 2019, 05:19:18 PM
.
That's with principal payments reducing the balance. I would think that these types of loans are typically interest only.
Title: Re: Excel Help and Problems
Post by: churnbabychurn on January 20, 2019, 05:19:56 PM
That's with principal payments reducing the balance. I would think that these types of loans are typically interest only.
Oh.. no idea he called it a mortgage..
Title: Re: Excel Help and Problems
Post by: Am on January 24, 2019, 05:56:36 PM
How can I do this?
I need to create a column where every cell should have a date one month later than the previous. My particular case needs 120 months. So I can enter Jan. 1, 2019 in cell A1 and it should automatically fill in Feb. 1, 2019 in cell A2 and March 1, 2019 in cell A3 and so on for 120 rows.

Thanks.
Title: Re: Excel Help and Problems
Post by: Zubda on January 24, 2019, 06:01:51 PM
How can I do this?
I need to create a column where every cell should have a date one month later than the previous. My particular case needs 120 months. So I can enter Jan. 1, 2019 in cell A1 and it should automatically fill in Feb. 1, 2019 in cell A2 and March 1, 2019 in cell A3 and so on for 120 rows.

Thanks.
Enter this formula in cell A2 =DATE(YEAR(A1), MONTH (A1) +1, DAY(A1))
Abd drag it down
Title: Re: Excel Help and Problems
Post by: skyguy918 on January 24, 2019, 06:33:46 PM
Enter this formula in cell A2 =DATE(YEAR(A1), MONTH (A1) +1, DAY(A1))
Abd drag it down
Just use =EDATE(A1,1) and copy down
Title: Re: Excel Help and Problems
Post by: Centurion on January 24, 2019, 09:58:26 PM
How can I do this?
I need to create a column where every cell should have a date one month later than the previous. My particular case needs 120 months. So I can enter Jan. 1, 2019 in cell A1 and it should automatically fill in Feb. 1, 2019 in cell A2 and March 1, 2019 in cell A3 and so on for 120 rows.

Thanks.

type 01/01/2019 in first cell, then 02/01/2019 in second cell, then drag
Title: Re: Excel Help and Problems
Post by: Zubda on January 24, 2019, 10:21:15 PM
type 01/01/2019 in first cell, then 02/01/2019 in second cell, then drag
Lol, sometimes you only overthink and don't think of the simple ways
Title: Re: Excel Help and Problems
Post by: ludmila on January 24, 2019, 10:24:05 PM
Lol, sometimes you only overthink and don't think of the simple ways
+1 As we all do in most cases :)
Title: Re: Excel Help and Problems
Post by: metsguy on January 24, 2019, 10:57:29 PM
+1 As we all do in most cases :)

As an excel Snob I would never consider a solution that involves a mouse.
Edate or Eomonth(A1,0)+1  FTW
Title: Re: Excel Help and Problems
Post by: Zubda on January 24, 2019, 11:00:45 PM
As an excel Snob I would never consider a solution that involves a mouse.
Edate or Eomonth(A1,0)+1  FTW
Still requires a mouse (to drag down...)
Title: Re: Excel Help and Problems
Post by: lubaby on January 24, 2019, 11:02:13 PM
Still requires a mouse (to drag down...)
Not if you know how to use your keyboard properly.
Title: Re: Excel Help and Problems
Post by: Zubda on January 24, 2019, 11:07:31 PM
Not if you know how to use your keyboard properly.
Just tested it, and you've got a point!
Title: Re: Excel Help and Problems
Post by: metsguy on January 24, 2019, 11:14:12 PM
Not if you know how to use your keyboard properly.

This.
Title: Re: Excel Help and Problems
Post by: lubaby on February 13, 2019, 08:20:30 PM
Been trying to figure out a simple way to have a variable number (1-9) as part of an IF statement. Maybe someone here can help.

Text that I’m looking for the IF to match can be XYZ1, XYZ2, XYZ3 etc. There will always be an XYZ followed by 1-9 that I need it to pick up.
Currently I have it set to IF XYZ & cell reference (where I put in the 1-9 that it is), and the rest of my formulas work off that. I want to cut out the manually updating the cell reference each time I need my logic to populate.

Use case is in google sheets if that opens up more options.
Title: Re: Excel Help and Problems
Post by: yesitsme on February 13, 2019, 08:40:08 PM
Been trying to figure out a simple way to have a variable number (1-9) as part of an IF statement. Maybe someone here can help.

Text that I’m looking for the IF to match can be XYZ1, XYZ2, XYZ3 etc. There will always be an XYZ followed by 1-9 that I need it to pick up.
Currently I have it set to IF XYZ & cell reference (where I put in the 1-9 that it is), and the rest of my formulas work off that. I want to cut out the manually updating the cell reference each time I need my logic to populate.

Use case is in google sheets if that opens up more options.
IF(Left(A2,3)="XYZ",1,2)?
Title: Re: Excel Help and Problems
Post by: Yisroel Tech on February 13, 2019, 08:42:12 PM
Been trying to figure out a simple way to have a variable number (1-9) as part of an IF statement. Maybe someone here can help.

Text that I’m looking for the IF to match can be XYZ1, XYZ2, XYZ3 etc. There will always be an XYZ followed by 1-9 that I need it to pick up.
Currently I have it set to IF XYZ & cell reference (where I put in the 1-9 that it is), and the rest of my formulas work off that. I want to cut out the manually updating the cell reference each time I need my logic to populate.

Use case is in google sheets if that opens up more options.
Wouldn't REGEXEXTRACT do it? (I didn't really chap the exact use...maybe it is too late in the day...)
Title: Re: Excel Help and Problems
Post by: lubaby on February 13, 2019, 08:50:31 PM
IF(Left(A2,3)="XYZ",1,2)?
Forgot to mention, the XYZ # is in middle of a variable length and variable position of a string. The only absolute to work with is the XYZ #. Have it working now with a FIND XYZ & # from cell reference.

Wouldn't REGEXEXTRACT do it? (I didn't really chap the exact use...maybe it is too late in the day...)
I'm trying to cut off everything after the XYZ # (part of a larger data parsing project).

I'm not so familiar with REGEXEXTRACT. Will take a look.

ETA: REGEXEXTRACT worked perfectly. Thanks
"XYZ"&"[0-9]"
Title: Re: Excel Help and Problems
Post by: upside down on May 06, 2019, 12:11:38 PM
I have zero previous experience with excel and want to learn the basics (and eventually more than that). What are good websites or courses to use?
Thanks
Title: Re: Excel Help and Problems
Post by: CreamofSoup on May 06, 2019, 12:21:35 PM

And linkedin learning if you have access. Once you have a basic idea of what can be done, start throwing together spreadsheets? Do you have a household budget? Stick it in excel and then google anything you want to do that you didn't previously learn.
Title: Re: Excel Help and Problems
Post by: Yisroel Tech on May 06, 2019, 06:46:10 PM

And linkedin learning if you have access. Once you have a basic idea of what can be done, start throwing together spreadsheets? Do you have a household budget? Stick it in excel and then google anything you want to do that you didn't previously learn.
First thing - for basics - go through the Excel 2019 Essential Training course from Lynda/LinkedIn Learning, it will give you a good start to know the program's basics well. Once you have that you can find a lot online on specifics.
Title: Re: Excel Help and Problems
Post by: Zubda on May 09, 2019, 12:32:24 AM
I have zero previous experience with excel and want to learn the basics (and eventually more than that). What are good websites or courses to use?
Thanks
Exceljet.net
Title: Re: Excel Help and Problems
Post by: Definitions on May 09, 2019, 09:55:03 PM

Need something simple. Master item list, received, shipped stuff, and current inventory.
Title: Re: Excel Help and Problems
Post by: thaber on May 09, 2019, 11:56:03 PM

Need something simple. Master item list, received, shipped stuff, and current inventory.
Might want to use a database program instead. I had a Microsoft access database custom designed for me by some guy in the Phillipines
Title: Re: Excel Help and Problems
Post by: Definitions on May 10, 2019, 02:59:04 AM
Might want to use a database program instead. I had a Microsoft access database custom designed for me by some guy in the Phillipines
How much did it cost you?
Title: Re: Excel Help and Problems
Post by: Luvisrael on May 14, 2019, 07:13:46 PM
Any way to send a mass email to multiple email addresses on Spreadsheet to outlook?
Title: Re: Excel Help and Problems
Post by: etech0 on May 14, 2019, 08:03:59 PM
Any way to send a mass email to multiple email addresses on Spreadsheet to outlook?
I'm pretty sure you can do a mailmerge to email.

https://support.office.com/en-us/article/use-mail-merge-to-send-bulk-email-messages-0f123521-20ce-4aa8-8b62-ac211dedefa4
Title: Re: Excel Help and Problems
Post by: Luvisrael on May 14, 2019, 08:21:40 PM
I'm pretty sure you can do a mailmerge to email.

https://support.office.com/en-us/article/use-mail-merge-to-send-bulk-email-messages-0f123521-20ce-4aa8-8b62-ac211dedefa4
ok thanx. is there a simpler way to do it (e.g.) cut and paste email addresses
Title: Re: Excel Help and Problems
Post by: etech0 on May 14, 2019, 08:24:29 PM
ok thanx. is there a simpler way to do it (e.g.) cut and paste email addresses
If you want to send the same message to all of them in BCC, you should be able to select the whole column of addresses, copy, and then paste them into the BCC box of an email
Title: Re: Excel Help and Problems
Post by: Luvisrael on May 14, 2019, 08:32:31 PM
If you want to send the same message to all of them in BCC, you should be able to select the whole column of addresses, copy, and then paste them into the BCC box of an email
thats what i am looking to do thanx!
Title: Re: Excel Help and Problems
Post by: unavailable on May 17, 2019, 12:04:41 PM
hi
i have a price list for a bunch of items

under them a subtotal

now i want to add 20% fee, but only to certain items
then another fee 5% to other items

something like this;

food    20
drink    10
ice c